mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 15:22:39 +00:00
x86_64 support for relocator
This commit is contained in:
1 parent
11aadbadfb
commit
73f6ce4ab2
7 files changed
+38
-22
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user