aboutsummaryrefslogtreecommitdiffstats
path: root/com32
Commit message (Collapse)AuthorAgeFilesLines
...
* | lua: base the package load paths on the Syslinux pathFerenc Wágner2014-03-022-2/+35
| |
* | lua: upgrade to 5.2.3Ferenc Wágner2014-03-0263-107/+160
| |
* | lua: add demo of the cmenu binding (the simple example)Ferenc Wágner2014-03-021-0/+34
| |
* | lua: start of a binding module for libmenu.c32Ferenc Wágner2014-03-022-0/+94
| |
* | lua: make the dmi module standaloneFerenc Wágner2014-03-012-4/+14
| | | | | | | | | | | | By copying two short functions from the cpu module. They do not warrant a separate module. Also make those functions static in both modules.
* | lua: also reactivate the cpu, dhcp, dmi, pci and vesa extension modulesFerenc Wágner2014-03-017-8/+19
| | | | | | | | And document the change in usage.
* | lua: bind get_key() in the syslinux moduleFerenc Wágner2014-03-011-0/+49
| |
* | lua: reactivate the syslinux extension moduleFerenc Wágner2014-03-012-2/+3
| | | | | | | | | | Under Lua 5.2 modules are not expected to set global variables to reduce namespace pollution. Explicit require() is preferred.
* | lua: add the LuaFileSystem libraryFerenc Wágner2014-03-012-0/+297
| |
* | lua: enable dynamic module loadingFerenc Wágner2014-03-012-0/+48
| |
* | sys/module.h: fix some typos in function documentationsFerenc Wágner2014-03-011-2/+3
| |
* | sys/module.h: remove the #ifdef DYNAMIC_MODULE conditionFerenc Wágner2014-03-011-20/+0
| | | | | | | | | | This makes the module_* functions accessible to COM32 modules. MODULE_INIT and MODULE_EXIT are not used anymore.
* | lua: the COM32 API does not support freopen()Ferenc Wágner2014-03-011-0/+2
| | | | | | | | Nor the concept of text vs. binary open mode, so it does not matter.
* | lua: the COM32 API does not support time()Ferenc Wágner2014-03-011-0/+5
| |
* | lua: the COM32 API actually supports exit() of oslibFerenc Wágner2014-03-012-1/+11
| |
* | stdlib.h: provide a stub definition for getenv()Ferenc Wágner2014-03-011-1/+6
| | | | | | | | Which always returns NULL, representing an empty environment.
* | lua: the COM32 API supports only part of iolibFerenc Wágner2014-03-012-0/+25
| |
* | lua: the COM32 API does not provide strcoll()Ferenc Wágner2014-03-011-0/+3
| |
* | lua: use integer arithmeticFerenc Wágner2014-03-016-11/+94
| |
* | lua: the COM32 API does not provide locale.hFerenc Wágner2014-03-011-0/+4
| |
* | lua: explicitly put the console in standard modeFerenc Wágner2014-03-011-0/+4
| |
* | lua: the COM32 API does not provide signal.hFerenc Wágner2014-03-011-0/+6
| |
* | dev.h: get size_t definitionFerenc Wágner2014-03-011-0/+1
| |
* | lua: replace src/Makefile to build Lua as a Syslinux COM32 moduleFerenc Wágner2014-03-011-172/+49
| | | | | | | | | | | | | | | | Start with the src/Makefile in Syslinux before importing Lua 5.2.2. Refresh the core Lua object list based on the original Makefile. Add the new builtin library objects. Temporarily remove the Syslinux extension library objects, as they need adjustments for the new API.
* | lua: import Lua 5.2.2Ferenc Wágner2014-03-01115-10901/+14357
| | | | | | | | | | | | Source downloaded from http://www.lua.org/ftp/lua-5.2.2.tar.gz. The com32/lua directory now matches exactly the source distribution, plus the various Syslinux extension modules and their documentation.
* | shuffler: Actually get the shuffler size sanelysyslinux-6.03-pre4H. Peter Anvin2014-02-272-13/+8
|/ | | | | | | | | Actually get the shuffler size sanely. At least for now, we are BIOS only, so stub out the functions on EFI (they shouldn't even be compiled for EFI; this stuff should be moved into some kind of BIOS-only directory.) Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* pxe: Export the initial stack and PXE(NV) structure, fix pxechnH. Peter Anvin2014-02-132-17/+19
| | | | | | | | | | Export the initial stack and PXE(NV) structure pointers properly, even for users which need seg:offs. Use this in pxechn.c rather than the already-removed INT 22h AX=000Ah call. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com> Cc: Gene Cumm <gene.cumm@gmail.com>
* Merge remote-tracking branch 'origin/rockridge'H. Peter Anvin2014-02-122-16/+138
|\ | | | | | | | | | | | | Resolved Conflicts: com32/include/byteswap.h Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Generic facilities for byteswapping and unaligned referencesH. Peter Anvin2013-04-022-11/+141
| | | | | | | | | | | | | | For future portability, add functions to access both littleendian and bigendian numbers, and to perform unaligned memory references. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge remote-tracking branch 'erwan-github/hdt-memleak' into masterGene Cumm2014-01-312-1/+2
|\ \ | | | | | | | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| * | acpi: Removing memset of bufferErwan Velu2014-01-291-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no need to memset the buffer since the strncat will end the string with a \0. The memset was also almost wrong as doing a sizeof() on a char * could return 1 if buff was malloc'ed. We had chance as all the current calls are done with static buffers. Removing this memset call will make things clearer but also will prevent compilation warnings like : com32/gpllib/acpi/acpi.c:38:29: warning: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] memset(buffer, 0, sizeof(buffer));
| * | hdt: Fixing memory leak in cliFelipe Pena2014-01-291-0/+2
| | | | | | | | | | | | | | | | | | | | | The dynamically alloc'd string to protect from strtok modification has not been free'd on start_auto_mode() function. This patch insure the free is done properly.
* | | Add const qualifiersGene Cumm2014-01-252-2/+2
| | | | | | | | | | | | | | | | | | Some functions are ignoring the const qualifier. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | | com32: fix __bswap_64_macroGene Cumm2014-01-251-1/+1
| | | | | | | | | | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | | Merge branch 'syslinux-5.xx' into master; fixes loadkeysGene Cumm2014-01-252-4/+3
|\ \ \ | |/ / |/| | | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| * | com32/moduless/poweroff.c: use __unused attribute insteadGene Cumm2014-01-251-1/+1
| | | | | | | | | | | | | | | Recommended-By: Matt Fleming <matt@console-pimps.org> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| * | com32/modules/poweroff.c: fix main()Gene Cumm2014-01-251-1/+1
| | | | | | | | | | | | | | | | | | Wrong prototype; use GCC unused Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| * | ldlinux/readconfig.c: remove bail: from do_include()Gene Cumm2014-01-251-1/+0
| | | | | | | | | | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| * | Add const qualifiers to loadleysGene Cumm2014-01-251-2/+2
| | | | | | | | | | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| * | com32: Fix a bug on history of commands.Raphael S.Carvalho2013-09-301-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, even zero-length commands would be added to the history when they shoudn't, e.g: just typing enter. For example, if you type: FOO -> (ENTER) -> (ENTER), then to get FOO from the history you would have to press the UP key twice. It also saves a bit of memory. Signed-off-by: Raphael S.Carvalho <raphael.scarv@gmail.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
| * | com32: Fix bugs on cmd_reverse_search (Triple fault dimension)Raphael S.Carvalho2013-09-301-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cmd_reverse_search has a bug that the variable cursor is updated even if a command wasn't found. If this happens, and the next key falls into the default case, memmove's size parameter would be a negative number. This bug can be reproduced by doing the following: On cmd_reverse_search (ctrl-r), type multiple keys at the same time. 'Enjoy' the triple fault and a screen of random colors. There is also a small bug that turns the task of using (ctrl-r) on the first command impossible. Previously, this command was discarded. Signed-off-by: Raphael S.Carvalho <raphael.scarv@gmail.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
| * | com32/disk: Code cleanup at disk_write_sectors and disk_read_sectors.Raphael S.Carvalho2013-09-302-83/+97
| | | | | | | | | | | | | | | | | | | | | | | | Pulled common code out of these functions into new ones. The functions chs_setup and ebios_setup were created for this purpose. Signed-off-by: Raphael S.Carvalho <raphael.scarv@gmail.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
* | | mem: Calling int15 for 0x8800Erwan Velu2014-01-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | On some code, the intcall 0x15 was missing when playing with 0x8800 making code useless. That's not a big deal since e820 or e801 shall be provided by host but anyway, let's fix it ;)
* | | com32sys_t inreg shall be zeroified prior intcallErwan Velu2014-01-2215-1/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | com32: Add missing dependencies to MakefileGene Cumm2014-01-181-3/+3
| | | | | | | | | | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | | ansi: switch cindex type to attr_tJames Buren2013-12-111-1/+2
| | | | | | | | | | | | | | | | | | To fully support color tables with more than 256 entries Signed-off-by: Matt Fleming <matt.fleming@intel.com>
* | | ldlinux: Fix recent pxe symbol regressionMatt Fleming2013-12-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 60dabb5b1d6d ("pxe: Make the SENDCOOKIES feature for HTTP worked again") introduced a regression for ldlinux because it references the 'SendCookies' symbol, which is only provided by PXELINUX. The regression was caused because the '__weak' tag was dropped from the declaration of SendCookies. Tested-by: "Santillanes, Russel" <Russel.Santillanes@gs.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
* | | pxe: Make the SENDCOOKIES feature for HTTP worked againRussel Santillanes2013-12-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Code refactoring had caused the http_bake_cookies() function to become inaccessible and the SendCookies variable to be duplicated, causing the sendcookies feature to not work. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | | load_linux: Don't use size heuristic for non-relocatable kernelsH. Peter Anvin2013-12-041-33/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For non-relocatable kernels, it really makes no sense to estimate how much space the kernel is going to need, as if we fail, there is really nothing we can do about it. Furthermore, it is actively wrong for zImage kernels (which aren't decompressed in place) and for non-Linux kernels. Additionally, tweak the code for assigning an address to the command line to handle a few more corner cases correctly, be simpler, and not need to build the memory map again since we already are doing that elsewhere. Reported-and-tested-by: Christian Hesse <list@eworm.de> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | chain: Fix chainloading on 6.02Raphael S. Carvalho2013-10-171-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | My commit 09f4ac33 broke 'com32/lib/syslinux/disk.c' __lowmem doesn't work for declarations outside the core. Using __lowmem outside the core wouldn't have the desired effect, then lmalloc must be used instead to store dapa into the correct section (".lowmem"). Reported-by: Dark Raven <drdarkraven@gmail.com> Signed-off-by: Raphael S. Carvalho <raphael.scarv@gmail.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>