summaryrefslogtreecommitdiffstats
path: root/src/include/cpu/x86/lapic.h
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-09-12 21:37:53 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-09-14 10:56:46 +0000
commit505e3f7e852a5f3d9a37b702c9095443e6ad7d44 (patch)
treeca5fb8c9e5b9d40da39bf6ae0310bc23338db156 /src/include/cpu/x86/lapic.h
parentcf49dec4deb5c368ad52a68b4ecb25129694751f (diff)
downloadcoreboot-505e3f7e852a5f3d9a37b702c9095443e6ad7d44.tar.gz
coreboot-505e3f7e852a5f3d9a37b702c9095443e6ad7d44.tar.bz2
coreboot-505e3f7e852a5f3d9a37b702c9095443e6ad7d44.zip
arch/x86: Replace some __PRE_RAM__ use
Change-Id: I4d8db430f8cd0bf0f161fc5cef052f153e59e2bc Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/35390 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include/cpu/x86/lapic.h')
-rw-r--r--src/include/cpu/x86/lapic.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/include/cpu/x86/lapic.h b/src/include/cpu/x86/lapic.h
index 2f40742e03f1..6fd1997e7621 100644
--- a/src/include/cpu/x86/lapic.h
+++ b/src/include/cpu/x86/lapic.h
@@ -58,8 +58,6 @@ static __always_inline void stop_this_cpu(void)
void stop_this_cpu(void);
#endif
-#if !defined(__PRE_RAM__)
-
#define xchg(ptr, v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v), (ptr), \
sizeof(*(ptr))))
@@ -132,6 +130,4 @@ static inline void setup_lapic(void)
struct device;
int start_cpu(struct device *cpu);
-#endif /* !__PRE_RAM__ */
-
#endif /* CPU_X86_LAPIC_H */