summaryrefslogtreecommitdiff
path: root/com32/lib/sys
Commit message (Collapse)AuthorAgeFilesLines
* com32/lib/sys/rawcon_read.c: remove variables set but not usedH. Peter Anvin2011-03-161-3/+0
| | | | | | gcc 4.6 warns on variables set but not used, so remove them. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32: fix a ffile descriptor leak on open() of a nonexistent fileH. Peter Anvin2010-12-061-2/+4
| | | | | | | | If we try to open a nonexistent file, free the resulting file descriptor. Reported-by: Antonio Carlini <arcarlini@iee.org> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* com32: add proper sleep()/msleep() functions and make Lua use themH. Peter Anvin2010-07-051-0/+22
| | | | | | | Add proper sleep() and msleep() functions, which among other things call syslinux_idle(), and make Lua use them. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32: change clock_t to 32 bits, and in millisecondsH. Peter Anvin2010-07-051-5/+3
| | | | | | | Previously, clock_t was 16 bits and counted timer ticks, now make it 32 bits and count milliseconds. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32: make __farcall() IF-preservingH. Peter Anvin2010-06-211-1/+14
| | | | | | | Make __farcall preserve the current value of IF. If we need to we can create a __raw_farcall() operation which does not. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* Unify instances of integer log2H. Peter Anvin2010-06-092-8/+3
| | | | | | Unify multiple open-coded instances of integer binary logarithm. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* Merge branch 'master' into pathbasedH. Peter Anvin2010-05-121-1/+1
|\
| * com32: Fixing cast in argv to avoid warningErwan Velu2010-05-121-1/+1
| | | | | | | | | | const char * confuse the *argv++ assignation Casting to char * removes this warning
* | Merge branch 'master' into pathbasedH. Peter Anvin2010-03-292-3/+4
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | Resolved Conflicts: MCONFIG.embedded com32/MCONFIG com32/include/com32.h core/com32.inc core/pxelinux.asm doc/comboot.txt Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * com32: export the filename of a com32 module to the module itselfH. Peter Anvin2010-03-292-3/+4
| | | | | | | | | | | | | | Export the filename of the com32 module to the module itself, setting argv[0]. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | stdcon: make the screen size availableH. Peter Anvin2010-03-061-1/+18
| | | | | | | | | | | | Make the screen size available when using stdcon, not just ansicon. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Add 32-bit versions of open file/close fileH. Peter Anvin2010-03-067-51/+21
| | | | | | | | | | | | Add 32-bit API calls for open file and close file. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | readdir: replace opendir/readdir/closedir API with a 32-bit APIH. Peter Anvin2010-03-041-0/+30
| | | | | | | | | | | | | | | | The 16-bit API to opendir/readdir/closedir was confused, had a memory leak, and was incompatible with Syslinux 3.x anyway. Replace it with a pure 32-bit API. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | com32: replace hard-coded bounce buffer use in com32/libsyslinux-4.00-pre25H. Peter Anvin2010-02-243-29/+59
| | | | | | | | | | | | Replace hard-coded bounce buffer uses in com32/lib with lmalloc/lfree. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | core: add a direct 32-bit APIH. Peter Anvin2010-02-232-23/+28
| | | | | | | | | | | | Add a direct 32-bit API to some functions; initially read file only. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge remote branch 'origin/master' into pathbasedH. Peter Anvin2010-02-203-2/+804
|\ \ | |/
| * i915resolution: use libpci to access PCI config spacesyslinux-3.85-pre13syslinux-3.85H. Peter Anvin2010-02-161-19/+11
| | | | | | | | | | | | | | | | Use libpci to access PCI config space. This *hopefully* will make it less likely that some old machine hangs when failing to set the requested video mode. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Merge branch 'master' into i915ressyslinux-3.85-pre63H. Peter Anvin2010-02-081-9/+37
| |\
| * | vesa: allow arbitrary resolutions on some Intel chipsetsH. Peter Anvin2010-01-223-2/+812
| | | | | | | | | | | | | | | | | | | | | Add some code from the tool "915resolution" to allow arbitrary resolutions to be set on some Intel chipsets. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | Merge branch 'master' into pathbasedsyslinux-4.00-pre20H. Peter Anvin2010-02-141-9/+37
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | Resolved Conflicts: com32/Makefile com32/include/syslinux/pxe.h core/pxelinux.asm core/syslinux.ld Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | vesa: for jpg or png images, tile the image across the screenH. Peter Anvin2010-02-081-9/+37
| |/ | | | | | | | | | | | | | | | | | | | | If we specify a smaller image than the screen size, tile it across the screen rather than leaving a big black box. This may have to be made configurable. Also note that Syslinux currently does not handle the case of an image bleeding off the end of the screen. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | openmem: fix openmem()syslinux-4.00-pre11H. Peter Anvin2010-01-251-1/+2
| | | | | | | | | | | | Correct the implementation of openmem(). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge branch 'master' into fscH. Peter Anvin2010-01-244-15/+25
|\ \ | |/ | | | | | | | | Conflicts: com32/lib/MCONFIG com32/lib/readdir.c
| * com32/lib: fix external prototype for __vesacon_open()H. Peter Anvin2010-01-101-1/+1
| | | | | | | | | | | | | | The external prototype for __vesacon_open() was incorrect; this is a good example of why external prototypes are bad, incidentally. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * com32/lib: fix inappropriate & in sys/colortable.cH. Peter Anvin2010-01-101-1/+1
| | | | | | | | | | | | The & is incorrect... not actively harmful, but generates a warning. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * com32/lib: add cast in __parse_argv()H. Peter Anvin2010-01-101-1/+1
| | | | | | | | | | | | | | | | | | ALIGN_UP_FOR() returns the type of the original pointer, but we want it to be the type that we're actually going to use. Perhaps ALIGN_UP_FOR() should be changed, but for now, just add the proper cast. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Change () prototypes to (void)H. Peter Anvin2010-01-061-12/+22
| | | | | | | | | | | | | | | | () 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>
* | Merge commit 'origin/master' into fscH. Peter Anvin2009-12-222-5/+12
|\ \ | |/
| * vesa: formatting fixH. Peter Anvin2009-12-221-1/+1
| | | | | | | | | | | | Code formatting fix in screencpy.c Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * vesamenu: unbreak the default backgroundH. Peter Anvin2009-12-221-4/+11
| | | | | | | | | | | | Unbreak the default background image; it would clobber all of memory. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge commit 'syslinux-3.84'H. Peter Anvin2009-12-221-12/+7
|\ \ | |/ | | | | | | | | | | Resolved Conflicts: Makefile Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * video: implement long-promised video functions; use themH. Peter Anvin2009-12-181-12/+7
| | | | | | | | | | | | | | | | Implement long-since-promised video functions defined in <syslinux/video.h>. Use these functions in initvesa.c instead of open-coding the same functionality. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge branch 'master' into fscH. Peter Anvin2009-12-2210-96/+194
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | Resolved Conflicts: com32/Makefile com32/lib/sys/open.c com32/modules/Makefile dos/Makefile dos/com16.ld dos/syslinux.c version Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * vesacon: don't display the cursor when doing a quiet bootH. Peter Anvin2009-12-075-8/+19
| | | | | | | | | | | | | | | | | | Don't display the cursor on the graphical screen while doing a quiet boot. When doing a quiet boot we will probably show the graphical screen for a fair bit of time; as a result, we really don't want a completely bogus cursor blob on the bottom of the screen. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Merge branch 'softres'H. Peter Anvin2009-12-075-76/+116
| |\
| | * vesacon: make it possible to request nonstandard resolutionsH. Peter Anvin2009-12-071-1/+15
| | | | | | | | | | | | | | | | | | | | | Make it possible to request nonstandard resolutions when enabling vesacon. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * vesacon: not all JPEG images are JFIFH. Peter Anvin2009-12-071-2/+1
| | | | | | | | | | | | | | | | | | | | | There are a fair number of valid JPEG images which we can validly decode that aren't JFIF-complient, so don't require the JFIF header. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * vesacon: infrastructure support for arbitrary resolutionsH. Peter Anvin2009-08-055-77/+104
| | | | | | | | | | | | | | | | | | | | | Drop the hard-coding of 640x480 resolution in preparation for being able to handle other resolutions. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | com32: Avoid gpxe detection code duplicationErwan Velu2009-12-041-0/+45
| | | | | | | | | | | | | | | | | | Impact: avoid code duplication This will make code more generic, hdt will need it ;)
| * | open: close the file descriptor if the file fails to openH. Peter Anvin2009-11-191-1/+2
| | | | | | | | | | | | | | | | | | | | | Close the file descriptor (freeing the file structure) when opening a file fails. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Revert "ansicon: allow to pass page # to write functions"H. Peter Anvin2009-11-063-15/+16
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit e9b317fd0dc87dc93a49bc40520f4bdd0264d746. (This commit breaks vesamenu, and $DEITY knows what else.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | Merge branch 'master' into fscH. Peter Anvin2009-11-064-56/+303
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: com32/modules/Makefile core/pxelinux.asm core/serirq.inc Note: hardwired options will need to be re-implemented in PXELINUX. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | libansi: reset SGR parameters cache in cls()Pierre-Alexandre Meyer2009-11-021-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was a bug in HDT when switching from the menu to the cli and back to the menu: the background wasn't redrawn. This was due to the fact that the cli bypasses the libansi library and calls printf() directly. Unfortunately, the SGR attributes were cached between menu initializations and the background wasn't properly redrawn. To fix it, invalidate the cache in the cls() routine. cls() does much more than just erasing the screen already (e.g. initialize G1) - we may want to rename the function at some point. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | libansi: correctly reset attributesPierre-Alexandre Meyer2009-09-051-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When resetting the attributes, we were updating last_attr to the unknown value 0x300, which doesn't always work. For instance, when requesting reset and normal attributes, i.e. "\e[0;30;47m" with the previous attribute being "\e[1;30;47m", we where printing "\e[0;47m", which behaves like "\e[0;39;47m". This is incorrect. This patch adds a flag to explicitly set background and foreground colors after a reset. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | libansi: reset_colors should use csprintPierre-Alexandre Meyer2009-09-051-1/+1
| | | | | | | | | | | | | | | | | | cprint_vga2ansi takes only a char, not a string. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | libansi: add reset_colors functionPierre-Alexandre Meyer2009-09-051-0/+5
| | | | | | | | | | | | | | | | | | Purpose of reset_colors is to reset the attribute to VGA 0x07. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | ansi: add support for no-wrap mode, cleanupsH. Peter Anvin2009-09-042-40/+51
| | | | | | | | | | | | | | | | | | | | | | | | Add support for nowrap mode CSI ? 7 l (unfortunately, on ANSI.SYS it is CSI = 7 l; which means that the only way to support both is to print both sequences and then erase the resulting garbage.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Merge commit 'origin/libansi' into cmenu-videoPierre-Alexandre Meyer2009-09-041-0/+207
| |\ \
| | * | libansi: build libansi.oPierre-Alexandre Meyer2009-09-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Hook libansi.o into the lib/ build. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| | * | libansi: move to lib directory, as it is MIT, not GPL licensedPierre-Alexandre Meyer2009-09-011-0/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | | | gplinclude/gpllib should be used for external, GPL, libraries only. libansi has been developed for Syslinux and is MIT licensed. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>