天天看點

uboot标記清單參數的結構

uboot标記清單的位置計算關鍵在于兩個宏:

#define tag_next(t) ((struct tag *)((u32 *)(t) + (t)->hdr.size))

#define tag_size(type) ((sizeof(struct tag_header) + sizeof(struct type)) >> 2)