diff options
author | kaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk> | 2005-02-05 15:35:09 +0000 |
---|---|---|
committer | kaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk> | 2005-02-05 15:35:09 +0000 |
commit | e98bfa2604784f43a83ab550c13aa45fe6f19990 (patch) | |
tree | 8f7ff5fbac2b217df07254a9e861b450c693b446 /xen/include/asm-x86/init.h | |
parent | 4fe70c2f8c4c43527fd66fc852bdff6eaaeb33c6 (diff) | |
download | xen-e98bfa2604784f43a83ab550c13aa45fe6f19990.tar.gz xen-e98bfa2604784f43a83ab550c13aa45fe6f19990.tar.bz2 xen-e98bfa2604784f43a83ab550c13aa45fe6f19990.zip |
bitkeeper revision 1.1159.246.3 (4204e7ad2KYRVbyWiC88XmVkIag9Wg)
More common-code movements for ia64.
Signed-off-by: keir.fraser@cl.cam.ac.uk
Diffstat (limited to 'xen/include/asm-x86/init.h')
-rw-r--r-- | xen/include/asm-x86/init.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/xen/include/asm-x86/init.h b/xen/include/asm-x86/init.h new file mode 100644 index 0000000000..8f1e764080 --- /dev/null +++ b/xen/include/asm-x86/init.h @@ -0,0 +1,29 @@ +#ifndef _XEN_ASM_INIT_H +#define _XEN_ASM_INIT_H + +/* + * Mark functions and data as being only used at initialization + * or exit time. + */ +#define __init \ + __attribute__ ((__section__ (".init.text"))) +#define __exit \ + __attribute_used__ __attribute__ ((__section__(".text.exit"))) +#define __initdata \ + __attribute__ ((__section__ (".init.data"))) +#define __exitdata \ + __attribute_used__ __attribute__ ((__section__ (".data.exit"))) +#define __initsetup \ + __attribute_used__ __attribute__ ((__section__ (".setup.init"))) +#define __init_call \ + __attribute_used__ __attribute__ ((__section__ (".initcall.init"))) +#define __exit_call \ + __attribute_used__ __attribute__ ((__section__ (".exitcall.exit"))) + +/* For assembly routines +#define __INIT .section ".text.init","ax" +#define __FINIT .previous +#define __INITDATA .section ".data.init","aw" +*/ + +#endif /* _XEN_ASM_INIT_H */ |