mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
Minor glitch fix for reset16 from last checkin.
This commit is contained in:
parent
dc97310a17
commit
62edf8e35e
6 changed files with 12 additions and 12 deletions
|
@ -41,6 +41,7 @@ SECTIONS
|
|||
.text (.) : {
|
||||
_text = .;
|
||||
*(.text);
|
||||
*(.text.*);
|
||||
_etext = .;
|
||||
}
|
||||
.rodata (.) : {
|
||||
|
@ -92,8 +93,8 @@ SECTIONS
|
|||
_estack = .;
|
||||
}
|
||||
|
||||
|
||||
/DISCARD/ : {
|
||||
*(*)
|
||||
*(.comment)
|
||||
*(.note)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ addaction linuxbios.rom export size=`ls -l linuxbios.strip | (read p c u g size
|
|||
addaction linuxbios.rom echo $$size ; \
|
||||
addaction linuxbios.rom dd if=linuxbios.strip of=linuxbios.rom bs=1 seek=`expr $(ROM_IMAGE_SIZE) - $$size`
|
||||
|
||||
makerule linuxbios.strip: linuxbios ; objcopy -O binary -R .note -R .comment -S linuxbios linuxbios.strip
|
||||
makerule linuxbios.strip: linuxbios ; objcopy -O binary linuxbios linuxbios.strip
|
||||
|
||||
makerule linuxbios.o : crt0.o linuxbios.a $(LIBGCC_FILE_NAME) ; $(CC) -nostdlib -r -o $@ crt0.o linuxbios.a $(LIBGCC_FILE_NAME)
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
jmp cpu_reset_out
|
||||
#include <cpu/p6/mtrr.h>
|
||||
|
||||
#ifdef DEBUG
|
||||
cpu_reset_str: .string "cpu_reset\r\n";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.section ".text.reset_vector"
|
||||
.section ".reset"
|
||||
.code16
|
||||
.globl EXT(reset_vector)
|
||||
EXT(reset_vector):
|
||||
|
@ -20,5 +20,5 @@ EXT(reset_vector):
|
|||
#error _ROMBASE is an unsupported value
|
||||
#endif
|
||||
|
||||
.text
|
||||
.code32
|
||||
.code32
|
||||
.previous
|
||||
|
|
|
@ -2,16 +2,13 @@
|
|||
* _ROMTOP : The top of the rom used where we
|
||||
* need to put the reset vector.
|
||||
*/
|
||||
_ROMTOP = (_ROMBASE >= 0xffff0000)? 0xfffffff0 : 0xffff0;
|
||||
|
||||
SECTIONS {
|
||||
_ROMTOP = (_ROMBASE >= 0xffff0000)? 0xfffffff0 : 0xffff0;
|
||||
. = _ROMTOP;
|
||||
.text.reset_vector (.): {
|
||||
*(.text.reset_vector)
|
||||
.reset (.): {
|
||||
*(.reset)
|
||||
. = 15 ;
|
||||
BYTE(0x00);
|
||||
}
|
||||
/DISCARD/ : {
|
||||
*(*)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,5 +2,6 @@ mainboardinit northbridge/intel/440gx/raminit.inc
|
|||
mainboardinit sdram/generic_sdram_enable.inc
|
||||
mainboardinit sdram/generic_sdram.inc
|
||||
mainboardinit sdram/generic_zero_ecc_sdram.inc
|
||||
mainboardinit arch/i386/lib/cpu_reset.inc
|
||||
|
||||
object northbridge.o
|
||||
|
|
Loading…
Add table
Reference in a new issue