aboutsummaryrefslogtreecommitdiff
path: root/src/arch/x86/lib/walkcbfs.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/lib/walkcbfs.S')
-rw-r--r--src/arch/x86/lib/walkcbfs.S6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/arch/x86/lib/walkcbfs.S b/src/arch/x86/lib/walkcbfs.S
index 2dc9617651..60eb8b53b0 100644
--- a/src/arch/x86/lib/walkcbfs.S
+++ b/src/arch/x86/lib/walkcbfs.S
@@ -18,7 +18,7 @@
/*
* input %esi: filename
* input %esp: return address (not pointer to return address!)
- * output %eax: entry point
+ * output %eax: pointer to CBFS header
* clobbers %ebx, %ecx, %edi
*/
walkcbfs_asm:
@@ -59,9 +59,7 @@ walker:
jnz tryharder
/* we found it! */
- mov CBFS_FILE_OFFSET(%ebx), %eax
- bswap %eax
- add %ebx, %eax
+ mov %ebx, %eax
jmp *%esp
tryharder: