From 5c715ac3c50dd50089ae4d8547e91444874a5a16 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Thu, 14 Aug 2014 19:23:41 +0200 Subject: [PATCH] bootstate: don't use header in romstage code Change-Id: I0c2943bb0889552dc384d8efb5226cd6982a4d81 Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/6663 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan Reviewed-by: Paul Menzel --- src/include/bootstate.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/include/bootstate.h b/src/include/bootstate.h index 46662d5ea7..202acf7d4e 100644 --- a/src/include/bootstate.h +++ b/src/include/bootstate.h @@ -19,6 +19,8 @@ #ifndef BOOTSTATE_H #define BOOTSTATE_H +#if !defined(__SMM__) && !defined(__PRE_RAM__) + #include /* Control debugging of the boot state machine. */ @@ -188,4 +190,5 @@ struct boot_state_init_entry { .bscb = BOOT_STATE_CALLBACK_INIT(func_, arg_), \ } +#endif #endif /* BOOTSTATE_H */