- Compile fixes
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@963 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@ -28,10 +28,10 @@ it with the version available from LANL.
|
||||
/* .section ".rom.text" */
|
||||
#include <arch/rom_segs.h>
|
||||
.code16
|
||||
.globl EXT(_start)
|
||||
.type EXT(_start), @function
|
||||
.globl _start
|
||||
.type _start, @function
|
||||
|
||||
EXT(_start):
|
||||
_start:
|
||||
cli
|
||||
|
||||
/* thanks to kmliu@sis.tw.com for this TBL fix ... */
|
||||
@ -84,7 +84,7 @@ EXT(_start):
|
||||
|
||||
movw %cs, %ax
|
||||
shlw $4, %ax
|
||||
movw $EXT(gdtptr16_offset), %bx
|
||||
movw $gdtptr16_offset, %bx
|
||||
subw %ax, %bx
|
||||
data32 lgdt %cs:(%bx)
|
||||
|
||||
@ -101,12 +101,12 @@ EXT(_start):
|
||||
*/
|
||||
|
||||
.align 4
|
||||
.globl EXT(gdtptr16)
|
||||
EXT(gdtptr16):
|
||||
.globl gdtptr16
|
||||
gdtptr16:
|
||||
.word gdt_end - gdt -1 /* compute the table limit */
|
||||
.long gdt /* we know the offset */
|
||||
|
||||
.globl EXT(_estart)
|
||||
EXT(_estart):
|
||||
.globl _estart
|
||||
_estart:
|
||||
.code32
|
||||
|
||||
|
@ -6,10 +6,10 @@
|
||||
.code32
|
||||
|
||||
.align 4
|
||||
.globl EXT(gdtptr)
|
||||
.globl gdtptr
|
||||
|
||||
gdt:
|
||||
EXT(gdtptr):
|
||||
gdtptr:
|
||||
.word gdt_end - gdt -1 /* compute the table limit */
|
||||
.long gdt /* we know the offset */
|
||||
.word 0
|
||||
@ -37,8 +37,8 @@ gdt_end:
|
||||
* cache will be reloaded.
|
||||
*/
|
||||
.align 4
|
||||
.globl EXT(protected_start)
|
||||
EXT(protected_start):
|
||||
.globl protected_start
|
||||
protected_start:
|
||||
|
||||
lgdt %cs:gdtptr
|
||||
ljmp $ROM_CODE_SEG, $__protected_start
|
||||
|
@ -1,10 +1,10 @@
|
||||
.section ".reset"
|
||||
.code16
|
||||
.globl EXT(reset_vector)
|
||||
EXT(reset_vector):
|
||||
.globl reset_vector
|
||||
reset_vector:
|
||||
|
||||
. = 0x8;
|
||||
.code32
|
||||
jmp EXT(protected_start)
|
||||
jmp protected_start
|
||||
|
||||
.previous
|
||||
|
Reference in New Issue
Block a user