Starting new kernel
kexec_test 1.6 starting...
eax: 0E1FB007 ebx: 0000111C ecx: 00000000 edx: 00000000
esi: 00000000 edi: 00000000 esp: 00000000 ebp: 00000000
idt: 00000000 C0000000
gdt: 0000006F 000010A0
Legacy pic setup.
In real mode.
Base memory size: 027E
E820 Memory Map.
000000000009FC00 @ 0000000000000000 type: 00000001
00000000EFF00000 @ 0000000000100000 type: 00000001
0000000000180000 @ 00000000FFE80000 type: 00000002
0000000000009000 @ 00000000FEC00000 type: 00000002
0000000100000000 @ 0000000100000000 type: 00000001
E801 Memory size: 003D7400
Mem88 Memory size: FC00
Testing for APM.
APM test done.
Equiptment list: 4426
Video type: VGA
Cursor Position(Row,Column): 0018 0000
Video Mode: 0003
Setting auto repeat rate done
DASD type: 0300 00FAC53F
In protected mode.
>>What's the deal with "FIXME assuming 64M of ram"? I was a little surprised when
>>my 16GB machine started to OOM as I did a "make -j8 bzImage" :) Why is it that
>>you need the memory size at load time?
> Small steps. When I bypass the BIOS I need to get all of the information
> the kernel normally would get from the BIOS from someplace else. Currently
> you can use the "mem= " kernel command line parameters. Of you can dig the
> /proc/iomem and /proc/meminfo and other places and get the BIOS's memory map.
> There isn't a really good source, so I started with something that would work,
> and I will work the user space tools up to something that works well.
I have a couple of ideas. But, first, is it hard to reconstruct the
memory map? Will all 1GB systems have the same memory map? Do you
have documentation of the format? I don't think that any of these
qualify as the "right thing". But, as hacks, they should keep me
happy for a bit.
For now, I can write a quick script to fix it:
Until it is working a --hack-mem option might be a good idea
Perhaps we could just save a copy off when the kernel loads for the
first time. If we export it somewhere, the kexec executable can just
copy it. For now, we can just printk it and paste it into each
version of kexec that we compile.
-- Dave Hansen firstname.lastname@example.org
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to email@example.com More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/