[syslinux] pxelinux bug's
Iouri Kharon
bc-info at styx.cabel.net
Wed Jun 20 19:02:07 PDT 2007
Hi H.!
Thursday, June 21, 2007, you wrote:
HPA> Could you be a bit more explicit what you mean with "he alignment of the
HPA> last disk is discarded in calculations but is ALWAYS present when the
HPA> loading procedure is called"?
Reference linenumber in 3.51 (runkernel.inc)
line 603 ('alignment discarded for last disk'; last(in mem) = first loaded):
cmp dword [es:su_ramdisklen], 0
je .nopadding
add ecx,4095
and cx,0F000h
.nopadding
line 617 ('ALWAYS present when called'):
mov dx,0FFFh
mov bx,load_dot
call load_high
:)
When load second disk, first disk aligned in load_high, but it size was not aligned
in line 603.
-----------------
Why align to page (not dword)? If see in linux/init/initramfs.c:unpack_to_rootfs()
while(...) {
if (*buf == '0' && !(this_header & 3)) { // e.g. aligned to 32bit
.....
}
if (!*buf) {
++buf;
--len;
++this_header;
continue;
}
// unpack and/or load cpio-archieve UNALIGNED
?
Best regards,
Iouri mailto:bc-info at styx.cabel.net
More information about the Syslinux
mailing list