]>
Commit | Line | Data |
---|---|---|
700efc1b EB |
1 | /* |
2 | * linux/arch/i386/kernel/head32.c -- prepare to run common code | |
3 | * | |
4 | * Copyright (C) 2000 Andrea Arcangeli <andrea@suse.de> SuSE | |
5 | * Copyright (C) 2007 Eric Biederman <ebiederm@xmission.com> | |
6 | */ | |
7 | ||
8 | #include <linux/init.h> | |
9 | #include <linux/start_kernel.h> | |
10 | ||
a4c81cf6 YL |
11 | #include <asm/setup.h> |
12 | #include <asm/sections.h> | |
13 | #include <asm/e820.h> | |
14 | #include <asm/bios_ebda.h> | |
3e1e9002 | 15 | #include <asm/trampoline.h> |
a4c81cf6 | 16 | |
700efc1b EB |
17 | void __init i386_start_kernel(void) |
18 | { | |
3e1e9002 RW |
19 | reserve_trampoline_memory(); |
20 | ||
93dbda7c | 21 | reserve_early(__pa_symbol(&_text), __pa_symbol(&__bss_stop), "TEXT DATA BSS"); |
a4c81cf6 YL |
22 | |
23 | #ifdef CONFIG_BLK_DEV_INITRD | |
24 | /* Reserve INITRD */ | |
25 | if (boot_params.hdr.type_of_loader && boot_params.hdr.ramdisk_image) { | |
26 | u64 ramdisk_image = boot_params.hdr.ramdisk_image; | |
27 | u64 ramdisk_size = boot_params.hdr.ramdisk_size; | |
28 | u64 ramdisk_end = ramdisk_image + ramdisk_size; | |
29 | reserve_early(ramdisk_image, ramdisk_end, "RAMDISK"); | |
30 | } | |
31 | #endif | |
a4c81cf6 YL |
32 | reserve_ebda_region(); |
33 | ||
34 | /* | |
35 | * At this point everything still needed from the boot loader | |
36 | * or BIOS or kernel text should be early reserved or marked not | |
37 | * RAM in e820. All other memory is free game. | |
38 | */ | |
39 | ||
700efc1b EB |
40 | start_kernel(); |
41 | } |