#ifdef CONFIG_X86_64 /* Switch to trampoline GDT as it is guaranteed < 4 GiB */
movl $__KERNEL_DS, %eax
movl %eax, %ds
lgdtl pa_tr_gdt
/* Disable paging to drop us out of long mode */
movl %cr0, %eax
andl $~X86_CR0_PG, %eax
movl %eax, %cr0
ljmpl $__KERNEL32_CS, $pa_machine_real_restart_paging_off
apm:
movw $0x1000, %ax
movw %ax, %ss
movw $0xf000, %sp
movw $0x5307, %ax
movw $0x0001, %bx
movw $0x0003, %cx
int $0x15 /* This should never return... */
bios:
ljmpw $0xf000, $0xfff0
.section".rodata", "a"
.balign 16
SYM_DATA_START(machine_real_restart_idt)
.word0xffff /* Length - real mode default value */
.long 0/* Base - real mode default value */
SYM_DATA_END(machine_real_restart_idt)
.balign 16
SYM_DATA_START(machine_real_restart_gdt) /* Self-pointer */
.word0xffff /* Length - real mode default value */
.long pa_machine_real_restart_gdt
.word0
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.