fix: add Xen PVH ELF note to enable QEMU -kernel boot
Co-authored-by: aider (openrouter/moonshotai/kimi-k2.6) <aider@aider.chat>
This commit is contained in:
@@ -27,4 +27,9 @@ SECTIONS
|
|||||||
*(COMMON)
|
*(COMMON)
|
||||||
__bss_end = .;
|
__bss_end = .;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.note : ALIGN(4)
|
||||||
|
{
|
||||||
|
*(.note.Xen)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,6 +88,15 @@ long_mode_start:
|
|||||||
hlt
|
hlt
|
||||||
jmp 1b
|
jmp 1b
|
||||||
|
|
||||||
|
.section .note.Xen, "a", @note
|
||||||
|
.align 4
|
||||||
|
.long 4
|
||||||
|
.long 4
|
||||||
|
.long 18
|
||||||
|
.asciz "Xen"
|
||||||
|
.align 4
|
||||||
|
.long _start
|
||||||
|
|
||||||
.section .rodata
|
.section .rodata
|
||||||
.align 8
|
.align 8
|
||||||
gdt64:
|
gdt64:
|
||||||
|
|||||||
Reference in New Issue
Block a user