2008-04-28 17:12:44 +08:00
|
|
|
/*
|
|
|
|
* Generate definitions needed by the preprocessor.
|
|
|
|
* This code generates raw asm output which is post-processed
|
|
|
|
* to extract and format the required data.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define __GENERATING_BOUNDS_H
|
|
|
|
/* Include headers that define the enum constants of interest */
|
2008-04-28 17:12:48 +08:00
|
|
|
#include <linux/page-flags.h>
|
2008-04-28 17:12:44 +08:00
|
|
|
|
|
|
|
#define DEFINE(sym, val) \
|
|
|
|
asm volatile("\n->" #sym " %0 " #val : : "i" (val))
|
|
|
|
|
|
|
|
#define BLANK() asm volatile("\n->" : : )
|
|
|
|
|
|
|
|
void foo(void)
|
|
|
|
{
|
|
|
|
/* The enum constants to put into include/linux/bounds.h */
|
2008-04-28 17:12:48 +08:00
|
|
|
DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS);
|
2008-04-28 17:12:44 +08:00
|
|
|
/* End of constants */
|
|
|
|
}
|