mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
new file to dump northbridge so you can see what's going on.
This commit is contained in:
parent
523a37fb8f
commit
b5516dc586
2 changed files with 42 additions and 3 deletions
|
@ -12,11 +12,15 @@ mainboardinit pc80/serial.inc
|
||||||
mainboardinit arch/i386/lib/console.inc
|
mainboardinit arch/i386/lib/console.inc
|
||||||
northbridge intel/430tx
|
northbridge intel/430tx
|
||||||
southbridge intel/piix4e
|
southbridge intel/piix4e
|
||||||
mainboardinit cpu/p6/earlymtrr.inc
|
#mainboardinit cpu/p6/earlymtrr.inc
|
||||||
|
mainboardinit ram/dump_northbridge.inc
|
||||||
|
mainboardinit ram/ramtest.inc
|
||||||
|
mainboardinit mainboard/digitallogic/smartcore-p5/do_ramtest.inc
|
||||||
|
|
||||||
|
|
||||||
superio SMC/fdc37c67x
|
superio SMC/fdc37c67x
|
||||||
|
|
||||||
option ENABLE_FIXED_AND_VARIABLE_MTRRS
|
#option ENABLE_FIXED_AND_VARIABLE_MTRRS
|
||||||
option PIIX4_DEVFN=0x38
|
option PIIX4_DEVFN=0x38
|
||||||
option NO_KEYBOARD
|
option NO_KEYBOARD
|
||||||
option ZKERNEL_START=0xfffc0000
|
option ZKERNEL_START=0xfffc0000
|
||||||
|
@ -26,6 +30,8 @@ option SMC_BASE=0x3F0
|
||||||
|
|
||||||
object mainboard.o
|
object mainboard.o
|
||||||
|
|
||||||
cpu p6
|
#cpu p6
|
||||||
cpu p5
|
cpu p5
|
||||||
|
|
||||||
|
#option RAM_TEST
|
||||||
|
|
||||||
|
|
33
src/ram/dump_northbridge.inc
Normal file
33
src/ram/dump_northbridge.inc
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
/* Dump the first 64 longs for devfn 0, bus 0
|
||||||
|
* i.e. the north bridge.
|
||||||
|
*/
|
||||||
|
|
||||||
|
jmp dumpnorth_skip
|
||||||
|
.section ".rodata"
|
||||||
|
|
||||||
|
dn_banner: .string "dump northbridge: \r\n"
|
||||||
|
dn_done: .string "Done.\r\n"
|
||||||
|
dn_before: .string "Before setting values: \r\n"
|
||||||
|
dn_after: .string "After setting values: \r\n"
|
||||||
|
|
||||||
|
.text
|
||||||
|
dumpnorth:
|
||||||
|
mov %esp, %ebp
|
||||||
|
CONSOLE_INFO_TX_STRING($dn_banner)
|
||||||
|
xorl %ecx, %ecx
|
||||||
|
1:
|
||||||
|
CONSOLE_INFO_TX_HEX32(%ecx)
|
||||||
|
CONSOLE_INFO_TX_CHAR($'-')
|
||||||
|
movl %ecx, %eax
|
||||||
|
|
||||||
|
PCI_READ_CONFIG_DWORD
|
||||||
|
CONSOLE_INFO_TX_HEX32(%eax)
|
||||||
|
CONSOLE_INFO_TX_CHAR($'\r')
|
||||||
|
CONSOLE_INFO_TX_CHAR($'\n')
|
||||||
|
addl $0x4, %ecx
|
||||||
|
cmpl $256, %ecx
|
||||||
|
jne 1b
|
||||||
|
CONSOLE_INFO_TX_STRING($dn_done)
|
||||||
|
mov %ebp, %esp
|
||||||
|
RETSP
|
||||||
|
dumpnorth_skip:
|
Loading…
Add table
Reference in a new issue