X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=kernel%2Fbounds.c;h=3c5301381837407d986f06cddaf665eca71fb412;hb=11df6dddcbc38affb7473aad3d962baf8414a947;hp=9ca2bb30243ccd1580d487d9daaaf148f86c579b;hpb=9223b4190fa1297a59f292f3419fc0285321d0ea;p=safe%2Fjmp%2Flinux-2.6 diff --git a/kernel/bounds.c b/kernel/bounds.c index 9ca2bb3..3c53013 100644 --- a/kernel/bounds.c +++ b/kernel/bounds.c @@ -7,15 +7,13 @@ #define __GENERATING_BOUNDS_H /* Include headers that define the enum constants of interest */ #include - -#define DEFINE(sym, val) \ - asm volatile("\n->" #sym " %0 " #val : : "i" (val)) - -#define BLANK() asm volatile("\n->" : : ) +#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 */ }