X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fbiosvar.h;h=f2cb47f6238e686eef41d174b54b53582381844f;hb=15157a3c6d5a84088532cf26b631224a18c78cbb;hp=646bd51180189c23dea0293e11816e1096a1e90e;hpb=4e6c9706240a33e13de3da98815d8f4d281a9e9a;p=seabios.git diff --git a/src/biosvar.h b/src/biosvar.h index 646bd51..f2cb47f 100644 --- a/src/biosvar.h +++ b/src/biosvar.h @@ -304,6 +304,22 @@ struct extended_bios_data_area_s { SET_FARVAR(SEG_EBDA, ((struct extended_bios_data_area_s *)0)->var, (val)) +/**************************************************************** + * Global variables + ****************************************************************/ + +#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) \ + __force_link_error__set_global_only_in_32bit() +#else +#define SET_GLOBAL(var, val) \ + do { (var) = (val); } while (0) +#endif + + /**************************************************************** * Bios Config Table ****************************************************************/