diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2016-09-01 12:33:46 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2016-09-01 12:33:46 -0400 |
commit | 0cb7bf61b1e9f05027de58c80f9b46a714d24e35 (patch) | |
tree | 41fb55cf62d07b425122f9a8b96412c0d8eb99c5 /arch/x86/include/asm/realmode.h | |
parent | aa877175e7a9982233ed8f10cb4bfddd78d82741 (diff) | |
parent | 3eab887a55424fc2c27553b7bfe32330df83f7b8 (diff) |
Merge branch 'linus' into smp/hotplug
Apply upstream changes to avoid conflicts with pending patches.
Diffstat (limited to 'arch/x86/include/asm/realmode.h')
-rw-r--r-- | arch/x86/include/asm/realmode.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/x86/include/asm/realmode.h b/arch/x86/include/asm/realmode.h index 9c6b890d5e7a..b2988c0ed829 100644 --- a/arch/x86/include/asm/realmode.h +++ b/arch/x86/include/asm/realmode.h | |||
@@ -58,7 +58,15 @@ extern unsigned char boot_gdt[]; | |||
58 | extern unsigned char secondary_startup_64[]; | 58 | extern unsigned char secondary_startup_64[]; |
59 | #endif | 59 | #endif |
60 | 60 | ||
61 | static inline size_t real_mode_size_needed(void) | ||
62 | { | ||
63 | if (real_mode_header) | ||
64 | return 0; /* already allocated. */ | ||
65 | |||
66 | return ALIGN(real_mode_blob_end - real_mode_blob, PAGE_SIZE); | ||
67 | } | ||
68 | |||
69 | void set_real_mode_mem(phys_addr_t mem, size_t size); | ||
61 | void reserve_real_mode(void); | 70 | void reserve_real_mode(void); |
62 | void setup_real_mode(void); | ||
63 | 71 | ||
64 | #endif /* _ARCH_X86_REALMODE_H */ | 72 | #endif /* _ARCH_X86_REALMODE_H */ |