new file to dump northbridge so you can see what's going on.

This commit is contained in:
Ronald G. Minnich 2001-12-19 18:31:48 +00:00
parent 523a37fb8f
commit b5516dc586
2 changed files with 42 additions and 3 deletions

View file

@ -12,11 +12,15 @@ mainboardinit pc80/serial.inc
mainboardinit arch/i386/lib/console.inc
northbridge intel/430tx
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
option ENABLE_FIXED_AND_VARIABLE_MTRRS
#option ENABLE_FIXED_AND_VARIABLE_MTRRS
option PIIX4_DEVFN=0x38
option NO_KEYBOARD
option ZKERNEL_START=0xfffc0000
@ -26,6 +30,8 @@ option SMC_BASE=0x3F0
object mainboard.o
cpu p6
#cpu p6
cpu p5
#option RAM_TEST

View 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: