| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
gcc 4.6 warns on variables set but not used, so remove them.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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 multiple open-coded instances of integer binary logarithm.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
|\ |
|
| |
| |
| |
| |
| | |
const char * confuse the *argv++ assignation
Casting to char * removes this warning
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| | |
Export the filename of the com32 module to the module itself, setting
argv[0].
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| |
| |
| |
| |
| |
| | |
Make the screen size available when using stdcon, not just ansicon.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
| |
| |
| |
| |
| | |
Add 32-bit API calls for open file and close file.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| | |
Replace hard-coded bounce buffer uses in com32/lib with lmalloc/lfree.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
| |
| |
| |
| |
| | |
Add a direct 32-bit API to some functions; initially read file only.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
|\ \ \
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Resolved Conflicts:
com32/Makefile
com32/include/syslinux/pxe.h
core/pxelinux.asm
core/syslinux.ld
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| | |
Correct the implementation of openmem().
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|\ \
| |/
| |
| |
| |
| | |
Conflicts:
com32/lib/MCONFIG
com32/lib/readdir.c
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| | |
The & is incorrect... not actively harmful, but generates a warning.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| | |
() 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>
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| | |
Code formatting fix in screencpy.c
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
| |
| |
| |
| |
| | |
Unbreak the default background image; it would clobber all of memory.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|\ \
| |/
| |
| |
| |
| |
| | |
Resolved Conflicts:
Makefile
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Make it possible to request nonstandard resolutions when enabling
vesacon.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | | |
Impact: avoid code duplication
This will make code more generic, hdt will need it ;)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Close the file descriptor (freeing the file structure) when opening a
file fails.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This reverts commit e9b317fd0dc87dc93a49bc40520f4bdd0264d746.
(This commit breaks vesamenu, and $DEITY knows what else.)
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| | |
| | |
| | |
| | |
| | |
| | | |
cprint_vga2ansi takes only a char, not a string.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | |
| | |
| | |
| | |
| | |
| | | |
Purpose of reset_colors is to reset the attribute to VGA 0x07.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| |\ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Hook libansi.o into the lib/ build.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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>
|