xen/relocator: Use local symbol to ensure that code is relocation-free.
This commit is contained in:
parent
60ae582142
commit
76588d1319
1 changed files with 2 additions and 1 deletions
|
@ -89,7 +89,7 @@ VARIABLE(grub_relocator_xen_mfn_list)
|
||||||
|
|
||||||
loop 1b
|
loop 1b
|
||||||
|
|
||||||
leaq EXT_C(grub_relocator_xen_mmu_op) (%rip), %rdi
|
leaq LOCAL(mmu_op) (%rip), %rdi
|
||||||
movq $3, %rsi
|
movq $3, %rsi
|
||||||
movq $0, %rdx
|
movq $0, %rdx
|
||||||
movq $0x7FF0, %r10
|
movq $0x7FF0, %r10
|
||||||
|
@ -104,6 +104,7 @@ VARIABLE(grub_relocator_xen_remap_continue)
|
||||||
|
|
||||||
jmp *%rax
|
jmp *%rax
|
||||||
|
|
||||||
|
LOCAL(mmu_op):
|
||||||
VARIABLE(grub_relocator_xen_mmu_op)
|
VARIABLE(grub_relocator_xen_mmu_op)
|
||||||
.space 256
|
.space 256
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue