summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Allow the initrd to be specified on a separate linesyslinux-3.71-pre4H. Peter Anvin2008-07-0310-45/+66
| | | | | Allow the initrd to be specified on a separate line from command-line options (append). This apparently can help certain tools.
* NEWS: handle being the only floppy better.H. Peter Anvin2008-07-031-1/+4
|
* doc/memdisk.txt: document INT 1Eh fieldsH. Peter Anvin2008-07-031-5/+12
| | | | Document the fields to recover the original INT 1Eh vector.
* memdisk: install a DPT if needed in INT 1Eh; better zero-drive detectionH. Peter Anvin2008-07-033-15/+61
| | | | | | | | | Per the Interrupt list, treat INT 13 08 returning with CL=0 as a failure, meaning single drive only. If we find ourselves the only floppy drive, install a DPT into INT 1Eh. This appears to be needed for PC-DOS 7.0 to boot. This can be overridden with the "nodpt" option, and forced with the "dpt" option.
* memdisk/version.h: bump copyright yearH. Peter Anvin2008-07-031-1/+1
| | | | 2008, not 2007
* .gitignore: make singleton filenames absoluteH. Peter Anvin2008-07-031-11/+11
| | | | Ignore, for example, version.h, but not memdisk/version.h
* extlinux: fix handling of /etc/mtabsyslinux-3.71-pre3H. Peter Anvin2008-07-022-27/+31
| | | | | | When we didn't find the filesystem in /proc/mounts, we would go through /etc/mtab, but then completely botch the parsing thereof. Move the parsing to a common function to avoid this problem.
* Simple menu: really avoid disabled entriessyslinux-3.71-pre2H. Peter Anvin2008-07-022-22/+36
| | | | Really, really try to avoid stepping on disabled entries...
* 3.70 is out, next release is 3.71syslinux-3.71-pre1H. Peter Anvin2008-06-301-1/+1
|
* NEWS: There never was a 3.64H. Peter Anvin2008-06-301-2/+0
| | | | There was no 3.64 release; remove the heading.
* comboot: issue IRET for INT 2FhH. Peter Anvin2008-06-301-0/+5
| | | | | At least one laptop exists which calls INT 2Fh from inside the BIOS! So just point INT 2Fh to IRET, and hope that's good enough.
* gPXE: Missing files from gPXE syncsyslinux-3.70-pre30syslinux-3.70H. Peter Anvin2008-06-3010-0/+688
| | | | Files that should have been added before...
* chain.c32: allow "boot" as a drive specificationH. Peter Anvin2008-06-302-13/+35
| | | | | Allow "boot" as the drive specification; this can be used both with partition numbers and with loaders.
* gPXE: update gPXE to get rid of gpxe/src/ConfigH. Peter Anvin2008-06-3014-503/+335
| | | | | | gpxe/src/Config versus gpxe/src/config is a problem on case-deficient filesystems; update to top of tree gPXE so we don't have that problem anymore.
* cptable.pl: it seems to make more sense to put console firstH. Peter Anvin2008-06-281-3/+3
| | | | | | It seems to make more sense to put the console codepage first, since it is the more significant of the two codepages. It also makes more sense in the from..to sense.
* spec: can't put anything in the /etc directory if it's not theresyslinux-3.70-pre29H. Peter Anvin2008-06-271-0/+1
| | | | Make sure we create the /etc directory before putting something there.