1 Star 0 Fork 0

冰雪不语 / IceBoot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
atag.h 673 Bytes
一键复制 编辑 原始数据 按行查看 历史
root 提交于 2015-08-09 16:16 . IceBoot
#define ATAG_CORE 0x54410001
#define ATAG_MEM 0x54410002
#define ATAG_CMDLINE 0x54410009
#define ATAG_NONE 0x00000000
struct tag_core {
unsigned int flags;
unsigned int pagesize;
unsigned int rootdev;
};
struct tag_mem32 {
unsigned int size;
unsigned int start;
};
struct tag_cmdline {
char cmdline[1];
};
struct tag_header {
unsigned int size;
unsigned int tag;
};
struct tag {
struct tag_header hdr;
union {
struct tag_core core;
struct tag_mem32 mem;
struct tag_cmdline cmdline;
} u;
};
#define tag_size(type) ((sizeof(struct tag_header) + sizeof(struct type)) >> 2)
#define tag_next(t) ((struct tag *)((unsigned int *)(t) + (t)->hdr.size))
C
1
https://gitee.com/icemute/IceBoot.git
git@gitee.com:icemute/IceBoot.git
icemute
IceBoot
IceBoot
master

搜索帮助