Erwan Velu [Tue, 24 Nov 2009 12:42:41 +0000 (13:42 +0100)]
gpllibs: Running Nindent
Impact: visual
Running Nindent on gpllib / gplinclude
Erwan Velu [Tue, 24 Nov 2009 09:26:28 +0000 (10:26 +0100)]
Merge branch 'master' of ssh://terminus.zytor.com//pub/git/users/erwan/hdt
Erwan Velu [Tue, 24 Nov 2009 09:24:49 +0000 (10:24 +0100)]
hdt: Running Nindent
Impact: Visual cleanup
HDT now uses the same indent as syslinux
Erwan Velu [Tue, 24 Nov 2009 09:05:48 +0000 (10:05 +0100)]
Merge remote branch 'pam/hdt-0.3.6'
Pierre-Alexandre Meyer [Tue, 24 Nov 2009 02:40:01 +0000 (18:40 -0800)]
hdt: fix memory corruption in the CLI
More memory corruption with overlooked. parse_command_line and
expand_aliases both allocate memory (for command, module, argc and argv).
We did fix the memory corruption for the autocompletion feature but
but didn't do it for the actual execution of the commands.
Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
root [Mon, 23 Nov 2009 21:04:05 +0000 (22:04 +0100)]
memory: Commenting workaround
Impact: none
HDT is using a memory detection code which duplicates some syslinux
code. Once addr_t will be moved into 64bit, this can be removed by using
syslinux_scan_memory().
Erwan Velu [Mon, 23 Nov 2009 16:16:41 +0000 (17:16 +0100)]
hdt: replacing e88 by 88
Impact: e88 doesn't have any meaning
Fixing e88 by 88
Erwan Velu [Mon, 23 Nov 2009 14:16:32 +0000 (15:16 +0100)]
hdt: Rounding detected memory size
Impact: Visual
Rounding values to have more realistic values
Erwan Velu [Mon, 23 Nov 2009 12:44:51 +0000 (13:44 +0100)]
hdt: Improving memory detection
Impact: Detect memory size even if dmi is broken
This commit uses e820/e801/e88 memory detection to find the memory size.
That allow to display the memory size even if the dmi table is broken
Erwan Velu [Mon, 23 Nov 2009 12:39:55 +0000 (13:39 +0100)]
memory: Adding memory size detection
Impact: allow com32 module to detect the amount of memory installed
This commit adds several function:
sanitize_e820_map() to generate a new e820 map that doesn't have
overlaping
memsize_e820() to detect the available memory (in KB)
detect_memsize() to detect the amount of memory by using e820/e801/e88.
It first try to detect the memory via e820. If it fails, it uses e801 as
fallback. If this e801 fails, e88 is used.
Erwan Velu [Sun, 22 Nov 2009 21:48:49 +0000 (22:48 +0100)]
hdt: Cleaning mbr_ids
Impact: none
Let's just clean mbr_ids as we do for the orther structures
Erwan Velu [Sun, 22 Nov 2009 21:30:57 +0000 (22:30 +0100)]
hdt: More coherency in messages
Impact: more coherency
More coherency in messages
Erwan Velu [Sun, 22 Nov 2009 21:26:10 +0000 (22:26 +0100)]
hdt: Adding more coherency in memory messages
Impact: more coherency
More coherency in memory messages
Erwan Velu [Sun, 22 Nov 2009 20:57:47 +0000 (21:57 +0100)]
hdt: memory menu have to be shown in every case
Impact: memory menu have to be always visible
In virtualbox, dmi table isn't correctly feed. In that situation, the
memory menu isn't displayed whereas e88, e820 & e801 are present.
So let's remove the condition where the memory menu have to be shown
only when memory modules are detected.
Tested by Gert.
Erwan Velu [Sun, 22 Nov 2009 20:50:46 +0000 (21:50 +0100)]
hdt: Renaming "show 88" to "show e88"
Impact: increasing coherency
Let's rename that function to keep more coherency with e820 & e801
Erwan Velu [Sun, 22 Nov 2009 18:27:21 +0000 (19:27 +0100)]
Merge remote branch 'pam/hdt-0.3.6'
Pierre-Alexandre Meyer [Sun, 22 Nov 2009 00:49:37 +0000 (16:49 -0800)]
gpllib: mbr: fix grub2 detection
gerth reports that hdt-0.3.6 doesn't detect grub2 anymore.
It looks like some break were missing in the case statement.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Erwan Velu [Sat, 21 Nov 2009 11:37:08 +0000 (12:37 +0100)]
hdt: Only copy needed art files
Impact: Reduces binary image size
This commit only copy the needed art files to put in the floppy/iso
images.
Erwan Velu [Sat, 21 Nov 2009 11:34:53 +0000 (12:34 +0100)]
hdt: Allow user to override the background image
Impact: none
This commit allow user using vesa=<filename> to override the background
image in vesa mode
Erwan Velu [Fri, 20 Nov 2009 22:14:00 +0000 (23:14 +0100)]
Merge remote branch 'hpa/master'
Erwan Velu [Fri, 20 Nov 2009 21:54:16 +0000 (22:54 +0100)]
hdt: Adding another logo
Impact: none
Adding another logo (black)
Erwan Velu [Fri, 20 Nov 2009 21:50:50 +0000 (22:50 +0100)]
hdt: Adding logo
Impact: none
Adding transparent logo
Erwan Velu [Fri, 20 Nov 2009 21:35:41 +0000 (22:35 +0100)]
hdt: Updating contributors
Impact: Visual
Adding Alexander Andino for design. Adding other contributors's role
Erwan Velu [Fri, 20 Nov 2009 21:33:55 +0000 (22:33 +0100)]
hdt: fixing wrong type
Impact: Avoid compilation error
Fixing return type
Erwan Velu [Fri, 20 Nov 2009 21:13:28 +0000 (22:13 +0100)]
hdt: 0.3.6-pre1
Impact: Pre-release
Releasing 0.3.6-pre1
Erwan Velu [Fri, 20 Nov 2009 21:00:50 +0000 (22:00 +0100)]
hdt: Adding background image for the CLI
Impact: Visual
The cli now features a background image when started in vesa mode
Erwan Velu [Fri, 20 Nov 2009 15:49:42 +0000 (16:49 +0100)]
hdt: Adding vesa mode support
Impact: cli can now be turned into vesa
Using the "vesa" keyword at boot time, you can enable the vesa mode for
the cli.
Erwan Velu [Fri, 20 Nov 2009 15:37:36 +0000 (16:37 +0100)]
hdt: hdt.img must use 8.3 naming
Impact: Loading files is now working again
Prior to that commit, the hdt.img was failing loading files
H. Peter Anvin [Fri, 20 Nov 2009 04:17:43 +0000 (20:17 -0800)]
memdisk: pptr->cd_pkt.sect_count is in virtual sectors
Per the El Torito spec, pptr->cd_pkt.sect_count are in virtual
sectors, i.e. 512-byte sectors.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Shao Miller [Fri, 20 Nov 2009 01:49:34 +0000 (20:49 -0500)]
memdisk: Use boot_lba logic for booting an offset within the disk image
We have two fundamental quantities: the offset of the disk image
itself and the LBA from which we boot. Keep them straight. This
should make at least some no-emulation isos work correctly.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Shao Miller [Fri, 20 Nov 2009 01:20:33 +0000 (20:20 -0500)]
memdisk: Restore DL for INT 13h, AH=15h, DL=floppy
At least PC-DOS requires this to avoid an infinite loop; the DL we
restore is not the same DL that we call the underlying BIOS with, but
rather the original one (before the decrement.) PC-DOS loops over all
the floppies and relies on the call preserving DL in order to advance
the loop.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Fri, 20 Nov 2009 01:17:36 +0000 (17:17 -0800)]
open: close the file descriptor if the file fails to open
Close the file descriptor (freeing the file structure) when opening a
file fails.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Fri, 20 Nov 2009 00:52:11 +0000 (16:52 -0800)]
dprintf: fix uninitialized pointer; return void
Fix an uninitialized pointer bug; return void rather than returning
int like normal printfs... if we're depending on the return value of a
debugging function we're screwed when debugging is disabled.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Thu, 19 Nov 2009 23:33:58 +0000 (15:33 -0800)]
dprintf: fix dprintf() and vdprintf()
Fix incorrect prototype for vdprintf() used in dprintf(), masked by
the non-use of the header file.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Thu, 19 Nov 2009 19:10:54 +0000 (11:10 -0800)]
menu: debugging hooks
Add (disabled) debugging hooks to the menu system.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Thu, 19 Nov 2009 19:10:00 +0000 (11:10 -0800)]
dprintf: a generic debug-to-serial infrastructure
Actually provide real infrastructure for debug-to-serial. Very
useful when debugging fullscreen applications, especially under an
emulator like Qemu.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Pierre-Alexandre Meyer [Thu, 19 Nov 2009 04:25:29 +0000 (20:25 -0800)]
hdt: fix double lines in the menu
Ralf Carl reports some UI glitches in the summary menu
(unnecessary line separator at the bottom).
This patch rewrites the separator logic.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Pierre-Alexandre Meyer [Thu, 19 Nov 2009 04:18:04 +0000 (20:18 -0800)]
hdt: trivial printf fix (CLI)
Remove a typo. This fixes a compilation warning.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Pierre-Alexandre Meyer [Thu, 19 Nov 2009 04:15:55 +0000 (20:15 -0800)]
hdt: more memory corruption fixes
A cli_module_descr can be defined with no modules (only a default
callback). Cf. the syslinux module for instance.
This patch adds a check for NULL structures before trying to dereference them.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Pierre-Alexandre Meyer [Thu, 19 Nov 2009 03:57:31 +0000 (19:57 -0800)]
hdt: fix memory corruption in CLI
Ralf Carl has reported some corruption in the autocompletion feature
of the CLI. This patch fixes it.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Erwan Velu [Wed, 18 Nov 2009 09:52:34 +0000 (10:52 +0100)]
hdt: Using dmi when cpu doesn't support identify
Impact: Avoid free field
On old processors, identify isn't working. In that situation, let's use
the dmi to find the processor model
Erwan Velu [Wed, 18 Nov 2009 09:51:36 +0000 (10:51 +0100)]
hdt: Summary mode use type6 as workaround
Impact: Avoid empty field
The summary mode should also use type6 as fallback of type 17
Erwan Velu [Tue, 17 Nov 2009 16:20:30 +0000 (17:20 +0100)]
hdt: Adding includes to avoid gcc warning
Impact: Avoid warnings at compile time
hdt.c was calling start_cli without including the according .h file
Erwan Velu [Tue, 17 Nov 2009 16:17:17 +0000 (17:17 +0100)]
hdt: Fixing type 6 detection in cli mode
Impact: Type 6 only systems would have been unable to show modules in
cli
This commit is completing
bc6105b409291f0f15bbe99d348e5641a0f7c729
Erwan Velu [Tue, 17 Nov 2009 16:14:34 +0000 (17:14 +0100)]
hdt: Removing dead code, adding comments
Impact: Removing dead code
This code was used in the ancient cli model. That's just dead code.
Let's add a few comments too
Erwan Velu [Tue, 17 Nov 2009 15:19:34 +0000 (16:19 +0100)]
hdt: Summary in cli mode can use type 6
Impact: Show summary displays modules when type 17 isn't available
When dmi type 17 isn't available, the "show summary" command must use
type 6 to show the current memory configuration
H. Peter Anvin [Tue, 17 Nov 2009 05:05:23 +0000 (21:05 -0800)]
Merge branch 'master' into memdisk-iso
H. Peter Anvin [Tue, 17 Nov 2009 02:21:37 +0000 (18:21 -0800)]
isohybrid: make the -offset option actually work
Actually implement the -offset option. Credit for the patch goes to
"cmdr from the gparted-forum", reported by
Sven-Hendrik Haase <sh@lutzhaase.com>.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Erwan Velu [Mon, 16 Nov 2009 16:28:34 +0000 (17:28 +0100)]
hdt: Disabling SERIAL 0 support
Impact: Improves speed
As reported in ticket #24, removing SERIAL output increase performances
Erwan Velu [Mon, 16 Nov 2009 13:12:49 +0000 (14:12 +0100)]
hdt: DMI Type 6 used as a workaround for Type 17
Impact: Allow to have a memory entry when only type 6 is available
Prior to that commit, systems that only featured type 6 weren't able to
display the memory information.
Shao Miller [Mon, 16 Nov 2009 10:36:06 +0000 (10:36 +0000)]
Merge branch 'memdisk-iso-SAFE' into memdisk-iso
Conflicts:
memdisk/memdisk_chs.asm
memdisk/memdisk_edd.asm
memdisk/setup.c
Resolved:
Deleted memdisk/memdisk_chs.asm
Deleted memdisk/memdisk_edd.asm
Modified memdisk/setup.c
Pierre-Alexandre Meyer [Mon, 16 Nov 2009 07:37:12 +0000 (23:37 -0800)]
gpllib: mbr: add detection for Grub2 minor versions
Grub2 v1.96 and v1.97 have different opcodes in their MBR.
Reported-by: gert
This fixes #26.
Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
Pierre-Alexandre Meyer [Mon, 16 Nov 2009 07:31:14 +0000 (23:31 -0800)]
gpllib: mbr: change "Gag" to "GAG"
Reported-by: gert
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Pierre-Alexandre Meyer [Mon, 16 Nov 2009 07:29:28 +0000 (23:29 -0800)]
gpllib: mbr: change "Plop" to "PloP"
Reported-by: gert
Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
Pierre-Alexandre Meyer [Mon, 16 Nov 2009 07:24:37 +0000 (23:24 -0800)]
gpllib: add XOSL mbr detection
Feature request originally reported at
http://sourceforge.net/projects/bootinfoscript/forums/forum/905692/topic/3459317
and forwarded to HDT by gert.
This fixes #25.
Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
H. Peter Anvin [Sat, 14 Nov 2009 05:03:12 +0000 (21:03 -0800)]
mboot.c32: fix the video mode selection algorithm
Make the video mode selection algorithm do what was intended...
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Sat, 14 Nov 2009 04:16:43 +0000 (20:16 -0800)]
mboot.c32: add VESA mode setting support
Add VESA mode setting support per the Multiboot specification.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Sat, 14 Nov 2009 03:18:57 +0000 (19:18 -0800)]
Merge branch 'master' of ssh://terminus.zytor.com/pub/git/syslinux/syslinux
H. Peter Anvin [Fri, 13 Nov 2009 21:40:35 +0000 (13:40 -0800)]
dos: int 25/26 may be register-dirty; wrap them in assembly
int 25h and int 26h are known to be register-dirty for some versions
of DOS -- unlike int 21h, which is usually clean. As such, wrap those
in assembly functions.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Pierre-Alexandre Meyer [Fri, 13 Nov 2009 05:01:44 +0000 (21:01 -0800)]
dmi: fix bank connections information
Ralf Carl reports that bank connections are incomplete (DMI type 6).
Some information was left out during output formatting.
This should fix #23.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Pierre-Alexandre Meyer [Fri, 13 Nov 2009 04:49:51 +0000 (20:49 -0800)]
dmi: fix DMI type 6 output
Ralf Carl reports some garbage in the DMI type 6 output. It appears
that some output formatting wasn't quite right.
This should close #22.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
H. Peter Anvin [Thu, 12 Nov 2009 00:29:53 +0000 (16:29 -0800)]
dos: don't add the linker script twice on the ld command line
My version of the linker can deal with it, but others might not be so
smart.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Thu, 12 Nov 2009 00:28:20 +0000 (16:28 -0800)]
dos: drop unneeded .eh_frame section
gcc will produce an .eh_frame section, which we have no use for.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Thu, 12 Nov 2009 00:05:34 +0000 (16:05 -0800)]
dos: always try the FAT32-aware direct I/O calls first
Always try the FAT32-aware direct I/O calls before trying the legacy
raw I/O calls. The reason for doing this is that the FAT32 stuff may
be implemented as an add-on.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Wed, 11 Nov 2009 23:52:37 +0000 (15:52 -0800)]
dos: DOS version 7.10 is 0x070a, not 0x0710...
Fix DOS version 7.10 (first FAT32-capable version) check.
Perhaps we should just call the FAT32 calls blindly and fall back to
the old calls if they fail?
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Wed, 11 Nov 2009 07:53:30 +0000 (23:53 -0800)]
NEWS: merged hdt 0.3.5
H. Peter Anvin [Wed, 11 Nov 2009 07:52:46 +0000 (23:52 -0800)]
Merge commit 'hdt-0.3.5'
H. Peter Anvin [Wed, 11 Nov 2009 07:51:54 +0000 (23:51 -0800)]
version: next version on this branch will be 3.84
H. Peter Anvin [Wed, 11 Nov 2009 07:51:15 +0000 (23:51 -0800)]
NEWS: document fix for DOS installer
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Wed, 11 Nov 2009 07:50:10 +0000 (23:50 -0800)]
dos: fix the soft-locking loop
Code the soft-locking loop correctly.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Wed, 11 Nov 2009 07:43:19 +0000 (23:43 -0800)]
dos: try to handle both raw DOS mode and Windows mode
The locking API works very different in raw DOS mode and in Windows
mode. The hierarchial locking is only available in the latter mode;
in the former mode we can only use levels 0 and 4.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Wed, 11 Nov 2009 06:09:14 +0000 (22:09 -0800)]
dos: make DOS installer work under WinME
At least under WinME, the DOS installer did not work as advertised.
With these modifications, it seems to work okay.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Erwan Velu [Tue, 10 Nov 2009 22:29:52 +0000 (23:29 +0100)]
hdt: Fixing subrelease
Impact: none
That's an alpha not a pre
Erwan Velu [Tue, 10 Nov 2009 22:18:00 +0000 (23:18 +0100)]
hdt: Generating gzipped content in binary images
Impact: Reduces image size
Floppies & ISO are now using gzipped content to reduce the size
Erwan Velu [Tue, 10 Nov 2009 22:15:53 +0000 (23:15 +0100)]
hdt: Switching to 0.3.6-pre1
Impact: none
Let's work on the future product
Erwan Velu [Tue, 10 Nov 2009 21:28:26 +0000 (22:28 +0100)]
pci: using zfopen instead of fopen
Impact: allow to open gzipped files
This commit allow people using gzipped files
(pci.ids/modules.pcimap/modules.alias)
Erwan Velu [Mon, 9 Nov 2009 10:04:41 +0000 (11:04 +0100)]
hdt: iso/floppy have to be quiet
Impact: Quieten output of hdt
By default, the provided iso/floppies are now quieter.
This will increase the readibility of HDT's output
Erwan Velu [Mon, 9 Nov 2009 09:44:58 +0000 (10:44 +0100)]
pci: Removing useless initialisation
Impact: None
The kernel module count is set to zero when the dev_info is allocated.
Erwan Velu [Mon, 9 Nov 2009 09:42:10 +0000 (10:42 +0100)]
pci: Prevent kernel modules to be listed twice
Impact: Prevent duplicated modules
If both get_module_name_from_pcimap() & get_module_name_from_alias()
are called, we didn't checked if the module we are detecting already got
detected. This leads to a situation where modules got listed twice.
This patch add a test to insure that we aren't adding an already
detected module.
Erwan Velu [Sun, 8 Nov 2009 20:52:07 +0000 (21:52 +0100)]
hdt: 0.3.5
Impact: new release
New release : 0.3.5
Erwan Velu [Sun, 8 Nov 2009 20:38:36 +0000 (21:38 +0100)]
cmenu: Increasing limits
Impact: avoid memory corruption with hdt
Some users reported systems with 89 pci devices. This case requires to
increase theses values
Erwan Velu [Sun, 8 Nov 2009 20:36:02 +0000 (21:36 +0100)]
hdt: Fixing building warning
Impact: Avoid warning during compilation
Avoid warning during gcc compilation
H. Peter Anvin [Sat, 7 Nov 2009 00:44:53 +0000 (16:44 -0800)]
Revert "ansicon: allow to pass page # to write functions"
This reverts commit
e9b317fd0dc87dc93a49bc40520f4bdd0264d746.
(This commit breaks vesamenu, and $DEITY knows what else.)
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Thu, 5 Nov 2009 22:59:15 +0000 (14:59 -0800)]
Merge commit 'sha0/chain_isolinux'
Erwan Velu [Thu, 5 Nov 2009 17:01:44 +0000 (18:01 +0100)]
hdt: Putting auto mode in coherence with cli
Impact: visual
The output generated by the auto mode should stay in coherence with the
default cli mode.
Erwan Velu [Thu, 5 Nov 2009 16:53:50 +0000 (17:53 +0100)]
hdt: Switching debug mode in quiet mode
Impact: "quiet" keyword also a quiet display
quiet is a new keyword to prevent HDT beeing too much verbose
Erwan Velu [Thu, 5 Nov 2009 16:50:06 +0000 (17:50 +0100)]
Revert "Revert "gpllib: Reident fbinst code""
This reverts commit
28d7917dd52b34e2669fa9ad44445124b1d10584.
Erwan Velu [Thu, 5 Nov 2009 16:48:47 +0000 (17:48 +0100)]
Merge remote branch 'pam/hdt-0.3.5'
Erwan Velu [Thu, 5 Nov 2009 16:48:32 +0000 (17:48 +0100)]
Revert "gpllib: Reident fbinst code"
This reverts commit
e4e28b8fd43a971466ff38b243784d20437d6252.
Erwan Velu [Thu, 5 Nov 2009 16:39:20 +0000 (17:39 +0100)]
hdt: Prevent auto mode from using empty commands
Impact: prevent running stupid commands
The code didn't prevents from executing stupid "'" commands
Erwan Velu [Thu, 5 Nov 2009 15:48:28 +0000 (16:48 +0100)]
gpllib: Reident fbinst code
Impact: none
Reindent the fbinst patch
Pierre-Alexandre Meyer [Thu, 5 Nov 2009 06:46:45 +0000 (22:46 -0800)]
hdt: fix arguments parsing
Do not increment the argument counter in the loop after having found
the last auto= argument. It is taken care of by the for.
With it, an extra argument after the auto= string will be ignored.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Pierre-Alexandre Meyer [Thu, 5 Nov 2009 06:11:07 +0000 (22:11 -0800)]
hdt: optimize more_printf macro
disable_more_printf should be set only in auto mode (for now).
Add __likely macro to optimize the code.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Pierre-Alexandre Meyer [Thu, 5 Nov 2009 05:11:42 +0000 (21:11 -0800)]
disklib: add support for detection of the fbinst mbr
Note that fbinst and grub4dos mbrs share the first two bytes.
Patch originally submitted by gerth.
This fixes #20.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Pierre-Alexandre Meyer [Thu, 5 Nov 2009 06:58:09 +0000 (22:58 -0800)]
hdt: add debug option
Pass 'debug' on the kernel command line for the output to be more verbose.
Making hdt quiet is really helpful in auto mode, when a lot of information
is flowing.
This fixes #21.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Pierre-Alexandre Meyer [Thu, 5 Nov 2009 06:46:45 +0000 (22:46 -0800)]
hdt: fix arguments parsing
Do not increment the argument counter in the loop after having found
the last auto= argument. It is taken care of by the for.
With it, an extra argument after the auto= string will be ignored.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Pierre-Alexandre Meyer [Thu, 5 Nov 2009 06:11:07 +0000 (22:11 -0800)]
hdt: optimize more_printf macro
disable_more_printf should be set only in auto mode (for now).
Add __likely macro to optimize the code.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Pierre-Alexandre Meyer [Thu, 5 Nov 2009 05:11:42 +0000 (21:11 -0800)]
disklib: add support for detection of the fbinst mbr
Note that fbinst and grub4dos mbrs share the first two bytes.
Patch originally submitted by gerth.
This fixes #20.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Pierre-Alexandre Meyer [Thu, 5 Nov 2009 05:08:24 +0000 (21:08 -0800)]
Merge commit 'hdt-0.3.5-pre3' into hdt-0.3.5
Erwan Velu [Wed, 4 Nov 2009 20:50:02 +0000 (21:50 +0100)]
hdt: Release 0.3.5-pre3
Impact: new pre-version
Releasing pre3 with reboot & auto= features