| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Clean up the sources to make them easier to read.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
| |
Add __constfunc to CPUID calls, so gcc knows it can CSE them.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
| |
Remove a bunch of unused macros (from Linux) which we don't need or
use.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Minor cleanups to the CPUID code
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
| |
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
If git-describe comes up with a tag not starting with
syslinux-<version>- then leave it as-is.
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Add "readc" function to do block reads. Currently it just does a loop
around "call getc/stosb".
|
|
|
|
|
| |
Add back jump to loadkeys_ret if the file size was not 256 bytes;
inadvertently deleted when removing DX:AX 16-bitism.
|
| |
|
|
|
|
| |
The KEYMAP command still expected length in DX:AX, and so got broken.
|
|
|
|
|
| |
If we write the MBR, do verify by reading it back and comparing.
Right now all we do is print an error, though.
|
|
|
|
| |
Option for chain.c32 to hide primary partitions on the boot drive.
|
|
|
|
| |
Add the INITRD statement and a few other updates.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
For cleaning commands, we need version.mk to be optional.
|
|
|
|
| |
Both core and memdisk wants to use the gen-id stuff, so let it.
|
|
|
|
| |
Centralize more (most) of the version number machinery to version.pl.
|
|
|
|
|
| |
Drop macros for "date" and "version_str", which are nothing but
redefined names of macros we already define (DATE_STR and VERSION).
|
|
|
|
| |
Try again to enable the idle call.
|
|
|
|
|
|
| |
Fix the text for pci_bus_list->count == 1 ("1 bus found").
- Sebastian
|
|
|
|
|
| |
DF is undefined on entry, so make sure we clear it at all entry points
where it could possibly matter.
|
| |
|
|
|
|
|
| |
- save and restore all the DOS vectors around COMBOOT invocations.
- handle INT 28h and INT 29h, and IRET on INT 2Dh, 2Fh, 33h.
|
|
|
|
|
|
| |
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 line from command-line
options (append). This apparently can help certain tools.
|
| |
|
|
|
|
| |
Document the fields to recover the original INT 1Eh vector.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
2008, not 2007
|
|
|
|
| |
Ignore, for example, version.h, but not memdisk/version.h
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Really, really try to avoid stepping on disabled entries...
|
| |
|
|
|
|
| |
There was no 3.64 release; remove the heading.
|
|
|
|
|
| |
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.
|
|
|
|
| |
Files that should have been added before...
|
|
|
|
|
| |
Allow "boot" as the drive specification; this can be used both with
partition numbers and with loaders.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Make sure we create the /etc directory before putting something there.
|