Netboot Mailing List (by thread)

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

Re: Etherboot 4.4.4 released




Sorry, I managed to miss a patch supplied by FUKUHARA Makoto. However
it only affects FreeBSD ELF booting with large tftp blocks so I'll just
post the patch here and the change will officially be in 4.4.5.

--- ../../etherboot-4.4.4/src/osloader.c	Thu Feb  3 21:34:58 2000
+++ osloader.c	Wed Mar  8 23:36:01 2000
@@ -360,7 +360,7 @@
 		printf("Segment %d, offset %X, read %X, loadpoint %X\n",			       segment, offset, read, loadpoint);
 		if(segment>=0){
 			printf("Write trailing bit\n");
-			memcpy(loadpoint, data+offset, 512-offset);
+			memcpy(loadpoint, data+offset, len-offset);
 		}
 		segment_last=segment;
 		for(;;){
@@ -413,8 +413,8 @@
 		printf("Skip space %d ",(int)phdr[segment].p_offset-read);
 		return (1);
 	}else{
-		memcpy(loadpoint, data+offset, 512-offset);
-		loadpoint+=512-offset;
+		memcpy(loadpoint, data+offset, len-offset);
+		loadpoint+=len-offset;
 		offset=0;
 		return (1);
 	}
===========================================================================
This Mail was sent to netboot mailing list by:
Ken Yap <ken@nlc.net.au>
To get help about this list, send a mail with 'help' as the only string in
it's body to majordomo@baghira.han.de. If you have problems with this list,
send a mail to netboot-owner@baghira.han.de.



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