From 75571b0227fe6634a79868215575f80b3a5bfd04 Mon Sep 17 00:00:00 2001 From: Li-Ta Lo Date: Fri, 1 Dec 2000 03:33:59 +0000 Subject: [PATCH] some performance boost for reading DoC --- src/lib/newpci.c | 9 ++++----- src/northsouthbridge/sis/630/ipl.S | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/lib/newpci.c b/src/lib/newpci.c index 900f031f68..dfa8999b2c 100644 --- a/src/lib/newpci.c +++ b/src/lib/newpci.c @@ -10,7 +10,10 @@ * it with multiple passes, until I actually started doing it and saw * the wisdom of Tom's recommendations ... */ -/* single-pass allocation appears to be the way to go. */ +#ifndef lint +static char rcsid[] = "$Id$"; +#endif + #include #undef __KERNEL__ #include @@ -27,10 +30,6 @@ #define PCI_MEM_START 0x80000000 #define PCI_IO_START 0x1000 -#ifndef lint -static char rcsid[] = "$Id$"; -#endif - // historical functions, sometimes very useful. /* * Write the special configuration registers on the INTEL diff --git a/src/northsouthbridge/sis/630/ipl.S b/src/northsouthbridge/sis/630/ipl.S index ec32c6480f..7b894fa922 100644 --- a/src/northsouthbridge/sis/630/ipl.S +++ b/src/northsouthbridge/sis/630/ipl.S @@ -257,11 +257,11 @@ doc_delay: jz wait_for_flash_ready movb 0x1d(%di), %al # init read pipeline - movw $0x200, %cx # 1 page = 512 bytes + movw $0x100, %cx # 1 page = 512 bytes movw $0x800, %si # point %si to CDSN Data area movw %dx, %di # restore saved current destination rep - movsb + movsw movw %di, %dx # save current destination incw %bp # increse current page number