setup.c (6b93f350e55f3f2ee071dd41109d936abfba8ebf) | setup.c (abe8dbab8f9f8370c26e7b79b49ed795c1b6b70f) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 1995 Linus Torvalds 4 * 5 * This file contains the setup_arch() code, which handles the architecture-dependent 6 * parts of early kernel initialization. 7 */ 8#include <linux/acpi.h> --- 1019 unchanged lines hidden (view full) --- 1028 * 1029 * Unconditionally reserve the entire first 1M of RAM because BIOSes 1030 * are known to corrupt low memory and several hundred kilobytes are not 1031 * worth complex detection what memory gets clobbered. Windows does the 1032 * same thing for very similar reasons. 1033 * 1034 * Moreover, on machines with SandyBridge graphics or in setups that use 1035 * crashkernel the entire 1M is reserved anyway. | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 1995 Linus Torvalds 4 * 5 * This file contains the setup_arch() code, which handles the architecture-dependent 6 * parts of early kernel initialization. 7 */ 8#include <linux/acpi.h> --- 1019 unchanged lines hidden (view full) --- 1028 * 1029 * Unconditionally reserve the entire first 1M of RAM because BIOSes 1030 * are known to corrupt low memory and several hundred kilobytes are not 1031 * worth complex detection what memory gets clobbered. Windows does the 1032 * same thing for very similar reasons. 1033 * 1034 * Moreover, on machines with SandyBridge graphics or in setups that use 1035 * crashkernel the entire 1M is reserved anyway. |
1036 * 1037 * Note the host kernel TDX also requires the first 1MB being reserved. |
|
1036 */ 1037 x86_platform.realmode_reserve(); 1038 1039 init_mem_mapping(); 1040 1041 idt_setup_early_pf(); 1042 1043 /* --- 181 unchanged lines hidden --- | 1038 */ 1039 x86_platform.realmode_reserve(); 1040 1041 init_mem_mapping(); 1042 1043 idt_setup_early_pf(); 1044 1045 /* --- 181 unchanged lines hidden --- |