You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
497 B
20 lines
497 B
17 years ago
|
/*
|
||
|
* 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 */
|
||
|
|
||
|
#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 */
|
||
|
/* End of constants */
|
||
|
}
|