[patch] doc_stage1.S : GRUB on DoC
Ilguiz Latypov
ilatypov at superbt.com
Thu Aug 1 19:44:52 EDT 2002
Would this modification make a difference? It seems we read the first
flash block into a different address when identifying the chip.
Ilguiz
--- doc_stage1.S 30 Jul 2002 01:09:35 -0000 1.12
+++ doc_stage1.S 1 Aug 2002 23:22:05 -0000
@@ -192,13 +192,13 @@
/* Use existing block read routine to get Manufacturer &
** Chip ID. Overkill, but saves code space. */
- movw $1, %cx /* read just one page */
- movw $GRUBSTART, %ax
+ movw $1, %cx /* read just one block */
+ movw $GRUBLOADSEG, %ax
movw %ax, %es
- movw $0, %di
+ movw $GRUBLOADOFS, %di
call read_block
- movw %es:0,%ax /* id/mfr in first 2 bytes */
+ movw %es:(GRUBLOADOFS), %ax /* id/mfr in first 2 bytes */
#ifdef SHOW_INFO
On Thu, 1 Aug 2002, Mark Meade wrote:
> We copy a few pages OK (%di = 0x400, 0x500, 0x600), but lock up when %di
> is between 0x700 and 0x800, specifically with ES:DI equal to
> 0x07E0:0x0719.
More information about the linux-mtd
mailing list