[NSWI004] _kernel_end

Georgii Ekserdzhian gxrjan at gmail.com
Thu Oct 22 15:19:33 CEST 2020


Do I just take a guess and substitute 0 with some arbitrary n in
declaration of _kernel_end, and then try to write into that?

Georgii Ekserdzhian


чт, 22 окт. 2020 г. в 14:52, Georgii Ekserdzhian <gxrjan at gmail.com>:

> Good afternoon,
>
> When I try to write into the first byte which _kernel_end points to, I get
> these error message:
> "error: writing 1 byte into a region of size 0"
> "at offset 0 to object '_kernel_end' with size 0 declared here"
>
> I suppose because _kernel_end is declared with size 0. But I'm not sure
> how to proceed. My code is just:
>
> uint8_t *p = _kernel_end;
> *p = 1;
>
> Georgii Ekserdzhian
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://d3s.mff.cuni.cz/pipermail/nswi004/attachments/20201022/4e5dbc98/attachment.htm>


More information about the NSWI004 mailing list