Netboot Mailing List (by thread)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

patch for etherboot-4.1pre1



If anyone has had problems using etherboot-4.1pre1.tar.bz2 on EPROMs,
here is the fix. Thanks to Charlie Brady for discovering this. I hope
to include Alex Harin's patches for PCI and PnP headers in pre2 soon.

--- zloader.asm.old	Sat Jul 18 19:04:31 1998
+++ zloader.asm	Tue Aug 11 23:45:08 1998
@@ -77,12 +77,14 @@
         movsw
 
 ! Save ROMs CS and length in floppy boot block
+	pop	cx
+	push	ds
 	mov	ax,#FLOPPY_SEGMENT
 	mov	ds,ax
 	mov	ax,cs
 	mov	ROM_SEGMENT,ax
-	pop	cx
 	mov	ROM_LENGTH,cx
+	pop	ds
 
 	jmpi	move,[MOVEROM>>4]
 move:
@@ -90,11 +92,13 @@
 ! Save ROMs CS and length in floppy boot block
 	xor	cx,cx
 	mov	ch,size-_main
+	push	ds
 	mov	ax,#FLOPPY_SEGMENT
 	mov	ds,ax
 	mov	ax,cs
 	mov	ROM_SEGMENT,ax
 	mov	ROM_LENGTH,cx
+	pop	ds
 #endif	/* MOVEROM */
 #endif	/* BOOTROM */
 
--- loader.asm.old	Sat Jul 18 19:02:51 1998
+++ loader.asm	Tue Aug 11 23:46:40 1998
@@ -74,12 +74,14 @@
 
 ! Save ROMs CS and length in floppy boot block before jumping to relocated
 ! code
+	pop	cx
+	push	ds
 	mov	ax,#FLOPPY_SEGMENT
 	mov	ds,ax
 	mov	ax,cs
 	mov	ROM_SEGMENT,ax
-	pop	cx
 	mov	ROM_LENGTH,cx
+	pop	ds
 
 ! Change stack
 	mov	bx,#RELOC>>4		!  new ss



For requests or suggestions regarding this mailing list archive please write to netboot@gkminix.han.de.