diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2008-03-01 13:39:52 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2008-03-01 13:39:52 -0500 |
commit | cb6735fcfedcda845d404c36098bf9a8f3a83a08 (patch) | |
tree | b713b17fee2178ddaef500a5fde61f421694a495 | |
parent | adb6b3716364b1cdf9f5f2b741804a2883e7781e (diff) | |
download | seabios-hppa-cb6735fcfedcda845d404c36098bf9a8f3a83a08.zip seabios-hppa-cb6735fcfedcda845d404c36098bf9a8f3a83a08.tar.gz seabios-hppa-cb6735fcfedcda845d404c36098bf9a8f3a83a08.tar.bz2 |
Improve comments in romlayout.S
-rw-r--r-- | src/romlayout.S | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/romlayout.S b/src/romlayout.S index e418601..ab742d5 100644 --- a/src/romlayout.S +++ b/src/romlayout.S @@ -78,7 +78,8 @@ transition32: movl %eax, %cr0 // start protected mode code - .word 0xea66, 1f, 0x000f, PROTECTED_MODE_CS // ljmpl $PROTECTED_MODE_CS, $1f + // ljmpl $PROTECTED_MODE_CS, $(1f | 0xf0000) + .word 0xea66, 1f, 0x000f, PROTECTED_MODE_CS .code32 1: @@ -96,7 +97,7 @@ transition32: retl // Call a 16bit function from 32bit mode. -// 4(%esp) = address of struct bregs +// %eax = address of struct bregs // Clobbers: all gp registers, flags, stack registers, cr0, idt/gdt .globl __call16_from32 __call16_from32: @@ -226,10 +227,14 @@ rombios32_gdt_48: rombios32_gdt: .word 0, 0, 0, 0 .word 0, 0, 0, 0 - .word 0xffff, 0, 0x9b00, 0x00cf // 32 bit flat code segment (PROTECTED_MODE_CS) - .word 0xffff, 0, 0x9300, 0x00cf // 32 bit flat data segment (PROTECTED_MODE_DS) - .word 0xffff, 0, 0x9b0f, 0x0000 // 16 bit code segment base=0xf0000 limit=0xffff - .word 0xffff, 0, 0x9300, 0x0000 // 16 bit data segment base=0x0 limit=0xffff + // 32 bit flat code segment (PROTECTED_MODE_CS) + .word 0xffff, 0, 0x9b00, 0x00cf + // 32 bit flat data segment (PROTECTED_MODE_DS) + .word 0xffff, 0, 0x9300, 0x00cf + // 16 bit code segment base=0xf0000 limit=0xffff (REAL_MODE_CS) + .word 0xffff, 0, 0x9b0f, 0x0000 + // 16 bit data segment base=0x0 limit=0xffff (REAL_MODE_DS) + .word 0xffff, 0, 0x9300, 0x0000 // We need a copy of this string, but we are not actually a PnP BIOS, // so make sure it is *not* aligned, so OSes will not see it if they |