summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2010-05-23 11:08:37 +0000
committerStefan Reinauer <stepan@openbios.org>2010-05-23 11:08:37 +0000
commit8f296e8456e83e062cdb3cbdf204bd28e249adde (patch)
treeb6b47baaad952f357441bff80da581aa5e014415 /src
parentae3f4b572599ed1e2f149aee0d74e976948a5305 (diff)
consistently use decimal for the register offsets, and fix comment typos.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5582 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r--src/devices/oprom/x86_asm.S36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/devices/oprom/x86_asm.S b/src/devices/oprom/x86_asm.S
index ee7c5faaab..bbae4b1bce 100644
--- a/src/devices/oprom/x86_asm.S
+++ b/src/devices/oprom/x86_asm.S
@@ -59,12 +59,12 @@ __stack = RELOCATED(.)
/* Register store for realmode_call and realmode_interrupt */
__registers = RELOCATED(.)
- .long 0 /* 0x00 - EAX */
- .long 0 /* 0x04 - EBX */
- .long 0 /* 0x08 - ECX */
- .long 0 /* 0x0c - EDX */
- .long 0 /* 0x10 - EDI */
- .long 0 /* 0x14 - ESI */
+ .long 0 /* 0 - EAX */
+ .long 0 /* 4 - EBX */
+ .long 0 /* 8 - ECX */
+ .long 0 /* 12 - EDX */
+ .long 0 /* 16 - ESI */
+ .long 0 /* 20 - EDI */
.code32
.globl __realmode_call
@@ -89,17 +89,17 @@ __realmode_call = RELOCATED(.)
/* initial register values */
movl 40(%ebp), %eax
- movl %eax, __registers + 0x00 /* eax */
+ movl %eax, __registers + 0 /* eax */
movl 44(%ebp), %eax
- movl %eax, __registers + 0x04 /* ebx */
+ movl %eax, __registers + 4 /* ebx */
movl 48(%ebp), %eax
- movl %eax, __registers + 0x08 /* ecx */
+ movl %eax, __registers + 8 /* ecx */
movl 52(%ebp), %eax
- movl %eax, __registers + 0x0c /* edx */
+ movl %eax, __registers + 12 /* edx */
movl 56(%ebp), %eax
- movl %eax, __registers + 0x10 /* esi */
+ movl %eax, __registers + 16 /* esi */
movl 60(%ebp), %eax
- movl %eax, __registers + 0x14 /* esi */
+ movl %eax, __registers + 20 /* edi */
/* Activate the right segment descriptor real mode. */
ljmp $0x28, $RELOCATED(1f)
@@ -210,17 +210,17 @@ __realmode_interrupt = RELOCATED(.)
/* initial register values */
movl 40(%ebp), %eax
- movl %eax, __registers + 0x00 /* eax */
+ movl %eax, __registers + 0 /* eax */
movl 44(%ebp), %eax
- movl %eax, __registers + 0x04 /* ebx */
+ movl %eax, __registers + 4 /* ebx */
movl 48(%ebp), %eax
- movl %eax, __registers + 0x08 /* ecx */
+ movl %eax, __registers + 8 /* ecx */
movl 52(%ebp), %eax
- movl %eax, __registers + 0x0c /* edx */
+ movl %eax, __registers + 12 /* edx */
movl 56(%ebp), %eax
- movl %eax, __registers + 0x10 /* esi */
+ movl %eax, __registers + 16 /* esi */
movl 60(%ebp), %eax
- movl %eax, __registers + 0x14 /* esi */
+ movl %eax, __registers + 20 /* edi */
/* This configures CS properly for real mode. */
ljmp $0x28, $RELOCATED(1f)