aboutsummaryrefslogtreecommitdiffstats
path: root/com32
Commit message (Collapse)AuthorAgeFilesLines
* com32/libutil/Makefile: Duplicate spotless targetGene Cumm2009-02-281-2/+0
| | | | | | | Fix duplicate spotless target in com32/libutil/Makefile. Signed-off-by: Gene Cumm <gene.cumm@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* entrydump: trivial program to probe PXE entry conditionsH. Peter Anvin2009-02-182-1/+63
| | | | | | | Small debugging hack program to probe the PXE stack entry conditions. This is mostly useful when developing a PXE stack, but might possibly be handy for finding workarounds for a stack, too.
* syslinux_derivative_info(): use the buffer we already haveH. Peter Anvin2009-02-182-5/+4
| | | | Use the data buffer already set aside for syslinux_derivative_info().
* Constructed data objects can't be common; hack derivative_infoH. Peter Anvin2009-02-183-34/+64
| | | | | | | | | - Constructed data objects can't be common. Earlier version of gcc didn't if the objects were explicitly listed extern, but newer ones need an explicit __attribute__((nocommon)) or -fno-common. - Make syslinux_derivative_info() save the entire reply.
* getcwd.c: need <string.h>H. Peter Anvin2009-02-181-0/+1
| | | | getcwd.c needs <string.h>
* kbdmap.c: clean up stealth whitespaceH. Peter Anvin2009-02-181-4/+2
|
* Simple "cmd" module to issue a CLI commandsyslinux-3.74-pre1Michael Brown2009-02-172-1/+43
| | | | | | A simple "cmd" COM32 module, which only echoes a CLI command. This is mostly useful when running on an alternate CLI, e.g. on top of the native gPXE COMBOOT interface.
* COM32 module: Read-Only shellGene Cumm2009-02-155-1/+1024
| | | | | | | | | | | | | Well, here's the read-only shell (rosh) that I've been working on. It's functional but still quite rough. My primary intention of posting it at this time is such that people have an easy way to demonstrate to themselves that the library calls I made work. This should apply as a patch to the head of the "dir" branch and the patch for c_cflag/c_lflag. The patch is only needed for Linux(without it, segfaults will occur). I've designed it to compile as a COM32 module and Linux binary when using GNU C (as Syslinux currently requires GNU C, if I read the Makefiles correctly).
* Merge branch 'master' into dirH. Peter Anvin2009-02-152-4/+6
|\
| * COM32 libutil: Fix error in flags in console_ansi_std(void)Gene Cumm2009-02-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ICANON and ECHO were applied to the control flags not local flags. If ICANON or ECHO were applied to a serial port on Linux on the x86 architecture, this would change the serial ports baud rate. From my /usr/include/bits/termios.h (select in-order lines): /* c_cflag bit meaning */ #define B150 0000005 #define B300 0000007 #define B9600 0000015 #define B38400 0000017 /* c_lflag bits */ #define ICANON 0000002 #define ECHO 0000010 The different baud rates are defined here. If someone set the baud rate to 9600 and set ICANON on c_cflag, it should change the baud rate to 38400, dropping communication. Another example is if someone set the baud rate to 150 the set ICANON and ECHO on c_cflag, it should change the baud to 38400. If I am interpreting the rest of the file correctly, a bitmask covering all of the bits used in c_cflag for the baud rate is 0010017. Signed-off-by: Gene Cumm <gene.cumm@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * ifcpu64: fix handing with less than three argumentsH. Peter Anvin2009-02-151-3/+5
| | | | | | | | | | | | | | | | | | Due to a silly coding error, when passed with only two arguments we would use them in order 1 -- 2 -- 1 instead of 1 -- 2 -- 2 as was intended. Fix. Reported-by: Luciano Miguel Ferreira Rocha <strange@nsk.no-ip.org> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | COM32 API: Add functions for directory useGene Cumm2009-02-109-0/+220
|/ | | | | | | | | COM32: Add directory functions getcwd(), opendir(), readdir() and closedir(). This depends on the patch that I just submitted creating the COMBOOT API calls. Signed-off-by: Gene Cumm <gene.cumm@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* kbdmap.c32: new module to load a keyboard map dynamicallyH. Peter Anvin2009-02-032-1/+57
| | | | Load a new keyboard map dynamically
* Add comboot interface to access the keyboard remapping tableH. Peter Anvin2009-02-033-0/+98
| | | | | | Add a comboot interface to access the keyboard remapping table, which can be used for either querying or changing the keyboard map.
* Merge branch 'master' into uiH. Peter Anvin2009-01-252-1/+40
|\
| * config.c32: new module to just load a configuration fileH. Peter Anvin2009-01-252-1/+40
| | | | | | | | | | Trivial module to load a new configuration file from the command line.
* | Add new "UI" directive instead of abusing the DEFAULT directiveH. Peter Anvin2008-12-142-1/+44
|/ | | | | | | | | Add a new "UI" directive to specify a user interface module, instead of abusing the DEFAULT directive. This allows the DEFAULT directive to be used for setting the default, even when the menu system is enabled. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* mboot.c: prefer ELF header over multiboot headersyslinux-3.73-pre6Ralf Ertzinger2008-10-201-63/+57
| | | | | | | | | | If a loaded kernel is in ELF format and contains a multiboot header indicating valid relocation information, prefer the informations from the ELF header. This is in violation of the Multiboot spec, but it's the way GRUB does things and Solaris kernels rely on this behaviour. Signed-of-by: Ralf Ertzinger <ralf@skytale.net> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* mboot.c32: add <stdint.h> and <stdbool.h>syslinux-3.73-pre5H. Peter Anvin2008-10-191-0/+2
| | | | | | We need <stdbool.h>; we might as well add <stdint.h> as well. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* mboot.c32: reorganize print messagesH. Peter Anvin2008-10-191-8/+7
| | | | | | Reorganize the mboot.c32 Solaris print messages slightly. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* mboot.c32: change DHCP_ACK_SIZE to 2048H. Peter Anvin2008-10-191-1/+1
| | | | | | | Change DHCP_ACK_SIZE to 2048 just to prevent some systems from doing stupid things. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* mboot.c32: add Solaris modeRalf Ertzinger2008-10-191-0/+43
| | | | | | | Add a "Solaris" mode to mboot.c32, which mimics a nonstandard extension to Multiboot used by Solaris' pxeboot program. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32: make _Exit just an ordinary symbolH. Peter Anvin2008-10-142-5/+8
| | | | | | | | Make _Exit just an ordinary symbol which aliases _exit. This avoids some versions of gcc complaining about the inline, which is rather unnecessary anyway. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Older binutils wants parens around macrosDag Wieers2008-10-141-1/+1
| | | | | | | Older versions of gcc/binutils apparently really want parentheses around macro arguments. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* meminfo: update to deal with ACPI 3 and other braindamageH. Peter Anvin2008-10-131-3/+14
| | | | | | | | | Add support for ACPI 3 and certain broken e820 implementations in the meminfo program. Some e820 implementations expect the buffer to remain the same between different invocations, despite the fact that there is absolutely no guarantee to that effect in the spec. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* e820: pre-initialize bufferH. Peter Anvin2008-10-131-0/+2
| | | | | | | | Pre-initialize the e820 buffer to all zero, except for the active bit; we have found that BIOSes will make assumptions about the pre-existing value of the buffer and this seems the most conservative value. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32/lib: fix reversed test when looking for extattr in e820H. Peter Anvin2008-10-131-1/+1
| | | | | | | Fix reversed test when looking for extattr in e820: force the extattr values only when they are *not* present... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Support "extended attributes" for INT 15h, AX=E820hH. Peter Anvin2008-10-131-1/+8
| | | | | | | | | | | | | | | Some blithering idiot thought it was a good idea to introduce "extended attributes" for INT 15h, AX=E820h, and in doing so, breaking compatibility with ALL E820 users out there. F*cking morons. Implement handling of extended attributes in: - e820 parsing in the core - e820 parsing in libcom32 - e820 parsing *and proxying* in memdisk The latter is the really painful one. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Move vesainfo.c32 from "samples" to "modules"H. Peter Anvin2008-10-133-2/+2
| | | | | | | vesainfo.c32 is turning into an invaluable debugging tool. Put it in "modules" instead of "samples", to encourage distros to package it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Add CD-ROM mode query to the COM32 interfaceH. Peter Anvin2008-10-101-1/+1
| | | | | | Report the booting mode of ISOLINUX through the COM32 interface. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Remove line-leading gas-style comments in files compiled with -std=gnu99H. Peter Anvin2008-09-263-45/+47
| | | | | | | | Some versions of gcc barf if we have hash-style comments in files when -std=gnu99 is used. Remove from assembly files that are subject to being assembled that way. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* setjmp.S: use C-style commentsH. Peter Anvin2008-09-261-15/+15
| | | | | | | Earlier versions of cpp would get confused by the gas-style comments at line starts; replace them with C-style comments. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Fix "make clean" confusionsyslinux-3.72H. Peter Anvin2008-09-256-10/+15
| | | | | | | | "make clean" must NOT remove stuff that "make installer" should not rebuild. This is a somewhat unfortunate choice of naming, but that's the way it is. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32/lib: fix "make clean" by proper parens for "find"H. Peter Anvin2008-09-251-1/+1
| | | | | | "-o" clauses bind looser than -print0, so we need parens. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* simple menu: make "menu default" work after "menu begin"H. Peter Anvin2008-09-221-1/+5
| | | | | | | Make "menu default" work after "menu begin", similar to after "label". This is consistent with how "menu label" works. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* ansicon, vesacon: beep on ^GH. Peter Anvin2008-09-094-0/+16
| | | | | | If we get a ^G, issue a beep. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* menu: quiet warnings in drain_keyboard()syslinux-3.72-pre5H. Peter Anvin2008-09-081-2/+2
| | | | | | | | Quiet warnings in drain_keyboard(). We need some volatiles in order to keep gcc from optimizing some of the clearings away, but cast them away where appropriate. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* sdi.c32: Change SDIReserved -> MDBTypeH. Peter Anvin2008-09-081-1/+1
| | | | Per Sergii Kolisnyk, change SDIReserved to MDBType.
* sdi.c32: verify the header checksumRemi Lefevre2008-09-081-0/+33
| | | | | | | Verify the checksum in the SDI header. SDIheader variable names and checksum algo are from http://skolk.livejournal.com/
* Merge commit 'stefanha/gdbstub'H. Peter Anvin2008-09-086-0/+1006
|\
| * Fix GDB protocol flow control issuesStefan Hajnoczi2008-08-301-7/+5
| |
| * Add GDB stubStefan Hajnoczi2008-08-296-16/+874
| |
| * Relocating COM32 moduleStefan Hajnoczi2008-08-282-0/+150
| |
* | sdi.c32: credit where credit is dueH. Peter Anvin2008-09-021-1/+2
| | | | | | | | | | | | | | This doesn't use Remi's code, but definitely used some concepts from his patch. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | sdi.c32: support gzipped SDI imagesH. Peter Anvin2008-09-021-1/+1
| | | | | | | | | | | | | | Support gzipped SDI images, simply by replacing loadfile() with zloadfile(). Suggested by Remi Lefevre. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Add pxechain.com; new modules direction; reorganize installationH. Peter Anvin2008-08-272-4/+0
|/ | | | | | | | | Add the pxechain module from Jeffery Hutzelman at CMU. Create new modules directory for non-com32 modules. Centralize installation, since we have three types of install, and only one of them was distributed. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* menu: avoid leaving obvious password turds in memoryH. Peter Anvin2008-08-265-12/+57
| | | | | | Avoid leaving obvious password turds in memory. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Clean up embedded Makefile targets; fix build failureH. Peter Anvin2008-08-222-6/+6
| | | | | | Unify common pieces to "embedded" targets (those that produce code that runs neither in the host nor in a com32 environment); this fixes the broken sample/ directory Makefile.
* Major Makefile cleanups; gcc 4.3.0 compatiblityH. Peter Anvin2008-08-206-254/+82
| | | | | Cleanup and centralize the Makefile system even more. Fix a gcc 4.3 incompatibility in memdisk (definition of strlen).
* pci: fix pci_scan()Sebastian Herbszt2008-08-121-2/+4
| | | | Signed-off-by: H. Peter Anvin <hpa@zytor.com>