bootrom-asm-offsets.c.in

来自「最新版的u-boot,2008-10-18发布」· IN 代码 · 共 13 行

IN
13
字号
/* A little trick taken from the kernel asm-offsets.h where we convert * the C structures automatically into a bunch of defines for use in * the assembly files. */#include <linux/stddef.h>#include <asm/mach-common/bits/bootrom.h>#define _DEFINE(sym, val) asm volatile("\n->" #sym " %0 " #val : : "i" (val))#define DEFINE(s, m) _DEFINE(offset_##s##_##m, offsetof(s, m))int main(int argc, char *argv[])

⌨️ 快捷键说明

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