summaryrefslogtreecommitdiff
path: root/com32/gfxboot/gfxboot.c
Commit message (Collapse)AuthorAgeFilesLines
* com32sys_t inreg shall be zeroified prior intcallErwan Velu2014-01-221-0/+8
| | | | | | | | | | | As per commit f775e740a3a817a4ff5ba26bea99dbfd735456b3, inreg parameters of intcall() shall be zeroified. Having unclean inreg could trigger bad behaviors on some hosts. This patch is about adding memset() calls prior any intcall() : - some intcall didn't had any memset at all - some successive intcall() calls didn't memset inreg in between calls
* Merge branch 'lwip' into elflinkMatt Fleming2013-02-261-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Welcome to Syslinux 5.10. Conflicts: NEWS com32/lib/Makefile com32/lib/sys/open.c com32/lib/syslinux/ipappend.c com32/modules/Makefile com32/modules/prdhcp.c core/Makefile core/cmdline.inc core/com32.inc core/comboot.inc core/configinit.inc core/fs/chdir.c core/fs/fs.c core/fs/pxe/dnsresolv.c core/fs/pxe/pxe.c core/fs/pxe/pxe.h core/idle.c core/include/ctype.h core/init.inc core/mem/init.c core/parseconfig.inc core/runkernel.inc core/syslinux.ld core/ui.inc doc/comboot.txt version
| * Generalize ipappend handling as "sysappend", and move to PM codeH. Peter Anvin2011-04-251-1/+1
| | | | | | | | | | | | | | | | | | | | Generalize the ipappend handling to cover all the derivatives, and rename it "sysappend" ("ipappend" is a valid alias for all derivatives.) Move all the string handling to protected mode. Currently only pxelinux exports strings, but the plan is to change that in the future. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | com32: Add device tree supportThierry Reding2012-06-291-1/+1
|/ | | | | | | | This commit adds support for passing a Flattened Device Tree (FDT) blob to the Linux kernel. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* gfxboot: pass current working dir to gfxboot coreSteffen Winterfeldt2011-04-251-0/+13
| | | | | | | | | | Pass current working dir to (and back from) gfxboot core via gfx_config struct. This way I can implement a chdir() in the gfxboot core without the need for additional 16-bit comboot calls. gfxboot may change the directory, so you have to read and apply the current setting in boot() (to read kernel etc. from right location). Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* gfxboot: handle INITRD config lineSteffen Winterfeldt2011-04-241-1/+5
| | | | | | Handle case where there is no initrd= option but a separate initrd config line. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* gfxboot: remove save_read() functionSebastian Herbszt2011-03-301-24/+2
| | | | | | Remove the no longer needed save_read() function. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* gfxboot: remove lowmem_buf_size variableSebastian Herbszt2011-03-301-5/+2
| | | | | | Remove the no longer needed lowmem_buf_size variable. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* gfxboot: don't use the bounce bufferSebastian Herbszt2011-03-301-5/+11
| | | | | | Allocate lowmem buffer instead of using the bounce buffer. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* gfxboot: use skipspace()Sebastian Herbszt2011-03-301-17/+8
| | | | | | Use skipspace() instead of local skip_spaces(). Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* gfxboot: require LABEL keywordsSebastian Herbszt2010-12-051-0/+5
| | | | | | Require LABEL keywords in config file. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* gfxboot: support TEXT and ENDTEXT keywordsSebastian Herbszt2010-12-051-1/+14
| | | | | | Support TEXT and ENDTEXT keywords; ignore the help text. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* gfxboot: use a character array for an absolute symbolH. Peter Anvin2010-11-141-3/+4
| | | | | | | | The best way to access an absolute symbol is "extern const char foo[];" -- older gccs let you get away with "extern void" but gcc 4.5 chokes on it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* gfxboot: fix buffer overrun when loading kernel/initramfssyslinux-4.03Colin Watson2010-10-201-1/+2
| | | | | | | | If the file size wasn't a multiple of 64KB, we could overwrite the next entry in the malloc arena so reading the initramfs would fail. Signed-off-by: Colin Watson <cjwatson@ubuntu.com> Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* gfxboot: add include and menu include supportsyslinux-4.03-pre5Colin Watson2010-10-121-21/+42
| | | | | | | | Ubuntu CDs use multiple configuration files and the include directive as well as gfxboot, so it's useful for gfxboot to support these. Signed-off-by: Colin Watson <cjwatson@ubuntu.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* gfxboot: set media typeSebastian Herbszt2010-06-131-0/+6
| | | | | | Set media type according to the drive number and cd mode. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* gfxboot: use syslinux_derivative_info()Sebastian Herbszt2010-05-301-10/+6
| | | | | | Use syslinux_derivative_info() instead of open coding it. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* gfxboot: fix menu label handlingSteffen Winterfeldt2010-04-241-20/+28
| | | | | Signed-off-by: Steffen Winterfeldt <wfeldt@opensuse.org> Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* gfxboot: better error handlingSteffen Winterfeldt2010-04-241-23/+95
| | | | | Signed-off-by: Steffen Winterfeldt <wfeldt@opensuse.org> Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* gfxboot: fix localbootSteffen Winterfeldt2010-04-241-1/+1
| | | | | Signed-off-by: Steffen Winterfeldt <wfeldt@opensuse.org> Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* gfxboot: turn off graphics before starting kernelSteffen Winterfeldt2010-04-241-0/+2
| | | | | Signed-off-by: Steffen Winterfeldt <wfeldt@opensuse.org> Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* gfxboot: handle IPAPPENDSteffen Winterfeldt2010-04-241-0/+12
| | | | | Signed-off-by: Steffen Winterfeldt <wfeldt@opensuse.org> Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* gfxboot: make config statements case-insensitiveSteffen Winterfeldt2010-04-241-11/+11
| | | | | Signed-off-by: Steffen Winterfeldt <wfeldt@opensuse.org> Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* gfxboot: support MENU LABEL statementSteffen Winterfeldt2010-04-241-10/+39
| | | | | Signed-off-by: Steffen Winterfeldt <wfeldt@opensuse.org> Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* Change () prototypes to (void)H. Peter Anvin2010-01-061-4/+4
| | | | | | | | () means the same as (...) in C, not the same as (void) as it does in C++. It is generally misused to mean (void), though. Actually write what we mean... this is C, after all. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* gfxboot: fix loading of LABELs with non KERNEL or LINUX commandsSebastian Herbszt2009-12-081-1/+6
| | | | | | Call syslinux_run_command() if menu_ptr->kernel or menu_ptr->linux are not set. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* gfxboot: accept plain boot logo filesSebastian Herbszt2009-12-081-1/+3
| | | | | | Don't force the boot logo file to be a cpio archive. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* gfxboot.c32syslinux-3.84-pre5Steffen Winterfeldt2009-11-261-0/+806
Ok, here is the first try to turn the gfxboot wrapper into a com32 module. I had to extend the interface to the gfxboot core a bit to get it working. So it works only with latest gfxboot from git://gitorious.org/gfxboot/gfxboot.git Steffen Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>