Is it allowed to access memory that spans the zero boundary in x86?
Is it allowed for a single access to span the bounary between
For example given that
I’m interested in both x86 (32-bit) and x86-64 in case the answers are different.
1 Of course given that the region is mapped in your process etc.
I just tested with this EFI program. (And it worked, as expected.) If you want to reproduce this result, you would need an implementation of efi_printf, or another way to view the result.
If it works as expected, the last 4 lines should be:
A value of 0x56785678 is written starting in the last 16-bit word of memory and should wrap to the first 16-bit word of memory.