sections.h

来自「嵌入式系统设计与实例开发实验教材二源码 多线程应用程序设计 串行端口程序设计」· C头文件 代码 · 共 35 行

H
35
字号
/* * BK Id: SCCS/s.sections.h 1.11 09/08/01 15:47:43 paulus */#ifdef __KERNEL__#ifndef _PPC_SECTIONS_H#define _PPC_SECTIONS_H#define __pmac __attribute__ ((__section__ (".text.pmac")))#define __pmacdata __attribute__ ((__section__ (".data.pmac")))#define __pmacfunc(__argpmac) \	__argpmac __pmac; \	__argpmac	#define __prep __attribute__ ((__section__ (".text.prep")))#define __prepdata __attribute__ ((__section__ (".data.prep")))#define __prepfunc(__argprep) \	__argprep __prep; \	__argprep#define __chrp __attribute__ ((__section__ (".text.chrp")))#define __chrpdata __attribute__ ((__section__ (".data.chrp")))#define __chrpfunc(__argchrp) \	__argchrp __chrp; \	__argchrp/* this is actually just common chrp/pmac code, not OF code -- Cort */#define __openfirmware __attribute__ ((__section__ (".text.openfirmware")))#define __openfirmwaredata __attribute__ ((__section__ (".data.openfirmware")))#define __openfirmwarefunc(__argopenfirmware) \	__argopenfirmware __openfirmware; \	__argopenfirmware	#endif /* _PPC_SECTIONS_H */#endif /* __KERNEL__ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?