summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into gpxeisogpxeisoH. Peter Anvin2008-07-224-45/+18
|\
| * core/runkernel.inc: remove dead codesyslinux-3.71-pre16Sergey Vlasov2008-07-221-6/+0
| | | | | | | | | | Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Fix initrd overwriting the kernel for some kernel sizesSergey Vlasov2008-07-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | The address in EDI returned by the load_high call used to load the kernel needs to be passed to parse_load_initrd, but the code which clears memory after setup sectors for 1.2.x kernels was corrupting low 16 bits of EDI. In most cases this corruption was not noticed, because with usual setup sizes DI was set to 0xf800, therefore the chance of getting the kernel size such that initrd would actually overwrite the kernel was about 3%. Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Fix loading of *.lkrn images from gPXESergey Vlasov2008-07-221-7/+6
| | | | | | | | | | | | | | | | | | | | | | Attempts to load *.lkrn images were failing with "Not enough memory to load specified image". These images have the su_ramdisk_max header field set to zero, and the code in core/runkernel.inc was limiting MyHighMemSize too early (before the load_high call used to load the main part of the kernel). Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * vesamenu: avoid strcmp() with NULLH. Peter Anvin2008-07-221-1/+1
| | | | | | | | | | Avoid touching memory at address zero when going from a background to a non-background.
| * pci: resize pci_device arrayssyslinux-3.71-pre15Sebastian Herbszt2008-07-191-5/+5
| | | | | | | | | | | | | | | | | | | | | | pci_bus->pci_device get's populated with functions so it should take up to MAX_PCI_DEVICES * MAX_PCI_FUNC elements. pci_device_list->pci_device get's populated with functions for every possible pci bus. Therefore it should take up to MAX_PCI_BUS * MAX_PCI_DEVICES * MAX_PCI_FUNC elements. Also adjust count variable types. - Sebastian
| * ethersel: use library functionsSebastian Herbszt2008-07-191-26/+4
| | | | | | | | | | | | | | Replace get_config() and execute() with syslinux_config_file() and syslinux_run_command(). - Sebastian
* | gpxe: code to generate a gPXE universal CD-ROMH. Peter Anvin2008-07-182-1/+51
|/ | | | | | Add stuff to the gpxe/ Makefile to generate a gPXE universal CD-ROM. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Document SERIAL fixH. Peter Anvin2008-07-171-0/+1
|
* Correctly parse "serial" statements with no baud rateH. Peter Anvin2008-07-171-7/+6
| | | | | People often don't bother specifying a baud rate for virtual serial ports. Handle parsing correctly.
* win32: run shell script in the current dir with ./H. Peter Anvin2008-07-171-1/+1
| | | | | | Need leading ./ to run shell script in the current directory. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* isolinux: rename CurDir to CurrentDirSebastian Herbszt2008-07-161-8/+8
| | | | | | | ldlinux and extlinux are both using CurrentDir variable name. Rename CurDir to make it consistent with those. - Sebastian
* <sys/cpu.h>: asm() formatting cleanupH. Peter Anvin2008-07-161-1/+2
| | | | | | Minor asm() formatting cleanup. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* <sys/cpu.h>: drop redundant "return"H. Peter Anvin2008-07-161-1/+1
| | | | | | Drop "return" for function returning void. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32: move cpuid inlines to <sys/cpu.h>H. Peter Anvin2008-07-162-73/+41
| | | | | | | | <sys/cpu.h> already has most of the CPUID inlines, put them all there. <cpuid.h> still have structures for the code that really should be librarized at some point. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* win32: search for a mingw compiler under several namesH. Peter Anvin2008-07-162-17/+37
| | | | | | | | Search for the MinGW compiler under several names, since different distros like to install it under different names. What's wrong with a simple mingw- prefix?? Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* 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>
* cpuid.h: add __constfuncH. Peter Anvin2008-07-161-5/+6
| | | | | | Add __constfunc to CPUID calls, so gcc knows it can CSE them. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* cpufeature.h: remove unused macrossyslinux-3.71-pre13H. Peter Anvin2008-07-161-29/+0
| | | | | | | Remove a bunch of unused macros (from Linux) which we don't need or use. 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-163-1/+131
| | | | | | | 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-162-120/+128
| | | | | | Minor cleanups to the CPUID code Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* NEWS: document ADV CBIOS fix.syslinux-3.71-pre12H. Peter Anvin2008-07-161-0/+1
| | | | Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* adv: fix the handling of the ADV with CBIOSH. Peter Anvin2008-07-161-25/+39
| | | | | | | Fix numerous problems in the way we handled the ADV with CBIOS. The EBIOS code was largely correct, but the CBIOS code was just busted. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* parseconfig: fix invalid mangle_name assumptionH. Peter Anvin2008-07-161-1/+1
| | | | | | | | Remove assumption that mangle_name leaves DI beyond the end of the buffer. This was true back when the mangled filename buffer was an 11-byte DOS filename, but it is definitely not true anymore. 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>
* gen-id: only truncate tags starting with syslinux-<version>-H. Peter Anvin2008-07-153-12/+24
| | | | | If git-describe comes up with a tag not starting with syslinux-<version>- then leave it as-is.
* Use "git describe" in generating build signaturesH. Peter Anvin2008-07-151-4/+2
| | | | | We got rid of the 10-character limitation a long time ago, so we might as well use "git describe" in generating the build signatures.
* Reformat overwide commentH. Peter Anvin2008-07-151-11/+15
|
* NEWS: KEYMAP -> KBDMAPH. Peter Anvin2008-07-141-1/+1
|
* keymap, font: use readc, so we can handle indeterminate file sizessyslinux-3.71-pre10H. Peter Anvin2008-07-143-30/+42
| | | | | | The keymap and font commands still assumed that we knew the file size, which is no longer true. Fix that by instead using "readc" and checking the CF.
* getc: add "readc" function to do block readsH. Peter Anvin2008-07-141-0/+20
| | | | | Add "readc" function to do block reads. Currently it just does a loop around "call getc/stosb".
* conio: jump to loadkeys_ret in loadkeys if size not 256 bytessyslinux-3.71-pre9Sebastian Herbszt2008-07-141-0/+2
| | | | | Add back jump to loadkeys_ret if the file size was not 256 bytes; inadvertently deleted when removing DX:AX 16-bitism.
* Document unbreaking of KEYMAPsyslinux-3.71-pre8H. Peter Anvin2008-07-131-0/+1
|
* Fix residual use of DX:AX in the KEYMAP commandH. Peter Anvin2008-07-131-6/+2
| | | | The KEYMAP command still expected length in DX:AX, and so got broken.
* 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-112-9/+107
| | | | Option for chain.c32 to hide primary partitions on the boot drive.
* syslinux.txt: update; add INITRDSICMA_FIRST_IMPORTH. Peter Anvin2008-07-091-18/+23
| | | | Add the INITRD statement and a few other updates.
* Document fix for RootDirH. Peter Anvin2008-07-091-1/+4
|
* ldlinux: CurrentDir not set if syslinux.cfg is missingSebastian Herbszt2008-07-091-0/+2
| | | | | | | | | | | | | | | If a syslinux floppy does not contain a config file (syslinux.cfg) modules are not being found unless specified with a directory prefix (e.g. /pcitest.c32). The reason is that CurrentDir is only set if there is a config file present. This is a possible regression since commit 68eefb79e2cbb590ebf958dd0c50ce00b941abd2. Before this change RootDir was used in searchdir and now it's CurrentDir unless the filename starts with '/'. Possible fix is to set CurrentDir to RootDir if no config file is found. Actually it seems better to move this to the top of the "check for config file" block. Initialize CurrentDir to RootDir and change it if a config file is found. - Sebastian
* Make version.mk optional, so cleaning commands worksyslinux-3.71-pre6H. Peter Anvin2008-07-072-2/+2
| | | | For cleaning commands, we need version.mk to be optional.
* Share the gen-id stuff between core and memdiskH. Peter Anvin2008-07-076-5/+17
| | | | Both core and memdisk wants to use the gen-id stuff, so let it.
* Centralize more of the version number machineryH. Peter Anvin2008-07-0713-30/+49
| | | | Centralize more (most) of the version number machinery to version.pl.
* Drop macros that just point to other macrosH. Peter Anvin2008-07-075-7/+5
| | | | | Drop macros for "date" and "version_str", which are nothing but redefined names of macros we already define (DATE_STR and VERSION).
* comboot: re-enable the idle callsyslinux-3.71-pre5H. Peter Anvin2008-07-071-4/+2
| | | | Try again to enable the idle call.
* 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
* comboot: make sure we CLD at all relevant entry pointsH. Peter Anvin2008-07-071-1/+6
| | | | | DF is undefined on entry, so make sure we clear it at all entry points where it could possibly matter.
* comboot.inc: add missing "section .text"H. Peter Anvin2008-07-071-0/+2
|
* comboot: save/restore all the DOS vectors; handle a few moreH. Peter Anvin2008-07-071-16/+85
| | | | | - save and restore all the DOS vectors around COMBOOT invocations. - handle INT 28h and INT 29h, and IRET on INT 2Dh, 2Fh, 33h.
* Include the git ID in the build stringH. Peter Anvin2008-07-072-1/+23
| | | | | | If we're doing an unofficial build from git, put the git id and a dirty flag in the build string, instead of a timestamp. This is a lot more useful.