use symbols for segment numbers
authorKevin O'Connor <kevin@koconnor.net>
Mon, 3 Mar 2008 04:24:16 +0000 (23:24 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Mon, 3 Mar 2008 04:24:16 +0000 (23:24 -0500)
this patch uses symbols for segment numbers in romlayout.S

Signed-off-by: Nguyen Anh Quynh
src/romlayout.S

index 0a4bf5d3857a01b4da3ee8ac358c7ef161bba8c0..41ce3d7146ff9f8e8c649be883ee150134115c8b 100644 (file)
@@ -104,12 +104,12 @@ __call16_from32:
         pushl %eax
 
         // Jump to 16bit mode
-        ljmp $0x20, $1f
+        ljmp $REAL_MODE_CS, $1f
 
         .code16gcc
 1:
         // restore data segment limits to 0xffff
-        movw $0x28, %ax
+        movw $REAL_MODE_DS, %ax
         movw %ax, %ds
         movw %ax, %es
         movw %ax, %ss