H. Peter Anvin [Wed, 10 Sep 2008 00:09:16 +0000 (17:09 -0700)]
NEWS: document ^G -> beep
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Wed, 10 Sep 2008 00:08:14 +0000 (17:08 -0700)]
ansicon, vesacon: beep on ^G
If we get a ^G, issue a beep.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 9 Sep 2008 23:39:32 +0000 (16:39 -0700)]
sdi.txt: fix formatting of pxelinux.cfg example
Fix formatting of the pxelinux.cfg example.
Remi Lefevre [Tue, 9 Sep 2008 23:17:57 +0000 (01:17 +0200)]
Add basic documentation to SDI images boot
I adapted it from my patch documentation.
Errors and warnings have been modified, as well as configuration (sdi.c32)
and some minor modifications following discussions.
Signed-off-by: Remi Lefevre <rlefevre@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Sebastian Herbszt [Tue, 9 Sep 2008 20:48:42 +0000 (22:48 +0200)]
parsecmd: show keyword in err_noparm message
Show which keyword is missing the parameter.
- Sebastian
H. Peter Anvin [Tue, 9 Sep 2008 01:03:45 +0000 (18:03 -0700)]
menu: quiet warnings in drain_keyboard()
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>
H. Peter Anvin [Tue, 9 Sep 2008 00:57:10 +0000 (17:57 -0700)]
sdi.c32: Change SDIReserved -> MDBType
Per Sergii Kolisnyk, change SDIReserved to MDBType.
Remi Lefevre [Wed, 3 Sep 2008 15:30:44 +0000 (17:30 +0200)]
sdi.c32: verify the header checksum
Verify the checksum in the SDI header.
SDIheader variable names and checksum algo are from
http://skolk.livejournal.com/
H. Peter Anvin [Tue, 9 Sep 2008 00:30:55 +0000 (17:30 -0700)]
mbr, gptmbr, isohdpfx: don't lose the carry flag
Using addw to restore the stack pointer clobbers CF. Use leaw
instead, even though this relies on the BIOS not clobbering %si.
Worst case we can add a mov %sp, %si or similar.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 9 Sep 2008 00:23:58 +0000 (17:23 -0700)]
isolinux: save a few bytes
Save a few bytes in ISOLINUX.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 9 Sep 2008 00:18:35 +0000 (17:18 -0700)]
isohdpfx: save one byte
Save one byte in isohdpfx.S.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 9 Sep 2008 00:16:03 +0000 (17:16 -0700)]
Makefile: add isohybrid as an IOBJECT
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Mon, 8 Sep 2008 23:15:27 +0000 (16:15 -0700)]
isolinux: save a few bytes to make sure we actually fit
With a long VERSION_STR, we would sometimes fail to compile. Shorten
a few of the messages to make sure that doesn't happen.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Mon, 8 Sep 2008 23:07:04 +0000 (16:07 -0700)]
NEWS: document gdb stub
H. Peter Anvin [Mon, 8 Sep 2008 23:05:50 +0000 (16:05 -0700)]
Merge commit 'stefanha/gdbstub'
H. Peter Anvin [Mon, 8 Sep 2008 05:57:49 +0000 (22:57 -0700)]
mbr/Makefile: run checksize on the proper binaries...
There is a reason other than stylistic for using macros like $@ in
explicit rules, and that is that they get copied and pasted around...
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Mon, 8 Sep 2008 05:56:45 +0000 (22:56 -0700)]
gPXE: enable NFS, FTP, HTTPS
Enable the NFS, FTP, and HTTPS protocols in the gpxelinux.0
configuration.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Mon, 8 Sep 2008 05:41:29 +0000 (22:41 -0700)]
gPXE: update gPXE to current git
Update gPXE to current git.
gpxe-for-syslinux
e3ef2094cfa26f874c5f8dbd687eb311830efcf0
gpxe main tree
8223084afc206000312611a3fcfa30a28500d1a3
H. Peter Anvin [Mon, 8 Sep 2008 02:27:16 +0000 (19:27 -0700)]
isohybrid: remove Perl modules we don't actually need
Remove Perl "use" statements that aren't actually required.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Mon, 8 Sep 2008 02:23:31 +0000 (19:23 -0700)]
isohybrid: verify we have a hybrid-compatible isolinux.bin
Verify that the PXE boot loader is a hybrid-compatible isolinux.bin by
looking for the hybrid boot signature, otherwise print an error
message.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Mon, 8 Sep 2008 02:17:03 +0000 (19:17 -0700)]
isohybrid, mkdiskimage: don't use sysopen(), sysread()
Don't use sysopen() and sysread() when it doesn't make sense.
Especially avoid using sysread() -- sysopen() can be used with read();
the C fdopen() is implicit.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Sat, 6 Sep 2008 01:02:17 +0000 (18:02 -0700)]
isolinux: display BIOS type
Display the BIOS type for isolinux in the same way we do for
ldlinux/extlinux.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Fri, 5 Sep 2008 22:21:40 +0000 (15:21 -0700)]
isohybrid: fix partition table generation, document
Fix the generation of the partition table in isohybrid; also document
the operation of the partition table.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Fri, 5 Sep 2008 22:07:35 +0000 (15:07 -0700)]
ISOLINUX: document hybrid mode
Document ISOLINUX hybrid mode.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Fri, 5 Sep 2008 22:00:40 +0000 (15:00 -0700)]
ISOLINUX: fix EBIOS information passing in hybrid HDD mode
We were incorrectly not passing the EBIOS flag in hybrid HDD mode;
also compute the EBIOS LBA correctly in hybrid HDD mode. Allow a
34-bit LBA for this, that way we still support up to 2^32 CD-ROM
sectors (8 TB).
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Fri, 5 Sep 2008 21:49:42 +0000 (14:49 -0700)]
ISOLINUX: support for hybrid mode (CD-ROM/USB key)
Still a work in progress.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Fri, 5 Sep 2008 21:48:01 +0000 (14:48 -0700)]
core/Makefile: iso%.bin depends on checksumiso.pl
iso%.bin depends on checksumiso.pl
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Fri, 5 Sep 2008 21:47:22 +0000 (14:47 -0700)]
checksumiso: pad isolinux.bin to a sector boundary
Always pad isolinux.bin to a full CD-ROM sector boundary. This avoids
a lot of potential special cases.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Thu, 4 Sep 2008 12:40:38 +0000 (05:40 -0700)]
keytab-lilo: don't try to be too smart
The keytab-lilo script tried to add pathname and extension, but
loadkeys does that better. Therefore, don't try to be smart.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 2 Sep 2008 23:18:28 +0000 (16:18 -0700)]
NEWS: update NEWS (sdi.c32, ISOLINUX fix)
H. Peter Anvin [Tue, 2 Sep 2008 23:14:28 +0000 (16:14 -0700)]
isolinux: return failure when opening a zero-length file
In the Syslinux view of the world, a zero-length file doesn't exist
and therefore should return error on open. A lot of the code relies
on this, but ISOLINUX allowed a zero-length file to be opened, which
could cause all kinds of trouble.
It would be nicer to not have that restriction, but removing it will
probably not happen until the configuration code is rewritten in C.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 2 Sep 2008 21:44:22 +0000 (14:44 -0700)]
sdi.c32: credit where credit is due
This doesn't use Remi's code, but definitely used some concepts from
his patch.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 2 Sep 2008 21:42:23 +0000 (14:42 -0700)]
sdi.c32: support gzipped SDI images
Support gzipped SDI images, simply by replacing loadfile() with
zloadfile(). Suggested by Remi Lefevre.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Stefan Hajnoczi [Sat, 30 Aug 2008 08:07:42 +0000 (09:07 +0100)]
Fix GDB protocol flow control issues
Sebastian Herbszt [Fri, 29 Aug 2008 19:56:30 +0000 (21:56 +0200)]
Makefile: add modules to BSUBDIRS
Add modules directory to BSUBDIRS.
Stefan Hajnoczi [Fri, 29 Aug 2008 14:08:26 +0000 (15:08 +0100)]
Add GDB stub
Stefan Hajnoczi [Thu, 28 Aug 2008 20:19:31 +0000 (21:19 +0100)]
Relocating COM32 module
H. Peter Anvin [Wed, 27 Aug 2008 23:25:41 +0000 (16:25 -0700)]
NEWS: update for 3.72
H. Peter Anvin [Wed, 27 Aug 2008 23:23:24 +0000 (16:23 -0700)]
Add pxechain.com; new modules direction; reorganize installation
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>
H. Peter Anvin [Tue, 26 Aug 2008 21:46:36 +0000 (14:46 -0700)]
menu: avoid leaving obvious password turds in memory
Avoid leaving obvious password turds in memory.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Fri, 22 Aug 2008 21:43:43 +0000 (14:43 -0700)]
core/Makefile: The core is an embedded target
The core is an embedded target, so use MCONFIG.embedded.
H. Peter Anvin [Fri, 22 Aug 2008 21:42:40 +0000 (14:42 -0700)]
Clean up embedded Makefile targets; fix build failure
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.
H. Peter Anvin [Wed, 20 Aug 2008 22:15:34 +0000 (15:15 -0700)]
Major Makefile cleanups; gcc 4.3.0 compatiblity
Cleanup and centralize the Makefile system even more.
Fix a gcc 4.3 incompatibility in memdisk (definition of strlen).
H. Peter Anvin [Fri, 15 Aug 2008 01:19:23 +0000 (18:19 -0700)]
MEMDISK: document the pause option
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Sebastian Herbszt [Mon, 11 Aug 2008 20:00:29 +0000 (22:00 +0200)]
pci: fix pci_scan()
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Sebastian Herbszt [Mon, 11 Aug 2008 19:51:21 +0000 (21:51 +0200)]
pci: cosmetic fixes
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 12 Aug 2008 18:30:19 +0000 (11:30 -0700)]
pci: revamp the PCI system to have a hierarchial format
Create the concept of a PCI domain, as a hierarcy of busses, devices
and functions. This avoids large static-sized arrays and allows for
geographical addressing of devices.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 12 Aug 2008 18:28:59 +0000 (11:28 -0700)]
ctype.h: change extern inline to static inline
Make -std=gnu99 happy...
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 12 Aug 2008 18:20:34 +0000 (11:20 -0700)]
stdio.h: change fflush() from "extern inline" to "static inline"
When compiling with -std=gnu99, apparently gcc doesn't like "extern
inline" anymore.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 12 Aug 2008 18:18:28 +0000 (11:18 -0700)]
com32: compile with -std=gnu99
Compile with -std=gnu99, this allows us to define initializers inside
for() loops, which makes certain kinds of ugly macros easier to write.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 12 Aug 2008 18:17:06 +0000 (11:17 -0700)]
stdio.h: revamp fread/fwrite to make gcc less unhappy
Implement the special case size == 1 in terms of a macro; this makes
gcc 4.3 less unhappy.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 12 Aug 2008 17:34:51 +0000 (10:34 -0700)]
Merge updated version of the gPXE code
Merge gPXE up to upstream git version gpxe-0.9.3-release-197-gff2b6a5
(
ff2b6a512d7a4f351e48dc9a042099a1010342a3).
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Mon, 11 Aug 2008 16:14:40 +0000 (09:14 -0700)]
Fix lrand48() and rand()
lrand48() and rand() had improper parenthesization, which caused it to
return negative values.
Spotted by Stefan Bucur :)
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Thu, 7 Aug 2008 23:10:30 +0000 (16:10 -0700)]
Add version.mk to .gitignore
H. Peter Anvin [Fri, 1 Aug 2008 21:03:21 +0000 (14:03 -0700)]
com32/lib: add zalloc()
Add the nonstandard, but often useful, zalloc() function.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Fri, 1 Aug 2008 19:56:54 +0000 (12:56 -0700)]
pci: inlines for extracting part of a PCI device address
The inverse operations of pci_mkaddr()
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Fri, 1 Aug 2008 19:51:28 +0000 (12:51 -0700)]
pci: store device address
When scanning PCI devices, store the device address for reference.
Based on a patch by Sebastian Herbszt.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Fri, 1 Aug 2008 00:34:00 +0000 (17:34 -0700)]
Merge commit 'origin/for-3.72'
H. Peter Anvin [Fri, 1 Aug 2008 00:33:19 +0000 (17:33 -0700)]
version: bump version number
Next version will presumably be 3.72...
H. Peter Anvin [Fri, 1 Aug 2008 00:21:15 +0000 (17:21 -0700)]
Document search for MinGW
H. Peter Anvin [Fri, 1 Aug 2008 00:20:02 +0000 (17:20 -0700)]
Document remaining fixes.
H. Peter Anvin [Thu, 31 Jul 2008 02:22:07 +0000 (19:22 -0700)]
chain.c32: error out on missing boot sector signature
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>
H. Peter Anvin [Thu, 24 Jul 2008 02:17:08 +0000 (22:17 -0400)]
klibc/compiler.h: add __weak macro
Add a macro for weak symbols.
H. Peter Anvin [Thu, 24 Jul 2008 02:15:53 +0000 (22:15 -0400)]
klibc/compiler.h: booleanize likely/unlikely
__likely() and __unlikely() should explicitly booleanize their
arguments.
H. Peter Anvin [Tue, 22 Jul 2008 17:41:07 +0000 (13:41 -0400)]
Simplify and fix label string scanning
Simplify and fix bugs in the code to store and match label names
without filename mangling.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Sebastian Herbszt [Tue, 22 Jul 2008 15:09:55 +0000 (17:09 +0200)]
parseconfig, ui: store the label name unmangled
Store the label names unmangled and match those against command_line.
- Sebastian
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Sergey Vlasov [Tue, 22 Jul 2008 09:46:09 +0000 (13:46 +0400)]
core/runkernel.inc: remove dead code
Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Sergey Vlasov [Tue, 22 Jul 2008 09:46:08 +0000 (13:46 +0400)]
Fix initrd overwriting the kernel for some kernel sizes
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>
Sergey Vlasov [Tue, 22 Jul 2008 09:46:07 +0000 (13:46 +0400)]
Fix loading of *.lkrn images from gPXE
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>
H. Peter Anvin [Tue, 22 Jul 2008 01:36:44 +0000 (21:36 -0400)]
vesamenu: avoid strcmp() with NULL
Avoid touching memory at address zero when going from a background to
a non-background.
Sebastian Herbszt [Sat, 19 Jul 2008 20:26:48 +0000 (22:26 +0200)]
pci: resize pci_device arrays
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
Sebastian Herbszt [Sat, 19 Jul 2008 19:54:34 +0000 (21:54 +0200)]
ethersel: use library functions
Replace get_config() and execute() with syslinux_config_file() and
syslinux_run_command().
- Sebastian
H. Peter Anvin [Thu, 17 Jul 2008 22:18:46 +0000 (15:18 -0700)]
Document SERIAL fix
H. Peter Anvin [Thu, 17 Jul 2008 21:54:31 +0000 (14:54 -0700)]
Correctly parse "serial" statements with no baud rate
People often don't bother specifying a baud rate for virtual serial
ports. Handle parsing correctly.
H. Peter Anvin [Thu, 17 Jul 2008 20:47:51 +0000 (13:47 -0700)]
win32: run shell script in the current dir with ./
Need leading ./ to run shell script in the current directory.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Sebastian Herbszt [Wed, 16 Jul 2008 23:13:48 +0000 (01:13 +0200)]
isolinux: rename CurDir to CurrentDir
ldlinux and extlinux are both using CurrentDir variable name.
Rename CurDir to make it consistent with those.
- Sebastian
H. Peter Anvin [Thu, 17 Jul 2008 01:57:28 +0000 (18:57 -0700)]
<sys/cpu.h>: asm() formatting cleanup
Minor asm() formatting cleanup.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Thu, 17 Jul 2008 01:56:50 +0000 (18:56 -0700)]
<sys/cpu.h>: drop redundant "return"
Drop "return" for function returning void.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Thu, 17 Jul 2008 01:56:01 +0000 (18:56 -0700)]
com32: move cpuid inlines to <sys/cpu.h>
<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>
H. Peter Anvin [Thu, 17 Jul 2008 00:01:33 +0000 (17:01 -0700)]
win32: search for a mingw compiler under several names
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>
H. Peter Anvin [Wed, 16 Jul 2008 22:42:20 +0000 (15:42 -0700)]
ifcpu64.c32: clean up the sources
Clean up the sources to make them easier to read.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Wed, 16 Jul 2008 22:39:40 +0000 (15:39 -0700)]
cpuid.h: add __constfunc
Add __constfunc to CPUID calls, so gcc knows it can CSE them.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Wed, 16 Jul 2008 22:25:06 +0000 (15:25 -0700)]
cpufeature.h: remove unused macros
Remove a bunch of unused macros (from Linux) which we don't need or
use.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Wed, 16 Jul 2008 22:21:21 +0000 (15:21 -0700)]
ifcpu64.c32: simple module to choose a 32, 32pae, or 64-bit kernel
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>
H. Peter Anvin [Wed, 16 Jul 2008 22:12:47 +0000 (15:12 -0700)]
cpuid.[ch]: various cleanups
Minor cleanups to the CPUID code
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Wed, 16 Jul 2008 18:32:09 +0000 (11:32 -0700)]
NEWS: document ADV CBIOS fix.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Wed, 16 Jul 2008 18:27:00 +0000 (11:27 -0700)]
adv: fix the handling of the ADV with CBIOS
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>
H. Peter Anvin [Wed, 16 Jul 2008 18:25:57 +0000 (11:25 -0700)]
parseconfig: fix invalid mangle_name assumption
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>
Sergey Vlasov [Wed, 16 Jul 2008 11:13:21 +0000 (15:13 +0400)]
chain.c32: fix test for partition types which can be hidden
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>
Sergey Vlasov [Wed, 16 Jul 2008 11:13:20 +0000 (15:13 +0400)]
chain.c32: fix bounce buffer handling
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>
H. Peter Anvin [Tue, 15 Jul 2008 23:10:46 +0000 (16:10 -0700)]
gen-id: only truncate tags starting with syslinux-<version>-
If git-describe comes up with a tag not starting with
syslinux-<version>- then leave it as-is.
H. Peter Anvin [Tue, 15 Jul 2008 23:06:14 +0000 (16:06 -0700)]
Use "git describe" in generating build signatures
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.
H. Peter Anvin [Tue, 15 Jul 2008 16:53:47 +0000 (09:53 -0700)]
Reformat overwide comment
H. Peter Anvin [Mon, 14 Jul 2008 20:40:54 +0000 (13:40 -0700)]
NEWS: KEYMAP -> KBDMAP
H. Peter Anvin [Mon, 14 Jul 2008 19:44:21 +0000 (12:44 -0700)]
keymap, font: use readc, so we can handle indeterminate file sizes
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.
H. Peter Anvin [Mon, 14 Jul 2008 19:43:50 +0000 (12:43 -0700)]
getc: add "readc" function to do block reads
Add "readc" function to do block reads. Currently it just does a loop
around "call getc/stosb".
Sebastian Herbszt [Mon, 14 Jul 2008 15:04:02 +0000 (17:04 +0200)]
conio: jump to loadkeys_ret in loadkeys if size not 256 bytes
Add back jump to loadkeys_ret if the file size was not 256 bytes;
inadvertently deleted when removing DX:AX 16-bitism.
H. Peter Anvin [Sun, 13 Jul 2008 23:09:43 +0000 (16:09 -0700)]
Document unbreaking of KEYMAP
H. Peter Anvin [Sun, 13 Jul 2008 23:08:44 +0000 (16:08 -0700)]
Fix residual use of DX:AX in the KEYMAP command
The KEYMAP command still expected length in DX:AX, and so got broken.
H. Peter Anvin [Fri, 11 Jul 2008 05:29:49 +0000 (01:29 -0400)]
chain.c32: explicitly verify after writing MBR
If we write the MBR, do verify by reading it back and comparing.
Right now all we do is print an error, though.