Ported linux to relocator framework

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-01-11 14:59:01 +01:00
parent cb1b2ad7e0
commit 55b40bc68a
5 changed files with 83 additions and 78 deletions

View file

@ -47,6 +47,7 @@ extern grub_uint32_t grub_relocator32_ecx;
extern grub_uint32_t grub_relocator32_edx;
extern grub_uint32_t grub_relocator32_eip;
extern grub_uint32_t grub_relocator32_esp;
extern grub_uint32_t grub_relocator32_esi;
#define RELOCATOR_SIZEOF(x) (&grub_relocator##x##_end - &grub_relocator##x##_start)
@ -126,6 +127,7 @@ grub_relocator32_boot (struct grub_relocator *rel,
grub_relocator32_edx = state.edx;
grub_relocator32_eip = state.eip;
grub_relocator32_esp = state.esp;
grub_relocator32_esi = state.esi;
grub_memmove (src, &grub_relocator32_start, RELOCATOR_SIZEOF (32));