x86_64 support for relocator

This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2010-01-12 23:30:52 +01:00
1 parent 11aadbadfb
commit 73f6ce4ab2
7 files changed
+38 -22

No files matched your search

+2 -2
View File
@@ -21,7 +21,7 @@
#ifdef __x86_64__
#define RAX %rax
#define RSI %rdi
#define RSI %rsi
#else
#define RAX %eax
#define RSI %esi
@@ -82,7 +82,7 @@ VARIABLE(grub_relocator64_cr3)
.byte 0xb8
VARIABLE(grub_relocator64_cr3)
.quad 0
movl %rax, %cr3
movq %rax, %cr3
#endif
/* Load GDT. */
lgdt (LOCAL(gdtdesc) - LOCAL(base)) (RSI, 1)