profile/ivi/syslinux.git
14 years agoMerge remote branch 'origin/acpi' into chouffe
Erwan Velu [Mon, 7 Dec 2009 09:48:20 +0000 (10:48 +0100)]
Merge remote branch 'origin/acpi' into chouffe

14 years agohdt: Switching to alpha 0.4.0 (chouffe)
Erwan Velu [Mon, 7 Dec 2009 09:47:46 +0000 (10:47 +0100)]
hdt: Switching to alpha 0.4.0 (chouffe)

Impact: new version

Let's work on 0.4.0

14 years agoMerge branch 'master' of ssh://terminus.zytor.com//pub/git/users/erwan/hdt into acpi
Erwan Velu [Mon, 7 Dec 2009 09:27:51 +0000 (10:27 +0100)]
Merge branch 'master' of ssh://terminus.zytor.com//pub/git/users/erwan/hdt into acpi

14 years agohdt: More info in show madt
Erwan Velu [Mon, 7 Dec 2009 09:25:51 +0000 (10:25 +0100)]
hdt: More info in show madt

Impact: hdt display more info about madt

Madt is now more describes during the boot

14 years agohdt: Fixing make release target
Erwan Velu [Fri, 4 Dec 2009 16:40:06 +0000 (17:40 +0100)]
hdt: Fixing make release target

Impact: fixing com32 naming

Make release now generates the .c32 file accordingly to the scheme

14 years agohdt: New release 0.3.6
Erwan Velu [Fri, 4 Dec 2009 16:29:55 +0000 (17:29 +0100)]
hdt: New release 0.3.6

Impact: new release

New release, thx to everyone for making that release possible

14 years agohdt: Fixing about menu & show hdt
Erwan Velu [Fri, 4 Dec 2009 15:58:12 +0000 (16:58 +0100)]
hdt: Fixing about menu & show hdt

Impact: visual

Let's add website, rename contact to mailing list and put all people
together

14 years agohdt: Fixing memory corruption in kernel>show
Erwan Velu [Wed, 2 Dec 2009 21:31:18 +0000 (22:31 +0100)]
hdt: Fixing memory corruption in kernel>show

Impact: Fixing memory corruption

Fixing memory corruption which occurs during kernel>show
This patch makes the init cleaner.

14 years agoacpi: Adding madt apic structures
Erwan Velu [Fri, 4 Dec 2009 11:30:19 +0000 (12:30 +0100)]
acpi: Adding madt apic structures

Impact: Adding more madt apic structures

Adding IO_APIC, INTERRUPT_SOURCE_OVERRIDE, NMI,
LOCAL_APIC_NMI_STRUCTURE,  LOCAL_APIC_ADDRESS_OVERRIDE_STRUCTURE,
IO_SAPIC, LOCAL_SAPIC

14 years agohdt: Adding FACS
Erwan Velu [Thu, 3 Dec 2009 21:39:28 +0000 (22:39 +0100)]
hdt: Adding FACS

Impact: Adding facs

Adding FACS

14 years agoacpi: Adding FACS, fixing DSDT detection
Erwan Velu [Thu, 3 Dec 2009 20:53:54 +0000 (21:53 +0100)]
acpi: Adding FACS, fixing DSDT detection

Impact: Adding FACS, fixing DSDT detection

Adding FACS, fixing DSDT detection via FADT

14 years agoacpi: Filling FADT structure
Erwan Velu [Thu, 3 Dec 2009 14:05:59 +0000 (15:05 +0100)]
acpi: Filling FADT structure

Impact: completing FADT implementation

Filling FADT structure

14 years agohdt: Adding ACPI ecdt
Erwan Velu [Thu, 3 Dec 2009 10:11:09 +0000 (11:11 +0100)]
hdt: Adding ACPI ecdt

Impact: Adding ecdt

Adding ecdt in ACPI

14 years agoacpi: Adding ecdt
Erwan Velu [Thu, 3 Dec 2009 10:10:38 +0000 (11:10 +0100)]
acpi: Adding ecdt

Impact: Addding ecdt

Adding ecdt

14 years agohdt: Adding ACPI SBST
Erwan Velu [Thu, 3 Dec 2009 09:17:28 +0000 (10:17 +0100)]
hdt: Adding ACPI SBST

impact: Adding SBST

Adding SBST display

14 years agoacpi: Adding SBST
Erwan Velu [Thu, 3 Dec 2009 09:14:01 +0000 (10:14 +0100)]
acpi: Adding SBST

Impact: Adding SBST

Adding SBST

14 years agoacpi: Using definitions for table names
Erwan Velu [Thu, 3 Dec 2009 08:50:03 +0000 (09:50 +0100)]
acpi: Using definitions for table names

Impact: none

Using more definitions for ACPI tables names

14 years agohdt: Improving ACPI output
Erwan Velu [Wed, 2 Dec 2009 16:12:55 +0000 (17:12 +0100)]
hdt: Improving ACPI output

Impact: Improving ACPI output

Improving acpi output

14 years agoacpi: Adding SSDT & PSDT
Erwan Velu [Wed, 2 Dec 2009 15:52:34 +0000 (16:52 +0100)]
acpi: Adding SSDT & PSDT

Impact: Adding SSDT & PSDT

Adding SSDT & PSDT

14 years agohdt: Adding DSDT
Erwan Velu [Wed, 2 Dec 2009 14:57:22 +0000 (15:57 +0100)]
hdt: Adding DSDT

Impact: Adding DSDT

Adding DSDT

14 years agoacpi: Adding dsdt
Erwan Velu [Wed, 2 Dec 2009 14:56:17 +0000 (15:56 +0100)]
acpi: Adding dsdt

Impact: Adding dsdt

Adding DSDT

14 years agohdt: Adding madt
Erwan Velu [Wed, 2 Dec 2009 14:40:44 +0000 (15:40 +0100)]
hdt: Adding madt

Impact: Adding madt

Adding MADT

14 years agoacpi: Fixing madt detection
Erwan Velu [Wed, 2 Dec 2009 14:40:11 +0000 (15:40 +0100)]
acpi: Fixing madt detection

Impact: Fixing madt detection

Fixing madt detection

14 years agohdt: Adding FADT
Erwan Velu [Wed, 2 Dec 2009 13:55:26 +0000 (14:55 +0100)]
hdt: Adding FADT

Impact: Adding FADT

Adding FADT

14 years agoacpi: Adding FADT
Erwan Velu [Wed, 2 Dec 2009 13:54:53 +0000 (14:54 +0100)]
acpi: Adding FADT

Impact: Adding FADT

Adding FADT

14 years agohdt: Adding xsdt
Erwan Velu [Wed, 2 Dec 2009 13:25:16 +0000 (14:25 +0100)]
hdt: Adding xsdt

Impact: Adding xsdt

Adding XSDT

14 years agoacpi: Adding xsdt
Erwan Velu [Wed, 2 Dec 2009 13:24:17 +0000 (14:24 +0100)]
acpi: Adding xsdt

Impact: Adding XSDT

Adding XSDT

14 years agohdt: adding a simple way to print acpi headers
Erwan Velu [Wed, 2 Dec 2009 12:05:12 +0000 (13:05 +0100)]
hdt: adding a simple way to print acpi headers

Impact: none

Adding a unified method to display acpi hearders

14 years agoacpi: Adding missing rsdt.c
Erwan Velu [Wed, 2 Dec 2009 12:04:47 +0000 (13:04 +0100)]
acpi: Adding missing rsdt.c

Impact: addding missing file

Adding missing rsdt.c file

14 years agoacpi: Adding rsdt, cleaning structures
Erwan Velu [Wed, 2 Dec 2009 12:04:12 +0000 (13:04 +0100)]
acpi: Adding rsdt, cleaning structures

Impact: adding rsdt

Adding RSDT

14 years agoacpi: Return success value
Erwan Velu [Wed, 2 Dec 2009 10:14:41 +0000 (11:14 +0100)]
acpi: Return success value

Impact: defining a success return value

Success have to return a defined value

14 years agohdt: Adding basic ACPI mode
Erwan Velu [Wed, 2 Dec 2009 10:13:58 +0000 (11:13 +0100)]
hdt: Adding basic ACPI mode

Impact: new acpi mode

Adding a new ACPI mode, still lots of work to do

14 years agoacpi: Fixing parsing
Erwan Velu [Tue, 1 Dec 2009 15:26:16 +0000 (16:26 +0100)]
acpi: Fixing parsing

Impact: none

Parsing have to be done the spec says ;)
Let's found the RSDP first

14 years agoacpi: Adding MADT address
Erwan Velu [Tue, 1 Dec 2009 10:10:13 +0000 (11:10 +0100)]
acpi: Adding MADT address

Impact:

Adding MADT address in structure

14 years agoacpi: more work on the madt structures
Erwan Velu [Mon, 30 Nov 2009 23:08:15 +0000 (00:08 +0100)]
acpi: more work on the madt structures

Impact: under dev.

Fixing madt structure & parsing

14 years agoacpi: Fixing MADT structures
Erwan Velu [Mon, 30 Nov 2009 19:41:36 +0000 (20:41 +0100)]
acpi: Fixing MADT structures

Impact: Fixing MADT structures

Fixing MADT structures

14 years agoacpi: Initial stuff to find madt
Erwan Velu [Mon, 30 Nov 2009 16:09:20 +0000 (17:09 +0100)]
acpi: Initial stuff to find madt

Impact: adding madt stuff

Trying to add some madt stuff

14 years agohdt: Fixing memtest entry
Erwan Velu [Mon, 30 Nov 2009 23:11:25 +0000 (00:11 +0100)]
hdt: Fixing memtest entry

Impact: none

Fixing memtest entry

14 years agohdt: Makefile isn't gzipping pci.ids
Erwan Velu [Mon, 30 Nov 2009 19:47:45 +0000 (20:47 +0100)]
hdt: Makefile isn't gzipping pci.ids

Impact: avoid missed gzipping

The iso wasn't gzipping pci.ids correctly

14 years agodmi: dmitest have to use voltage_mv
Erwan Velu [Mon, 30 Nov 2009 17:44:36 +0000 (18:44 +0100)]
dmi: dmitest have to use voltage_mv

Impact: fixing build error

Processor is now using voltage_mv

14 years agohdt: summary mode only show memory size
Erwan Velu [Mon, 30 Nov 2009 14:57:41 +0000 (15:57 +0100)]
hdt: summary mode only show memory size

Impact: visual

Summary mode only show the detected memory size.
Showing used banks is too much verbose for a summary

14 years agohdt: Adding cpu voltage
Erwan Velu [Mon, 30 Nov 2009 12:26:39 +0000 (13:26 +0100)]
hdt: Adding cpu voltage

Impact: Adding cpu voltage

Adding cpu voltage via DMI

14 years agodmi: Switching processor voltage from V to mV
Erwan Velu [Mon, 30 Nov 2009 12:25:00 +0000 (13:25 +0100)]
dmi: Switching processor voltage from V to mV

Impact: Changing units

Processor voltage is now millivolts

14 years agodmi: more chassis types
Erwan Velu [Mon, 30 Nov 2009 12:01:58 +0000 (13:01 +0100)]
dmi: more chassis types

Impact: more chassis types

More DMI chassis types

14 years agodmi: returning out of spec instead of NULL
Erwan Velu [Mon, 30 Nov 2009 11:59:04 +0000 (12:59 +0100)]
dmi: returning out of spec instead of NULL

Impact: avoid null string

It's better returning out of spec instead of null

14 years agodmi: More processors
Erwan Velu [Mon, 30 Nov 2009 11:55:12 +0000 (12:55 +0100)]
dmi: More processors

Impact: More processors

More processors in the DMI table

14 years agohdt: Fixing history cycling
Erwan Velu [Mon, 30 Nov 2009 11:39:08 +0000 (12:39 +0100)]
hdt: Fixing history cycling

Impact: prior to that commit, cycling the history failed

When we enter more than 32 commands, let's cycle the history

14 years agohdt: Using del_multi_spaces for the cpu model
Erwan Velu [Mon, 30 Nov 2009 11:27:37 +0000 (12:27 +0100)]
hdt: Using del_multi_spaces for the cpu model

Impact: avoid multi spaces in the cpu model

Some cpu vendors like to put multi spaces in the model name.
We don't need it for a cleaner & shorter display

14 years agodmi: More cpu upgrade options
Erwan Velu [Mon, 30 Nov 2009 11:24:40 +0000 (12:24 +0100)]
dmi: More cpu upgrade options

Impact: many cpu upgrade were set out of spec

Fixing stupid typo which prevent cpu upgrade options to be shown

14 years agohdt: removing vendor_id from cpu info
Erwan Velu [Mon, 30 Nov 2009 10:18:36 +0000 (11:18 +0100)]
hdt: removing vendor_id from cpu info

Impact: visual

No need to display the vendor_id as we already show the vendor name.
That confuse users, let's remove it

14 years agopci: replace '-' by '_' in modules names
Erwan Velu [Mon, 30 Nov 2009 10:02:49 +0000 (11:02 +0100)]
pci: replace '-' by '_' in modules names

Impact: avoid kernel modules duplication

In modules.pcimap, kernel modules name are featuring '_' or '-' whereas modules.alias is only using '_'.
To avoid kernel modules duplication, let's rename all '-' by '_' to match what modules.alias provides
This avoid stupid duplications like "a-b" & "a_b" whereas they are in
fact the same kernel module

14 years agohdt: Adding memtest entry in the menu
Erwan Velu [Mon, 30 Nov 2009 09:07:02 +0000 (10:07 +0100)]
hdt: Adding memtest entry in the menu

Imapct: Allow people starting memtest from the menu

Users can now starts memtest for our menu

14 years agohdt: EDD uses hex numbers, not decimal
Erwan Velu [Sun, 29 Nov 2009 20:40:29 +0000 (21:40 +0100)]
hdt: EDD uses hex numbers, not decimal

Impact: Fixing commit 4d2536e76d621bc7c5faa076a905051854f9c512

Commit 4d2536e76d621bc7c5faa076a905051854f9c512 was buggy as considering
EDD as decimal and not hex.

14 years agohdt: Fixing cpu flags splitting
Erwan Velu [Sun, 29 Nov 2009 20:13:00 +0000 (21:13 +0100)]
hdt: Fixing cpu flags splitting

Impact: improve rendering

Under the cli, the cpu flags were sometimes leaking to another line

14 years agoAdding ifcpu.c32, removing ifcpuhvm
Erwan Velu [Sun, 29 Nov 2009 19:48:41 +0000 (20:48 +0100)]
Adding ifcpu.c32, removing ifcpuhvm

Impact: ifcpu holds more cases

ifcpu allow users defining a set of required cpu features for booting an
entry

14 years agohdt: Adding gPXE detection
Erwan Velu [Sun, 29 Nov 2009 14:35:13 +0000 (15:35 +0100)]
hdt: Adding gPXE detection

Impact: gPXE is now detected

HDT is now able to report is gPXE is loaded on this given system

14 years agocom32: Avoid gpxe detection code duplication
Erwan Velu [Sun, 29 Nov 2009 14:20:33 +0000 (15:20 +0100)]
com32: Avoid gpxe detection code duplication

Impact: avoid code duplication

This will make code more generic, hdt will need it ;)

14 years agohdt: Do not display hostbus & interface for EDD<3
Erwan Velu [Sun, 29 Nov 2009 13:38:43 +0000 (14:38 +0100)]
hdt: Do not display hostbus & interface for EDD<3

Impact: Avoid corruption while displaying host bus interface when
EDD<3.0

If EDD < 3.0 displaying host bus & interface for disk devices return
unexpected content. We have to avoid displaying that informations in
such case

14 years agohdt: Fixing wrong Part Number display
Erwan Velu [Sun, 29 Nov 2009 13:14:19 +0000 (14:14 +0100)]
hdt: Fixing wrong Part Number display

Impact: Visual

In the memory bank display, the part number wasn't correctly padded.

14 years agohdt: Keeping symlinks on generated binaries
Erwan Velu [Sun, 29 Nov 2009 13:11:09 +0000 (14:11 +0100)]
hdt: Keeping symlinks on generated binaries

Impact: none

Building binary images let some symlinks useful for testing

14 years agohdt: Preventing agressive disk's size rounding
Erwan Velu [Sun, 29 Nov 2009 13:07:52 +0000 (14:07 +0100)]
hdt: Preventing agressive disk's size rounding

Impact: Visual

Prevent reported case where 1997MB could be displayed as 1GB.

14 years agohdt: Adding memtest is our binary images
Erwan Velu [Sat, 28 Nov 2009 12:22:03 +0000 (13:22 +0100)]
hdt: Adding memtest is our binary images

Impact: memtest is now included

Downloading memtest while generating floppy/iso images

14 years agoFixing comments on ifcpu64/ifcpuhvm
Erwan Velu [Fri, 27 Nov 2009 21:22:18 +0000 (22:22 +0100)]
Fixing comments on ifcpu64/ifcpuhvm

Impact: Fixing typo

Fixing typo

14 years agoAdding ifcpuhvm.c32
Erwan Velu [Fri, 27 Nov 2009 21:12:40 +0000 (22:12 +0100)]
Adding ifcpuhvm.c32

Impact: new module to boot hvm systems

This module allow users to define a boot entry regarding if the cpu is
supporting hvm (vmx|svm). This could used to boot xen, or any hypervisor

14 years agohdt: Fixing cpu cores naming
Erwan Velu [Fri, 27 Nov 2009 19:41:16 +0000 (20:41 +0100)]
hdt: Fixing cpu cores naming

Impact: Visual

Fixing cpu cores naming

14 years agohdt: Adding 'release' target to Makefil
Erwan Velu [Fri, 27 Nov 2009 19:30:51 +0000 (20:30 +0100)]
hdt: Adding 'release' target to Makefil

Impact: Automate releasing files

'make release' will generate the proper binaries

14 years agohdt: 0.3.6-pre2
Erwan Velu [Fri, 27 Nov 2009 19:21:05 +0000 (20:21 +0100)]
hdt: 0.3.6-pre2

Impact: new subrelease

New subrelease

14 years agohdt: Adding cpu cache management
Erwan Velu [Fri, 27 Nov 2009 19:11:34 +0000 (20:11 +0100)]
hdt: Adding cpu cache management

Impact: Adding cpu cache

CPU cache is now visible from HDT

14 years agocpuid: Adding L1 & L2 cache detection
Erwan Velu [Fri, 27 Nov 2009 18:47:46 +0000 (19:47 +0100)]
cpuid: Adding L1 & L2 cache detection

Impact: Adding L1 & L2 cache detection

Adding L1 & L2 cache detection

14 years agohdt: Fixing memory detection
Erwan Velu [Fri, 27 Nov 2009 15:09:01 +0000 (16:09 +0100)]
hdt: Fixing memory detection

Impact: Fix memory detection under cli

Under the CLI, the memory detection wasn't started...
This commit fixes the memory initialisation path

14 years agohdt: Adding cpu core management
Erwan Velu [Fri, 27 Nov 2009 14:53:07 +0000 (15:53 +0100)]
hdt: Adding cpu core management

Impact: we now display the number of cores

CPU cores are now displayed

14 years agocpuid: Adding cpu core detection
Erwan Velu [Fri, 27 Nov 2009 14:44:33 +0000 (15:44 +0100)]
cpuid: Adding cpu core detection

Impact: we are now able to detect the number of cpu cores

We can detect the number of cores using cpuid(4) or cpuid_ecx(0x80000008)

14 years agohdt: Improving cpu flags report
Erwan Velu [Fri, 27 Nov 2009 10:45:46 +0000 (11:45 +0100)]
hdt: Improving cpu flags report

Impact: more cpu flags detected

This commit allow hdt reporting more cpu flags but also simplify from
the developer point of view the cpu flags reporting.
A visual improvement is also done for showing lists of cpu flags.

14 years agocpuid: Adding more flags
Erwan Velu [Fri, 27 Nov 2009 09:10:52 +0000 (10:10 +0100)]
cpuid: Adding more flags

Impact: sync with linux kernel

cpu flags are now in sync with the linux kernel. Too many flags were
missing.

14 years agohdt: show error message when no disk is found
Erwan Velu [Thu, 26 Nov 2009 22:44:22 +0000 (23:44 +0100)]
hdt: show error message when no disk is found

Impact: Visual

Display an error message when no disk is found on the system

14 years agohdt: Adding CODENAME in title (menu.c32)
Erwan Velu [Thu, 26 Nov 2009 22:14:51 +0000 (23:14 +0100)]
hdt: Adding CODENAME in title (menu.c32)

Impact: visual

Let's display the CODENAME in the menu title

14 years agohdt: clear_screen have to reset the xy position
Erwan Velu [Thu, 26 Nov 2009 22:06:35 +0000 (23:06 +0100)]
hdt: clear_screen have to reset the xy position

Impact: visual

This commit avoid clear_screen letting the cursor at the same place
after the clearing. It have to be reset to

14 years agohdt: Auto generating versions for menu mode
Erwan Velu [Thu, 26 Nov 2009 21:25:34 +0000 (22:25 +0100)]
hdt: Auto generating versions for menu mode

Impact: visual

The menu mode now display the current version

14 years agohdt: Adding vesa mode switching under CLI
Erwan Velu [Thu, 26 Nov 2009 20:41:26 +0000 (21:41 +0100)]
hdt: Adding vesa mode switching under CLI

Impact: its now possible to switch the vesa mode

Users can use vesa>enable to switch to vesa mode or
vesa>disable to switch to console mode

14 years agohdt: Improving help messages' display in menu
Erwan Velu [Thu, 26 Nov 2009 20:27:40 +0000 (21:27 +0100)]
hdt: Improving help messages' display in menu

Impact: Visual

Help messages need a space for increasing readbility

14 years agohdt: Improving menu layout
Erwan Velu [Thu, 26 Nov 2009 20:23:07 +0000 (21:23 +0100)]
hdt: Improving menu layout

Impact: visual

Improving layout. Thx gert.

14 years agohdt: Adding a menu for floppy & iso images
Erwan Velu [Thu, 26 Nov 2009 20:07:37 +0000 (21:07 +0100)]
hdt: Adding a menu for floppy & iso images

Impact: none

Floppy & ISO images are now featuring a menu mode.
Thx gert for this idea.

14 years agohdt: Fixing typo in variable's name
Erwan Velu [Thu, 26 Nov 2009 19:14:18 +0000 (20:14 +0100)]
hdt: Fixing typo in variable's name

Impact: Building is working again

Ooops ....

14 years agohdt: Adding novesa for future use
Erwan Velu [Thu, 26 Nov 2009 15:48:35 +0000 (16:48 +0100)]
hdt: Adding novesa for future use

Impact: none

In a close future, as vesa will be enabled by default, let's anticipate
the novesa command

14 years agohdt: print_history have to use more_printf
Erwan Velu [Wed, 25 Nov 2009 23:01:12 +0000 (00:01 +0100)]
hdt: print_history have to use more_printf

Impact: managing scrolling in history()

History can generates some scrolling, so let's use more_printf

14 years agohdt: Fixing history behavior to match bash's one
Erwan Velu [Wed, 25 Nov 2009 22:50:03 +0000 (23:50 +0100)]
hdt: Fixing history behavior to match bash's one

Impact: history usage is more obvious

History (up/down) is more intiutive and copy bash's behavior

14 years agohdt: Adding history command
Erwan Velu [Wed, 25 Nov 2009 22:10:34 +0000 (23:10 +0100)]
hdt: Adding history command

Impact: new command 'history'

This command allow to see the content of the history

14 years agohdt: reworking history to prevent corruption
Erwan Velu [Wed, 25 Nov 2009 21:35:04 +0000 (22:35 +0100)]
hdt: reworking history to prevent corruption

Impact: avoid history corruption

No need to copy history to input. We can directly use the history stack.

14 years agogfxboot.c32 syslinux-3.84-pre5
Steffen Winterfeldt [Thu, 26 Nov 2009 20:00:17 +0000 (21:00 +0100)]
gfxboot.c32

Ok, here is the first try to turn the gfxboot wrapper into a com32 module. I
had to extend the interface to the gfxboot core a bit to get it working. So
it works only with latest gfxboot from

git://gitorious.org/gfxboot/gfxboot.git

Steffen

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
14 years agopcitest: fix wrong statements about file location
Sebastian Herbszt [Fri, 20 Nov 2009 14:42:19 +0000 (15:42 +0100)]
pcitest: fix wrong statements about file location

Impact: Visual

The module tries to access the files in the current directory.
So this patch fixes the error message accordingly.

14 years agogpllibs: Running Nindent
Erwan Velu [Tue, 24 Nov 2009 12:42:41 +0000 (13:42 +0100)]
gpllibs: Running Nindent

Impact: visual

Running Nindent on gpllib / gplinclude

14 years agoMerge branch 'master' of ssh://terminus.zytor.com//pub/git/users/erwan/hdt
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

14 years agohdt: Running Nindent
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

14 years agoMerge remote branch 'pam/hdt-0.3.6'
Erwan Velu [Tue, 24 Nov 2009 09:05:48 +0000 (10:05 +0100)]
Merge remote branch 'pam/hdt-0.3.6'

14 years agohdt: fix memory corruption in the CLI
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>
14 years agomemory: Commenting workaround
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().

14 years agohdt: replacing e88 by 88
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

14 years agohdt: Rounding detected memory size
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

14 years agohdt: Improving memory detection
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

14 years agomemory: Adding memory size detection
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.