diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2009-07-21 21:19:06 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2009-07-21 21:19:06 +0000 |
commit | 4fbefdd1a9c67e3ce2a215192e47278148580c2f (patch) | |
tree | 2e7ca0b42bf30f63c463552a7c40ebefc3ea1c42 /src/cpu/x86/lapic/lapic_cpu_init.c | |
parent | 925b6c0c43b92b4790533b15f78ca824f9130d8b (diff) | |
download | coreboot-4fbefdd1a9c67e3ce2a215192e47278148580c2f.tar.xz |
* rework tsc based timer code to use inb instead of outb for calibration
* Add generic Local APIC based timer code. This timer does not need expensive
calibration and thus reduces the boot time by up to more than a second.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Peter Stuge <peter@stuge.se>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4446 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/cpu/x86/lapic/lapic_cpu_init.c')
-rw-r--r-- | src/cpu/x86/lapic/lapic_cpu_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/x86/lapic/lapic_cpu_init.c b/src/cpu/x86/lapic/lapic_cpu_init.c index 4f910d0caf..6d912e62d4 100644 --- a/src/cpu/x86/lapic/lapic_cpu_init.c +++ b/src/cpu/x86/lapic/lapic_cpu_init.c @@ -55,7 +55,7 @@ static void copy_secondary_start_to_1m_below(void) /* need to save it for RAM resume */ lowmem_backup_size = code_size; lowmem_backup = malloc(code_size); - lowmem_backup_ptr = (unsigned char *)start_eip; + lowmem_backup_ptr = (char *)start_eip; if (lowmem_backup == NULL) die("Out of backup memory\n"); |