summaryrefslogtreecommitdiff
path: root/com32/lib/syslinux/load_linux.c
Commit message (Collapse)AuthorAgeFilesLines
* Add support for "vga=current"H. Peter Anvin2010-01-221-0/+3
| | | | | | "vga=current" is a user-friendly synonym for "vga=0x0f04". Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/lib/syslinux/load_linux.cH. Peter Anvin2009-05-291-365/+364
| | | | | | | | | Automatically reformat com32/lib/syslinux/load_linux.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* load_linux.c: quiet warningH. Peter Anvin2009-05-041-1/+1
| | | | | | Quiet a (harmless) compiler warning. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* load_linux.c: consider a zImage kernel to be non-relocatableH. Peter Anvin2009-05-041-1/+1
| | | | | | | | It's pretty safe to say there has never been a working relocatable Linux zImage kernel, and the semantics for them are iffy at best. Consider zImage kernels to be non-relocatable. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* load_linux.c: when relocating, need to update code32_startH. Peter Anvin2009-05-041-0/+1
| | | | | | | | The normal value for code32_start is based on the kernel load address (in fact, it usually *is* the kernel load address); accordingly, it needs to be updated if the kernel is relocated. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* load_linux.c: add missing header fileH. Peter Anvin2009-05-041-0/+1
| | | | | | We need <minmax.h> for min(). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* linux.c32: cap the stack pointer to 0xfff0H. Peter Anvin2009-05-041-1/+2
| | | | | | | | Linux itself is fine with sp = 0 for a 64K segment, but perhaps other things aren't. Just to be safe, set the stack pointer to 64K-16 bytes. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* linux.c32: move handling of mem= and vga= into the library functionsyslinux-3.80-pre5H. Peter Anvin2009-04-291-6/+96
| | | | | | | Move the handling of mem= and vga= into syslinux_boot_linux(), so that the user of that function doesn't need to worry about it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Update copyright notices; add Intel notices where appropriateH. Peter Anvin2009-04-041-0/+1
| | | | | | | Update copyright notices. Per agreement with my new employer, Intel Corporation, add Intel copyright notices where appropriate. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* linux.c32: don't relocate the real-mode code *above* 0x90000H. Peter Anvin2009-04-031-1/+1
| | | | | | | Do not relocate the real-mode code above address 0x90000... that would not be prudent. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* linux.c32: make load_linux() support relocationH. Peter Anvin2009-04-031-0/+78
| | | | | | | | In the case where the preferred kernel locations are not available, make load_linux() smart enough to be able to relocate the kernel if at all possible. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* linux.c32: fix initrd alignmentH. Peter Anvin2009-03-121-4/+4
| | | | | | | | | | | | Impact: fix boot failure on Dell E6500 and possibly other platforms Linux may not be able to access a part of an initrd which resides in a page that is part RAM, part non-RAM. Make sure we round the end of the memory range we want to use down to a page boundary (as well as round the start up.) Reported-by: Pierre-Alexandre Meyer <pierre@mouraf.org> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Update copyright yearH. Peter Anvin2008-01-101-1/+1
|
* Optional debugging code for shuffle and boot and load_linuxsyslinux-3.53-pre2H. Peter Anvin2007-11-021-0/+26
| | | | | Put (disabled) debugging code in shuffle.c and load_linux.c for future needs.
* More tweaks to allow bigger stack/heap, and boot protocol adjustmentssyslinux-3.50-pre7H. Peter Anvin2007-05-071-1/+1
| | | | | Seems the su_heapend field was never set up right; also sanitize the way the pre-2.02 command line is handled.
* Make more space for the heap when doing so is possibleH. Peter Anvin2007-05-051-13/+16
| | | | | If we have a modern kernel which is loaded high, we can allow a lot more space for the real-mode heap.
* initramfs chain handling: add support for forcing the alignment.H. Peter Anvin2007-03-151-7/+22
| | | | | | cpio has annoying alignment constraints; make it possible to enforce them without adding padding to the end of last member (which breaks things which relies on gzip and need to know the final length.)
* Initial library support for booting a Linux kernelH. Peter Anvin2007-03-151-0/+293