summaryrefslogtreecommitdiff
path: root/com32/modules
Commit message (Collapse)AuthorAgeFilesLines
* chain.c32: error out on missing boot sector signatureH. Peter Anvin2008-07-301-0/+7
| | | | | | | | If we're booting a disk or partition, then error out if the loaded sector doesn't have a boot sector signature, rather than the otherwise-inevitable crash. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* ethersel: use library functionsSebastian Herbszt2008-07-191-26/+4
| | | | | | | Replace get_config() and execute() with syslinux_config_file() and syslinux_run_command(). - Sebastian
* ifcpu64.c32: clean up the sourcessyslinux-3.71-pre14H. Peter Anvin2008-07-161-23/+18
| | | | | | Clean up the sources to make them easier to read. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* ifcpu64.c32: simple module to choose a 32, 32pae, or 64-bit kernelH. Peter Anvin2008-07-162-1/+127
| | | | | | | A very simple module to choose between a 32-bit, 32-bit PAE, or a 64-bit kernel depending on the capabilities of the CPU. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* cpuid.[ch]: various cleanupsH. Peter Anvin2008-07-161-63/+11
| | | | | | Minor cleanups to the CPUID code Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* chain.c32: fix test for partition types which can be hiddensyslinux-3.71-pre11Sergey Vlasov2008-07-161-1/+1
| | | | | | | | | | | The result of shift in C is undefined if the shift count is greater than the width of type. On x86 the corresponding CPU instruction masks the shift count with 0x1f, therefore (mask >> (t & ~0x10)) & 1) gives false positives for types greater than 0x1f (e.g., the partition type 0x8e (Linux LVM) could be "hidden" to 0x9e). Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* chain.c32: fix bounce buffer handlingSergey Vlasov2008-07-161-4/+7
| | | | | | | | | | | | | | | Fix breakage in the "hide" option support patch: - The code which initialized the global variable "dapa" was lost in commit 81c203f2, therefore EBIOS access did not work properly. Fixed by removing the global variable completely and moving all bounce buffer handling into read_sector() and write_sector(). - write_sector() copied data to the bounce buffer, but then tried to use the pointer to the original buffer in BIOS calls. Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* chain.c32: explicitly verify after writing MBRsyslinux-3.71-pre7H. Peter Anvin2008-07-111-4/+20
| | | | | If we write the MBR, do verify by reading it back and comparing. Right now all we do is print an error, though.
* chain.c32: new "hide" optionH. Peter Anvin2008-07-111-9/+104
| | | | Option for chain.c32 to hide primary partitions on the boot drive.
* pcitest: display "1 bus found" instead of "1 buses found"Sebastian Herbszt2008-07-071-1/+1
| | | | | | Fix the text for pci_bus_list->count == 1 ("1 bus found"). - Sebastian
* chain.c32: allow "boot" as a drive specificationH. Peter Anvin2008-06-301-13/+32
| | | | | Allow "boot" as the drive specification; this can be used both with partition numbers and with loaders.
* mboot.c32: no need to include the ANSI enginesyslinux-3.70-pre24H. Peter Anvin2008-06-241-2/+3
| | | | We don't need the ANSI engine in mboot.c32.
* chain.c32: use a more Linux-kernel-like syntaxH. Peter Anvin2008-06-201-22/+27
| | | | | Make the syntax for chain.c32 more Linux-kernel-like. This also makes parsing easier, so it's a win all around.
* chain.c: avoid comma-space in assembly stubsH. Peter Anvin2008-06-191-14/+14
| | | | | Comma-space takes up too much horizontal space, since we want to be able to comment properly.
* chain.c32: check the stub sources into the treeH. Peter Anvin2008-06-192-0/+44
| | | | | | Check the stub sources into the tree, even though they aren't used by the build; they are still useful when experimenting with changing this stuff.
* Add address aliases for freedos and msdosH. Peter Anvin2008-06-191-0/+6
|
* chain.c32: minor stylistic cleanupH. Peter Anvin2008-06-191-2/+1
|
* chain.c: we can't rely on dosmem and int13 in here...H. Peter Anvin2008-06-191-86/+119
| | | | | | | | dosmem and int13 can change during boot loader shutdown. It is therefore unsafe to rely on them retaining their value from running in chain.c32 itself. Instead, we have to install a suitable stub which makes that particular determination at runtime. Fortunately that is not all that hard to do.
* chain.c32: support loading DOS kernelsH. Peter Anvin2008-06-181-14/+88
| | | | | | | | | | | | Support loading files below 0x7c00, as required, for example, by DOS kernels. Furthermore, pass the drive number in BL as well as DL. With this, we can load the FreeDOS kernel with: chain.c32 hd0 -seg 0x60 -file /kernel.sys Should really clean up the syntax before 3.70 final, though, and provide a way to default to the syslinux device.
* chain.c32: finalize the NTLDR interfacesyslinux-3.70-pre18H. Peter Anvin2008-06-151-47/+78
| | | | Settle on a final implementation of the NTLDR support.
* chain.c32: don't swap drives when already primarysyslinux-3.70-pre17H. Peter Anvin2008-06-121-3/+3
| | | | | Don't install the swap stub when we are already the primary drive, even if -swap is specified.
* chain.c32: support swapping BIOS drive numbersH. Peter Anvin2008-06-121-22/+83
| | | | Support installing a stub to swap BIOS drive numbers.
* chain: use shuffle API; support loading a boot fileH. Peter Anvin2008-06-121-27/+100
| | | | | Use the shuffle API, and support loading a boot file instead of the standard boot sector. This should be able to load NTLDR.
* Centralize configurables; better "make install" etcH. Peter Anvin2008-05-291-1/+2
| | | | | | | Begin the process of centralizing configurables. Improve "make install" and "make netinstall"; add "make extbootinstall".
* Move files out of root into core, dos, and utilsH. Peter Anvin2008-05-291-1/+1
| | | | | | | | Move source files out of the root directory; the root is a mess and has become virtually unmaintainable. The Syslinux core now lives in core/; the Linux and generic utilities has moved into utils/, and copybs.com has moved into dos/; it had to go somewhere, and it seemed as good a place as any.
* Merge commit 'origin/master' into gpxe-addedH. Peter Anvin2008-05-282-2/+2
|\ | | | | | | | | | | | | Conflicts: NEWS version
| * Fixed the various Makefiles so that SYSLINUX compiles on platforms with GCC ↵Stefan Bucur2008-05-121-1/+1
| | | | | | | | -fstack-protector flag enabled by default.
| * chain.c32: fix booting from logical partitionsSergey Vlasov2008-04-241-1/+1
| | | | | | | | | | | | | | | | Booting from a logical partition failed with the "Requested logical partition not found" error due to a wrong test for partition signature in find_logical_partition(). Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
* | Merge commit 'syslinux-3.63' into gpxe-addedsyslinux-3.70-pre9H. Peter Anvin2008-04-102-1/+167
|\ \ | |/ | | | | | | | | | | Conflicts: NEWS com32/modules/Makefile
| * sdi.c32: be a tad more verbose.H. Peter Anvin2008-04-081-1/+5
| | | | | | | | Print minimal message while loading.
| * COM32 module to load a Microsoft System Deployment ImageH. Peter Anvin2008-03-312-1/+163
| | | | | | | | COM32 module to load a Microsoft System Deployment Image (SDI) file.
* | gPXE SAN boot moduleH. Peter Anvin2008-03-282-1/+142
| | | | | | | | | | Trivial COM32 module which accepts a sanboot command and passes it on to gPXE.
* | Merge commit 'syslinux-3.63-pre2' into nolensyslinux-3.70-pre5H. Peter Anvin2008-03-202-4/+4
|\ \ | |/
| * Fixing wrong offsets in dmiSebastian Herbszt2008-03-201-3/+3
| | | | | | | | | | | | | | DMI code have some wrong offsets. This patch fixes this offsets and improve the grammar. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
| * Use $(CC) in gcc_ok macro, not plain gccH. Peter Anvin2008-03-051-1/+1
| | | | | | | | | | Use $(CC) in gcc_ok macro, not plain gcc. This seems to work, iff the gcc_ok macro is declared with =, not :=
* | Merge commit 'origin/master' into nolensyslinux-3.70-pre4H. Peter Anvin2008-03-031-2/+3
|\ \ | |/ | | | | | | | | Conflicts: version
| * Prevent inclusion of system include files when inappropriateH. Peter Anvin2008-03-031-2/+3
| | | | | | | | | | Use "-nostdinc -iwithprefix include" to prevent the inclusion of system header files, but still permitting *compiler* header files.
* | Drop unnecessary CLD instructions.H. Peter Anvin2008-03-031-3/+3
| | | | | | | | | | | | The EFI ABI spec states that DF=0 on ABI boundaries, and gcc expects this. Assume it is safe to rely upon everywhere; drop unnecessary cld instructions, except on entry and (obviously) after std.
* | Merge commit 'origin/master' into nolenH. Peter Anvin2008-03-027-62/+132
|\ \ | |/
| * License change for CPU detection modulesErwan2008-03-026-36/+132
| | | | | | | | | | | | | | | | | | | | | | H. Peter Anvin wrote: > Erwan: I would have to get you to do this, since it would mean > changing the license (trying to keep libcom32 under the BSD/MIT > licenses), and you have them under your own copyright (as opposed to > mine), which means I can't do this change. Please find attached the patch to changing the license to MIT on modules I did contribute in com32/modules/.
| * Move mboot documentation to the doc/ directoryH. Peter Anvin2008-03-011-26/+0
| |
* | Add transparent decompression support to elf.c32H. Peter Anvin2008-02-291-1/+1
|/ | | | Use zloadfile() to support file decompression in elf.c32.
* com32: remove dependency files for "make tidy"H. Peter Anvin2008-02-191-2/+2
|
* Add dependency generation for com32 modules.H. Peter Anvin2008-02-191-2/+7
|
* Simple menu system: move to dedicated subdirectoryH. Peter Anvin2008-02-107-2383/+3
| | | | | Move the simple menu system into its own subdirectory, to make it more obvious which source files are part of it.
* meminfo.c32: a program to dump out the system memory mapH. Peter Anvin2008-01-222-1/+110
| | | | | Handy little utility for dumping out the system memory map. Changes no other code.
* Standardize format for copyright lines and updateH. Peter Anvin2008-01-161-2/+2
| | | | Update copyright lines and standardize the format.
* elf.c32: a PHDR segment is loadable; handle filesz > memszH. Peter Anvin2008-01-151-10/+14
| | | | | | PHDR segments are equal to LOAD segments as far as the loader is concerned. Also handle the case of filesz > memsz (by ignoring the additional data.)
* SHA1 passwords: initialize the context before saltingJeffrey Hutzelman2008-01-141-2/+2
| | | | Need to initialize the SHA-1 context before we add the salt.
* Update copyright yearH. Peter Anvin2008-01-109-9/+9
|