Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163701
b: refs/heads/master
c: f7cf5a5
h: refs/heads/master
i:
  163699: 47fccf8
v: v3
  • Loading branch information
Thomas Gleixner committed Aug 27, 2009
1 parent e926695 commit 5452950
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 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: 57844a8f8e29802f37ad9a0f94eb11d6ae358603
refs/heads/master: f7cf5a5b8c0e59eac8d30b62271cb0fa52e53ebc
10 changes: 10 additions & 0 deletions trunk/arch/x86/include/asm/x86_init.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
#ifndef _ASM_X86_PLATFORM_H
#define _ASM_X86_PLATFORM_H

/**
* struct x86_init_resources - platform specific resource related ops
* @probe_roms: probe BIOS roms
*
*/
struct x86_init_resources {
void (*probe_roms)(void);
};

/**
* struct x86_init_ops - functions for platform specific setup
*
*/
struct x86_init_ops {
struct x86_init_resources resources;
};

extern struct x86_init_ops x86_init;
Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/x86/kernel/head32.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ 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;

reserve_ebda_region();

/*
Expand Down
4 changes: 1 addition & 3 deletions trunk/arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -835,9 +835,7 @@ void __init setup_arch(char **cmdline_p)
*/
init_hypervisor(&boot_cpu_data);

#ifdef CONFIG_X86_32
probe_roms();
#endif
x86_init.resources.probe_roms();

/* after parse_early_param, so could debug it */
insert_resource(&iomem_resource, &code_resource);
Expand Down
4 changes: 4 additions & 0 deletions trunk/arch/x86/kernel/x86_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ void __cpuinit x86_init_noop(void) { }
* for standard PC hardware.
*/
struct __initdata x86_init_ops x86_init = {

.resources = {
.probe_roms = x86_init_noop,
},
};

0 comments on commit 5452950

Please sign in to comment.