aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-01-19 15:33:49 -0500
committerKevin O'Connor <kevin@koconnor.net>2009-01-19 15:33:49 -0500
commita9e286d47ff1872b2d992b246f4bb8d2d2d8f498 (patch)
tree8ea5ea0e59b58ca0ffefdccb0c751f569a8633bc /src
parentfaab1b302a996b41f39dd4457e20542bc5e946b6 (diff)
downloadseabios-hppa-a9e286d47ff1872b2d992b246f4bb8d2d2d8f498.zip
seabios-hppa-a9e286d47ff1872b2d992b246f4bb8d2d2d8f498.tar.gz
seabios-hppa-a9e286d47ff1872b2d992b246f4bb8d2d2d8f498.tar.bz2
Minor - streamline SET_GLOBAL macro - reduce #if usage.
Diffstat (limited to 'src')
-rw-r--r--src/biosvar.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/biosvar.h b/src/biosvar.h
index 5dc113f..2391759 100644
--- a/src/biosvar.h
+++ b/src/biosvar.h
@@ -260,16 +260,12 @@ get_ebda_ptr()
#define GET_GLOBAL(var) \
GET_VAR(CS, (var))
-#if MODE16
-extern void __force_link_error__set_global_only_in_32bit();
-#define SET_GLOBAL(var, val) do { \
- (void)(val); \
- __force_link_error__set_global_only_in_32bit(); \
+#define SET_GLOBAL(var, val) do { \
+ extern void __force_link_error__set_global_only_in_32bit(); \
+ if (MODE16) \
+ __force_link_error__set_global_only_in_32bit(); \
+ (var) = (val); \
} while (0)
-#else
-#define SET_GLOBAL(var, val) \
- do { (var) = (val); } while (0)
-#endif
/****************************************************************