X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=kernel%2Fbounds.c;h=3c5301381837407d986f06cddaf665eca71fb412;hb=58763a297405024d23d8f1d0bba3e6603660c4b6;hp=85bb281858cbb534d23729ccef8dfcea44f4b81b;hpb=1cdf25d704f7951d02a04064c97db547d6021872;p=safe%2Fjmp%2Flinux-2.6 diff --git a/kernel/bounds.c b/kernel/bounds.c index 85bb281..3c53013 100644 --- a/kernel/bounds.c +++ b/kernel/bounds.c @@ -6,14 +6,14 @@ #define __GENERATING_BOUNDS_H /* Include headers that define the enum constants of interest */ - -#define DEFINE(sym, val) \ - asm volatile("\n->" #sym " %0 " #val : : "i" (val)) - -#define BLANK() asm volatile("\n->" : : ) +#include +#include +#include void foo(void) { /* The enum constants to put into include/linux/bounds.h */ + DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS); + DEFINE(MAX_NR_ZONES, __MAX_NR_ZONES); /* End of constants */ }