forked from FourierSignal/Hello-World
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathe820 map
More file actions
28 lines (15 loc) · 825 Bytes
/
Copy pathe820 map
File metadata and controls
28 lines (15 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
arch/x86/kernel/e820.c
passing e820map from bootloader to kernel:
only first 128 E820 memory entries via boot_params.e820_map ( due to size limitation of struct boot_params )
remaining are passed via SETUP_E820_EXT node(linked list of type struct setup_data )
e820 ---> e820_saved
map from BIOS(e820) ---->gets modified (based on kernel's cmdline)-->e820_saved
(sanitize_e820_map,append_e820_map,__e820_update_range,e820_remove_range...etc)- modifies map
/proc/iomem -----------> e820
/sys/firmware/memmap --> e820_saved
memory map is used as base for kexec'ed kernel
/arch/x86/kernel/setup.c
efi-loader
the efi memmap, systab, etc.are passed in
the initialization code path of booting(in efi case) is determined by the global-->efi_enabled.
setup_arch ----> architecture-specific boot-time initializations