Displaying 2 results from an estimated 2 matches for "kern_cmd_offset".
2005 Jun 05
2
pxelinux and DISPLAY
I've begun tinkering with syslinux v3 and have uncovered an anomoly with
the DISPLAY file when called by pxelinux.0.
If I have:
DISPLAY boot.msg
With an "^Xsplash.lss\n" in the file boot.msg (exactly: 18 73 70 6C 61
73 68 2E 6C 73 73 0A) file, it will fail to load the rle image. And
produce some goofy results in the tftpd log:
Jun 5 06:27:06 pxe in.tftpd[24649]: RRQ from
2005 Jul 07
0
pxelinux and DISPLAY
...@
-;; $Id: runkernel.inc,v 1.19 2005/01/06 22:34:06 hpa Exp $
+;; $Id: runkernel.inc,v 1.20 2005/05/08 21:47:03 hpa Exp $
;; -----------------------------------------------------------------------
;;
;; Copyright 1994-2005 H. Peter Anvin - All Rights Reserved
@@ -345,9 +345,12 @@
mov [fs:kern_cmd_offset],di ; Store pointer
mov cx,[CmdLineLen]
- add cx,byte 3
- shr cx,2 ; Convert to dwords
- fs rep movsd
+ cmp cx,255
+ jna .len_ok
+ mov cx,255 ; Protocol < 0x202 has 255 as hard limit
+.len_ok:
+ fs rep movsb
+ fs stosb ; Final null, note AL == 0 here
push fs
pop es