Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163731
b: refs/heads/master
c: 47a3d5d
h: refs/heads/master
i:
  163729: 4c97881
  163727: a2d7d57
v: v3
  • Loading branch information
Thomas Gleixner committed Aug 31, 2009
1 parent a47da41 commit 915fa3b
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dd0a70c8f921708eba29ef9f30dde1f14a74af05
refs/heads/master: 47a3d5da70f411bc044ecd3c0593b158b09d0efa
3 changes: 1 addition & 2 deletions trunk/arch/x86/include/asm/x86_init.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define _ASM_X86_PLATFORM_H

#include <asm/pgtable_types.h>
#include <asm/bootparam.h>

struct mpc_bus;
struct mpc_cpu;
Expand Down Expand Up @@ -34,14 +35,12 @@ struct x86_init_mpparse {
* @probe_roms: probe BIOS roms
* @reserve_resources: reserve the standard resources for the
* platform
* @reserve_ebda_region: reserve the extended bios data area
* @memory_setup: platform specific memory setup
*
*/
struct x86_init_resources {
void (*probe_roms)(void);
void (*reserve_resources)(void);
void (*reserve_ebda_region)(void);
char *(*memory_setup)(void);
};

Expand Down
22 changes: 17 additions & 5 deletions trunk/arch/x86/kernel/head32.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@
#include <asm/trampoline.h>
#include <asm/apic.h>
#include <asm/io_apic.h>
#include <asm/bios_ebda.h>

static void __init i386_default_early_setup(void)
{
/* Initilize 32bit specific setup functions */
x86_init.resources.probe_roms = probe_roms;
x86_init.resources.reserve_resources = i386_reserve_resources;
x86_init.mpparse.setup_ioapic_ids = setup_ioapic_ids_from_mpc;

reserve_ebda_region();
}

void __init i386_start_kernel(void)
{
Expand All @@ -31,12 +42,13 @@ void __init i386_start_kernel(void)
reserve_early(ramdisk_image, ramdisk_end, "RAMDISK");
}
#endif
/* Initilize 32bit specific setup functions */
x86_init.resources.probe_roms = probe_roms;
x86_init.resources.reserve_resources = i386_reserve_resources;
x86_init.mpparse.setup_ioapic_ids = setup_ioapic_ids_from_mpc;

x86_init.resources.reserve_ebda_region();
/* Call the subarch specific early setup function */
switch (boot_params.hdr.hardware_subarch) {
default:
i386_default_early_setup();
break;
}

/*
* At this point everything still needed from the boot loader
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/x86/kernel/head64.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <asm/kdebug.h>
#include <asm/e820.h>
#include <asm/trampoline.h>
#include <asm/bios_ebda.h>

static void __init zap_identity_mappings(void)
{
Expand Down Expand Up @@ -111,7 +112,7 @@ void __init x86_64_start_reservations(char *real_mode_data)
}
#endif

x86_init.resources.reserve_ebda_region();
reserve_ebda_region();

/*
* At this point everything still needed from the boot loader
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/x86/kernel/x86_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ struct __initdata x86_init_ops x86_init = {
.resources = {
.probe_roms = x86_init_noop,
.reserve_resources = reserve_standard_io_resources,
.reserve_ebda_region = reserve_ebda_region,
.memory_setup = default_machine_specific_memory_setup,
},

Expand Down

0 comments on commit 915fa3b

Please sign in to comment.