aboutsummaryrefslogtreecommitdiffstats
path: root/com32
Commit message (Collapse)AuthorAgeFilesLines
* hdt: Removing commas and plus signs from filenameErwan Velu2015-09-041-0/+6
| | | | | When uploading the dump file to a tftp server, removing the plus & comma sign from the filename could make the file easier to manipulate later.
* gpllib: Updating dmi codeErwan Velu2015-09-046-30/+67
| | | | | | | | This is a simple rebase of the current code against current dmidecode version. This is pretty lame copy/paste but as we don't have a libification of dmidecode, that does the job. This patch does improve mostly the cpu & ram reporting.
* hdt: Avoid false-positive single command detectionErwan Velu2015-09-041-2/+2
| | | | | | | | | | | | | | | Since commit 1697594b61f9a8f9d092996afc0e2c80bbb2a20a, some commands are said to be "nomodule" like "say". This patch was adding a check if the nomodule flag was set but didn't checked that the associated structure did exist leading to false positive detection. As a result, the commands were not executed meaning the CLI was unsuable since ... 3 years.... *shame* This commit simply avoid considering the nomodule flag if the structure is not allocated
* hdt: Fixing argv usage to avoid crashErwan Velu2015-09-041-5/+5
| | | | | | | argv shall be passed as a pointer to avoid a crash when running command like "dmi". Thanks genec for pointing this out.
* com32: write_sectors() sizing correctionsRobert2015-08-271-3/+3
| | | | | | | | Memory allocation and copy length should be SECTOR * size for sectors operation. Signed-off-by: Robert <luyao-c@360.cn> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* com32 readconfig: use my_isspace()Gene Cumm2015-07-182-2/+2
| | | | | | More consistent. Also ensures it's properly recast. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* com32/include/menu.h: Extend my_isspaceGene Cumm2015-07-181-1/+1
| | | | | | Add 0x7f as a space character Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* ldlinux.c32: SERIAL directive: Allow octal/hex on port/flow controlAndrew J. Schorr2015-05-241-2/+2
| | | | | | | | | For the SERIAL directive, allow octal (0###) and hexidecimal (0x###) notation on the port and flow control arguments. Two of the old ASM getint/parseint callers Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* com32/Makefile: resequence/regroupGene Cumm2015-05-171-10/+8
| | | | | | | | A lot more items have identical dependencies; regroup. Certain items make more sense to build first; resequence. Group library dependencies before COM32 directories Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* com32/Makefile: additional dependenciesJonathan Boeing2015-05-171-2/+2
| | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* hdt: fix sizeof(char *) misuseJonathan Boeing2015-05-031-3/+2
| | | | | | | | | | | | The code was passing sizeof(const char *) - not the length of the string or the size of the buffer - as the length to strncmp(). These two cases don't need the length, so switch to strcmp. Fixes the warning: argument to 'sizeof' in 'strncmp' call is the same expression as the second source; did you mean to provide an explicit length? Signed-off-by: Jonathan Boeing <jonathan.n.boeing@gmail.com>
* hdt: fix sizeof(char *) misuseJonathan Boeing2015-05-031-89/+89
| | | | | | | | | | | | The code was passing sizeof(char *) - not the length of the buffer - to memset. Change the function to take the length of the buffer as a parameter. Fixes the warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to provide an explicit length? Signed-off-by: Jonathan Boeing <jonathan.n.boeing@gmail.com>
* hdt: fix sizeof(char *) misuseJonathan Boeing2015-05-031-89/+89
| | | | | | | | | | | | The code was passing sizeof(char *) - not the length of the buffer - to memset. Change the function to take the length of the buffer as a parameter. Fixes the warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to provide an explicit length? Signed-off-by: Jonathan Boeing <jonathan.n.boeing@gmail.com>
* gpllib: fix sizeof(char *) misuseJonathan Boeing2015-05-031-10/+14
| | | | | | | | | | | | The code was passing sizeof(char *) - not the length of the buffer - to strlcpy and snprintf. Change the function to take the length of the buffer as a parameter. Fixes the warning: argument to 'sizeof' in 'snprintf' call is the same expression as the destination; did you mean to provide an explicit length? Signed-off-by: Jonathan Boeing <jonathan.n.boeing@gmail.com>
* Use z width specifier when printing size_t variableJonathan Boeing2015-05-031-1/+1
| | | | | | | Fixes the warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'size_t' Signed-off-by: Jonathan Boeing <jonathan.n.boeing@gmail.com>
* add missing '\n' to dprintfJonathan Boeing2015-05-031-2/+2
| | | | Signed-off-by: Jonathan Boeing <jonathan.n.boeing@gmail.com>
* fix a few typosJonathan Boeing2015-05-031-1/+1
| | | | Signed-off-by: Jonathan Boeing <jonathan.n.boeing@gmail.com>
* com32/lib/syslinux/load_linux.c: update prot_mode_baseScot Doyle2015-04-181-0/+1
| | | | | | | | | | | | | | | | | If the kernel is relocatable and the protected mode code will not fit in the initially determined location, that code will be moved to the next available location. However, beginning with commit 8f470e7b, the code is moved to the initially determined location instead of the next available location because prot_mode_base is no longer updated to the correct location. Since whdr->code32_start is updated, it is pointing to the wrong execution start location, random code is executed and the machine is rebooted. Restore the old behavior by assigning prot_mode_base the value of base. Tested on a machine that exposed this behavior. Signed-off-by: Scot Doyle <lkml14@scotdoyle.com> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* chain: year update in commments (trivial)Gene Cumm2015-03-1511-11/+11
| | | | | Signed-off-by: Michal Soltys <soltys@ziu.info> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* chain/partiter: add options to ignore GPT crc checksMichal Soltys2015-03-153-22/+45
| | | | | | | | This can be useful to force boot even if checksums of GPT header and/or partition list are invalid. This works independently from 'strict' option. Signed-off-by: Michal Soltys <soltys@ziu.info>
* chain/partiter: call notsane_gpt_hdr() per headerMichal Soltys2015-03-151-48/+48
| | | | | | | | | | | | Instead of calling it just once after the examination of both headers (the 2nd one only if necessary) - call it per each header during examination. Thus in unlikely situation of passing crc check on primary gpt header and at the same time failing sanity checks, it will also try backup header. Signed-off-by: Michal Soltys <soltys@ziu.info>
* load_linux: correct a typeScot Doyle2015-02-141-2/+2
| | | | | | | | Correct base's type to match its initialization from prot_mode_base and passage to syslinux_memmap_find(). Tested with extlinux. Signed-off-by: Scot Doyle <lkml14@scotdoyle.com> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* Merge remote-tracking branch 'u-gh-wferi/pub'Gene Cumm2015-02-145-341/+329
|\ | | | | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| * lua: simplify the function/value handling in the automenu testFerenc Wágner2014-10-131-10/+7
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: move the automenu test from the boot_linux to the boot_it bindingFerenc Wágner2014-10-131-5/+18
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: return the modified object from the initramfs methodsFerenc Wágner2014-10-132-4/+8
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: docs: refresh and extend the documentationFerenc Wágner2014-10-131-128/+93
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: initramfs: enable adding nonempty filesFerenc Wágner2014-10-131-4/+11
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: don't do a local boot when asked to final_cleanupFerenc Wágner2014-10-131-2/+1
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: do not leak initramfs data chunks on garbage collectionFerenc Wágner2014-10-131-0/+16
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: make initramfs structures full userdata objects with methodsFerenc Wágner2014-10-131-25/+43
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: unused optional arguments can goFerenc Wágner2014-10-121-10/+0
| | | | | | | | | | | | Not expecting them does not cause any problems, they are ignored by Lua anyway. Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: make the file operations methodsFerenc Wágner2014-10-121-2/+7
| | | | | | | | | | | | This also enables manual unloading of files by callig f:__gc(). Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: garbage collect file objectsFerenc Wágner2014-10-121-0/+15
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: represent syslinux files as full userdataFerenc Wágner2014-10-121-21/+13
| | | | | | | | | | | | | | | | | | Light userdata don't have individual metatables, thus they aren't suitable for type checking. Also, a200ad6d replaced relying on reused memory (from luaL_checkstring) with writing to uninitialized pointers; copy the filename instead into freshly allocated memory. Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: Remove even more cruft from syslinux.cFerenc Wágner2014-10-121-44/+2
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: docs: condense the PCI exampleFerenc Wágner2014-10-111-29/+6
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: docs: remove printf from loadfile exampleFerenc Wágner2014-10-111-10/+3
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: docs: loadfile() is not TFTP-specificFerenc Wágner2014-10-111-1/+1
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * libansi.h: depends on stdbool.h and stdio.hFerenc Wágner2014-10-111-0/+3
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: docs: remove overall indentation and some verbose cruft from the examplesFerenc Wágner2014-10-111-104/+99
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: docs: bring documentation up to dateFerenc Wágner2014-10-111-31/+42
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: vesa: delete stray would-be-debug outputFerenc Wágner2014-10-111-2/+0
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: docs: add new bindings to syslinux.ascFerenc Wágner2014-10-111-1/+21
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: docs: do not reference removed exampleFerenc Wágner2014-10-111-1/+0
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: share the export macro (CPP only change)Ferenc Wágner2014-10-111-39/+39
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: add the IMAGE_TYPE table to the syslinux moduleFerenc Wágner2014-10-111-0/+13
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: make kernel and initrd progress output match in sl_boot_linuxFerenc Wágner2014-10-111-4/+4
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* | com32: Use z size specifier for printf-ing size_t variableMartin Str|mberg2015-01-056-8/+8
| | | | | | | | | | | | | | | | | | Use the z size specifier to printf-ing size_t variables to get rid of gcc warning format ‘%08x’ expects type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ Author: Martin Str|mberg <ams@ludd.ltu.se> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | SYSAPPEND: Fix space strippingDany St-Amant2015-01-052-2/+2
| | | | | | | | | | | | | | | | The description of SYSAPPEND for the DMI information states that the spaces are replaced by underscores, but this replacement does not occur in 6.03. Signed-off-by: Dany St-Amant <dany.ephemeral.2014@icloud.com> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>