On Sun, Nov 25, 2018 at 11:58:14PM +0300, Mike Banon wrote:
I am trying to copy a structure romfile_s from one location to another by memcpy (before the booting stage), but struggling with a weird problem. My memcpy arguments - memcpy(void *d1, const void *s1, size_t len) :
d1 (destination) = 0x000f4d34 s1 (source) = 0x07f3f610 len (size) = 0x0000008c
It's hard to say without seeing the other code changes. If the memcpy was called while in real mode, then it does not have access to memory above 1Meg. There's some info on this at: https://www.seabios.org/Memory_Model
-Kevin