diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-06-15 23:03:05 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-06-15 23:03:05 -0400 |
commit | 0b60a062da0c28ed4779ab707c64dde6d3af8ef1 (patch) | |
tree | f9b4672315245ab52c2f59c94718c66522087b87 /src/biosvar.h | |
parent | 4d863fe762bac06f77e1884741f1ab48b27c64bc (diff) | |
download | seabios-hppa-0b60a062da0c28ed4779ab707c64dde6d3af8ef1.zip seabios-hppa-0b60a062da0c28ed4779ab707c64dde6d3af8ef1.tar.gz seabios-hppa-0b60a062da0c28ed4779ab707c64dde6d3af8ef1.tar.bz2 |
Unify mode16/32 compiler checks.
Add ASSERT16/ASSERT32 macros to farptr.h.
Use those macros in place of open-coded checks.
Add "noreturn" attribute to functions to reduce compiler warnings.
Add ASSERT32 to smp_probe() to eliminate 16bit assembler warnings.
Diffstat (limited to 'src/biosvar.h')
-rw-r--r-- | src/biosvar.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/biosvar.h b/src/biosvar.h index c0b46cc..821aa35 100644 --- a/src/biosvar.h +++ b/src/biosvar.h @@ -248,9 +248,7 @@ static inline u16 get_ebda_seg() { static inline struct extended_bios_data_area_s * get_ebda_ptr() { - extern void *__force_link_error__get_ebda_ptr_only_in_32bit(); - if (MODE16) - return __force_link_error__get_ebda_ptr_only_in_32bit(); + ASSERT32(); return MAKE_FLATPTR(get_ebda_seg(), 0); } #define GET_EBDA2(eseg, var) \ @@ -279,9 +277,7 @@ static inline u16 get_global_seg() { #define GET_GLOBAL(var) \ GET_VAR(GLOBAL_SEGREG, (var)) #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(); \ + ASSERT32(); \ (var) = (val); \ } while (0) |