Hardcoded PAGE_OFFSET in head.S
hi,
in kernel/head.S, I see the following:
.section __xen_guest
.ascii
"GUEST_OS=linux,GUEST_VER=2.6,XEN_VER=3.0,VIRT_BASE=0xC0000000"
^^^^^^^^^^^^^^^^^^^^
I wonder why setting VIRT_BASE here is necessary, as the ELF header should contain this information already?
thanks,
Jacob
Quoted 7 lines · Jacob Gorm Hansen
in
kernel/head.S, I see the following:.section
__xen_guest
.ascii
"GUEST_OS=linux,GUEST_VER=2.6,XEN_VER=3.0,VIRT_BASE=0xC0000000"^^^^^^^^^^^^^^^^^^^^I wonder why setting
VIRT_BASEhere is necessary, as the ELF header should contain this information already?
The load and entry address is c0100000, but we want to map memory from c0000000 to better match the layout of native Linux (where the kernel appears at phys address 1MB).
-- Keir