aboutsummaryrefslogtreecommitdiffstats
path: root/com32/modules
Commit message (Collapse)AuthorAgeFilesLines
* Fix all warnings, and better separate code that should not be mixedsyslinux-6.04-pre3H. Peter Anvin (Intel)2019-02-071-1/+3
| | | | | | | | | Clean up a number of warnings in the tree. Refactor especially the core code so we don't end up building a bunch of BIOS-specific code for EFI, and general build cleanups. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* Reorganize and clean up a bunch of the x86 codeH. Peter Anvin2019-02-041-1/+1
| | | | | | | We were doing a bunch of i386-specific things even on x86-64. Fix this, and merge x86 definitions where possible. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* pxe_dns: remove obsolete pxe_dns.c wrapperH. Peter Anvin2016-04-061-6/+1
| | | | | | | | | We used to need a wrapper around the core function dns_resolv() to implement pxe_dns(), because the former function required its argument to live in low memory. This is no longer the case and hasn't been for a while, so remove this unnecessary level of indirection. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* com32/modules: Split build by architecture. Add dir.c32Gene Cumm2015-09-201-7/+16
| | | | | | | | | Certain modules directly make BIOS calls or call library functions that will not be ported from BIOS (like syslinux_shuffle_boot_rm()). It appears dir.c32 was long-forgotten for the Makefile Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* com32: Use z size specifier for printf-ing size_t variableMartin Str|mberg2015-01-052-3/+3
| | | | | | | | | 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>
* com32: change '%llx' to use PRIx64Martin Str|mberg2015-01-051-2/+2
| | | | | | | | | | | | Get rid of printf format warning format ‘%llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’ Use <inttypes.h> PRIx64 instead of llx to get rid of gcc warning format ‘%llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’ Author: Martin Str|mberg <ams@ludd.ltu.se> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* pxe: Export the initial stack and PXE(NV) structure, fix pxechnH. Peter Anvin2014-02-131-15/+17
| | | | | | | | | | 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 branch 'syslinux-5.xx' into master; fixes loadkeysGene Cumm2014-01-251-1/+1
|\ | | | | | | 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>
* | com32sys_t inreg shall be zeroified prior intcallErwan Velu2014-01-224-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 tag 'syslinux-5.11-pre8' into firmwaresyslinux-6.02-pre1Matt Fleming2013-07-083-3/+57
|\| | | | | | | | | | | | | | | | | | | | | syslinux-5.11-pre8 Conflicts: NEWS com32/lib/Makefile core/conio.c mk/devel.mk mk/elf.mk
| * debug.c32: Dynamically enable/disable debug code at runtimeMatt Fleming2013-07-052-1/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's useful to be able to enable (and disable) debug code at runtime, particularly for allowing users that are unable to build their own Syslinux releases the chance to provide useful debugging output. For example, say a user reports trouble with their PXE stack but doesn't have a development environment setup to turn on the debug code themselves. With this change you can simply request that they do, debug.c32 -e pxe_call unload_pxe open_file to enable the debug in those functions. By only turning on code in specific functions we reduce the chance of disrupting the buggy behaviour and improve the signal to noise ratio for print statements. To disable debug code use the -d flag, debug.c32 -d pxe_call To use this new feature simply do, if (syslinux_debug_enabled) { debug1(); debug2(); .... } from within the function you wish to add debug code. Note that this feature is not limited to print statements - you can put any code within the conditional, such as verifying a checksum or checking for memory leaks. The plan is to leave the dynamic debug code built in for all prereleases and to turn it off for final releases. People may still want to build with all dprintf() statements enabled, and so a new symbol, DYNAMIC_DEBUG, was introduced rather than repurposing the old DEBUG, DEBUG_STDIO and DEBUG_PORT symbols. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
| * mk: include $(GCCWARN) when building ELF objectsMatt Fleming2013-07-051-2/+2
| | | | | | | | | | | | | | It's currently impossible to turn on dprintf() statements in com32/modules because $(GCCWARN) isn't used as part of $(CFLAGS). Signed-off-by: Matt Fleming <matt.fleming@intel.com>
* | Merge tag 'syslinux-5.10-pre2' into for-hpa/elflink/firmwareMatt Fleming2013-03-224-2/+374
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | syslinux-5.10-pre2 Conflicts: NEWS com32/include/netinet/in.h com32/include/sys/cpu.h com32/lib/Makefile core/Makefile core/fs/diskio.c core/fs/pxe/pxe.h core/init.c core/mem/free.c core/mem/malloc.c mk/devel.mk version
| * Merge branch 'lwip' into elflinkMatt Fleming2013-02-262-1/+285
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * Merge remote-tracking branch 'genec/com32-cptime-upd-for-hpa' into lwipH. Peter Anvin2012-04-253-3/+289
| | |\
| | | * prdhcp.c32: Fix what is retrieved.Gene Cumm2012-02-031-2/+3
| | | | | | | | | | | | | | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| | | * prdhcp.c32: Add to MakefileGene Cumm2011-12-181-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| | | * cptime.c32: Move to modules; include in MakefileGene Cumm2011-12-172-1/+286
| | | | | | | | | | | | | | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| | * | Merge remote-tracking branch 'origin/master' into lwipsyslinux-4.10-pre18H. Peter Anvin2012-03-302-1933/+1
| | |\ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | Resolved Conflicts: NEWS version Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * | Merge commit 'syslinux-4.05' into lwipH. Peter Anvin2011-12-131-0/+392
| | |\ \
| | * | | prdhcp.c32: Print DHCP packetsGene Cumm2011-12-011-0/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For PXELINUX, print the generically parsed contents of the DHCP packets for examining the options used in all 3. It currently accepts no options. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| * | | | com32: Add com32_cmdline() which returns argv[1..argc-1]syslinux-5.02-pre3Matt Fleming2013-02-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cmd.c32 needs an equivalent of __com32.cs_cmdline now that the COMBOOT code is dead. Introducing com32_cmdline(), which returns a string consisting of module arguments from argv[1] to argv[argc-1], separated by spaces. Reported-by: Gene Cumm <gene.cumm@gmail.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
| * | | | poweroff COM32 moduleSebastian Herbszt2013-02-112-1/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This module is able to power off a system via APM. It replaces the poweroff COMBOOT module. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
* | | | | Merge tag 'syslinux-5.01' into firmwaresyslinux-6.00-pre4Matt Fleming2013-01-291-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Makefile NEWS com32/cmenu/Makefile com32/elflink/ldlinux/Makefile com32/gfxboot/Makefile com32/gpllib/Makefile com32/include/sys/module.h com32/lib/Makefile com32/lib/sys/module/elf_module.c com32/menu/Makefile com32/rosh/Makefile com32/samples/Makefile core/init.c mk/elf.mk Signed-off-by: Matt Fleming <matt.fleming@intel.com>
| * | | | Always strip all the modulesH. Peter Anvin2013-01-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Always strip the modules; they are too big unstripped. Specifically, we generate unstripped *.elf files, and then convert them to stripped *.c32 files. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | | | | Merge tag 'syslinux-5.00-pre10' into for-hpa/elflink/firmwareMatt Fleming2012-11-143-38/+410
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pull in the latest prerelease that includes some bug fixes for ldlinux and a realloc() bug in core/. Conflicts: com32/cmenu/Makefile com32/elflink/ldlinux/Makefile com32/lib/Makefile core/pxelinux.asm
| * | | | hexdump.c32: Simple file hex-dumperShao Miller2012-11-042-1/+247
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Usage: %s [<option> [...]] <filename> [<option> [...]] Options: -p --page . . . . . . . Pause output every 24 lines --no-buffer . . . . Load the entire file before dumping --extended-ascii . . Use extended ASCII chars in dump -? -h --help . . . . . . Display this help Signed-off-by: Shao Miller <sha0.miller@gmail.com>
| * | | | linux.c32: Introduce initrdfile= optionShao Miller2012-11-031-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is useful to be able to load a file and pass it into a kernel's rootfs via the initramfs scheme. Given "initrdfile=foo", we will load the file foo, encapsulate it with the initramfs cpio format, then pass it alongside any initramfs files that were specified by "initrd=" and "initrd+=" options. One can specify the desired path/filename for the file to have within the rootfs by using the at (@) sign, as in: initrdfile=foo@/goes/to/foo One can also specify multiple files, separated by commas, such as: initrdfile=foo,bar@/somewhere/bar,baz One can also use this option multiple times, as in: initrdfile=foo,bar initrdfile=baz@/somewhere/baz Signed-off-by: Shao Miller <sha0.miller@gmail.com>
| * | | | linux.c32: Add new initrd+= option for multiple initrdsShao Miller2012-11-031-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | linux.c32 now processes the kernel's command-line for "initrd+=" options. Given "initrd+=foo", linux.c32 will concatenate the file "foo" to the initrds that it has already loaded due to the "initrd=" option. Given "initrd+=foo,bar", linux.c32 will concatenate both files "foo" and "bar" to the initrds that it has already loaded due to the "initrd=" option. That is, multiple filenames can be specified with comma separators. Given "initrd+=foo initrd+=bar", linux.c32 will concatenate both files "foo" and "bar" to the initrds that it has already loaded due to the "initrd=" option. That is, the "initrd+=" option can be specified multiple times. The position of any "initrd=" option relative to any "initrd+=" option is irrelevant. The "initrd=" option is always processed before all "initrd+=" options. PLEASE NOTE: It is important to note that there are NO SPACES involved in using the "initrd+=" option. "initrd += foo" will not work. Signed-off-by: Shao Miller <sha0.miller@gmail.com>
| * | | | linux.c32: Move some initrd=x,y,z code out of mainShao Miller2012-11-031-21/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In handling an "initrd=x,y,z" option, it seems reasonable to be able to handle similar options in a similar fashion, so some of the code has been moved out of 'main' and into a new 'process_initramfs_args' function. Signed-off-by: Shao Miller <sha0.miller@gmail.com>
| * | | | linux.c32: Add find_arguments functionMatt Fleming2012-11-031-16/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'find_argument' function already finds the last instance of a command-line option. For symmetry, we introduce a 'find_arguments' function which will help to iterate each instance of a command-line option. Also, this commit uses 'strncmp' in both, instead of 'memcmp'. Modified-by: Shao Miller <sha0.miller@gmail.com> Signed-off-by: Shao Miller <sha0.miller@gmail.com>
* | | | | Merge tag 'syslinux-5.00-pre9' into for-hpa/elflink/firmwareMatt Fleming2012-11-056-37/+741
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This merge also includes the Syslinux-4.06 release. Conflicts: Makefile com32/hdt/Makefile com32/modules/Makefile com32/samples/hello.c mtools/Makefile
| * | | | Merge branch 'master' into elflinkMatt Fleming2012-10-245-6/+740
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following conflict is a result of the fact comapi_chainboot was only stubbed out on the 'elflink' branch but was properly marked as obsolete in 'master'. Conflicts: core/comboot.inc
| | * | | | prdhcp.c32: Turn off DEBUGsyslinux-4.06-pre13Matt Fleming2012-10-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Matt Fleming <matt.fleming@intel.com>
| | * | | | Merge branch 'pxechn-fix-news-for-hpa-2' of git://github.com/geneC/syslinuxMatt Fleming2012-10-113-6/+209
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: NEWS com32/modules/Makefile
| | | * | | | prdhcp.c32: Fix what is retrieved.Gene Cumm2012-06-021-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| | | * | | | prdhcp.c32: Add to MakefileGene Cumm2012-06-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| | | * | | | prdhcp.c32: Print DHCP packetsGene Cumm2012-06-021-0/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For PXELINUX, print the generically parsed contents of the DHCP packets for examining the options used in all 3. It currently accepts no options. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| | | * | | | pxechn.c32: add -S to transform sname to siaddrGene Cumm2012-06-011-2/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| | | * | | | pxechn: Turn off debugGene Cumm2012-05-281-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| | * | | | | com32: Add ifmemdsk.c32 to MakefileMatt Fleming2012-10-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... so that it actually gets built. This should have been added to the Makefile when ifmemdsk.c was created. Reported-by: Ady <ady-sf@hotmail.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
| | * | | | | kontron_wdt: Fixing makefileErwan Velu2012-09-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Typo.
| | * | | | | kontron_wdt: Enforce timeout value if already setErwan Velu2012-09-101-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the watchdog was already engaged, let's rewrite the timeout to insure the proper value is set.
| | * | | | | kontron_wdt: Adjusting exit pathErwan Velu2012-09-101-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If we fail, at least let's boot the expected image
| | * | | | | kontron_wdt: Adding watchdog com32 moduleErwan Velu2012-09-103-1/+525
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using a Kontron ETX board, it's possible to initialize and start the watchdog during syslinux booting. This allow protecting a boot sequence with a defined timeout. Bootloader is starting, engage the watchdog and then start a default entry (typically a Linux image). If the loaded OS, feed or reinitalize the watchdog, nothing occurs unless the system will reboot Conflicts: com32/modules/Makefile
| * | | | | | Merge branch 'elflink' of git://github.com/aericson/syslinux into elflinkMatt Fleming2012-10-232-27/+1
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: com32/modules/Makefile
| | * | | | | | com32: remove duplicate modulesAndre Ericson2012-05-222-28/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was a hello.c32 module at com32/modules directory to test 32-bit ELF space, so this patch replaces the old hello.c32 module with the new hello.c32. Signed-off-by: Andre Ericson <de.ericson@gmail.com>
| * | | | | | | Clean up $(GPLLIB) leakMatt Fleming2012-10-191-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modules were linking against com32/gpllib/libcom32gpl.c32 even when NOGPL was set, so remove it from various modules Makefiles and use $(C_LIBS) in mk/elf.mk which already has the conditional-magic for $(GPLLIB). Also, the object files in com32/gpllib/ are not distributed in the release tarballs, which means that if a user does a 'make netinstall' they hit the following install error, install: cannot stat `com32/gpllib/*.c32': No such file or directory Add a $(INSTALLABLE_MODULES) variable to separate the list of build and install modules. Signed-off-by: Matt Fleming <matt.fleming@intel.com>