diff options
author | Martin Roth <martinroth@google.com> | 2017-06-24 13:58:52 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-06-28 17:48:49 +0000 |
commit | ebade5dec9e05291f64b0687130d6fbce52270f0 (patch) | |
tree | 91ab2cd850921a58672a0876f385d653a05e906e /src/device/oprom/yabel/mem.c | |
parent | ffdee287df7a294396f1c935e1171dad7c44dbf3 (diff) | |
download | coreboot-ebade5dec9e05291f64b0687130d6fbce52270f0.tar.xz |
device/oprom/yabel: add IS_ENABLED() around Kconfig symbol references
Some of these can be changed from #if to if(), but that will happen
in a follow-on commmit.
Change-Id: I82bf68a7ee54ff88f65aacc9eb0dbc30d013aae0
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/20337
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/device/oprom/yabel/mem.c')
-rw-r--r-- | src/device/oprom/yabel/mem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/oprom/yabel/mem.c b/src/device/oprom/yabel/mem.c index d4221f89c5..86d99826d6 100644 --- a/src/device/oprom/yabel/mem.c +++ b/src/device/oprom/yabel/mem.c @@ -41,10 +41,10 @@ #include "compat/time.h" #include <device/resource.h> -#if !CONFIG_YABEL_DIRECTHW || !CONFIG_YABEL_DIRECTHW +#if !IS_ENABLED(CONFIG_YABEL_DIRECTHW) || !IS_ENABLED(CONFIG_YABEL_DIRECTHW) // define a check for access to certain (virtual) memory regions (interrupt handlers, BIOS Data Area, ...) -#if CONFIG_X86EMU_DEBUG +#if IS_ENABLED(CONFIG_X86EMU_DEBUG) static u8 in_check = 0; // to avoid recursion... static inline void DEBUG_CHECK_VMEM_READ(u32 _addr, u32 _rval) |