摘要:
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r9") 在U-Boot的源码中,使用了寄存器r9来表示全局数据结构gd。 那么,到底应该如何定义一个寄存器变量呢?从GCC的使用手册中可知,定义如下: register 阅读全文
posted @ 2021-11-14 23:48
我是二狗
阅读(403)
评论(0)
推荐(0)
摘要:
top = rounddown(top-sizeof(struct global_data), 16); //其中 #define rounddown(x, y) ( \ { \ typeof(x) __x = (x); \ __x - (__x % (y)); \ } \ ) 宏定义中: x表示要 阅读全文
posted @ 2021-11-14 23:19
我是二狗
阅读(256)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2021-11-14 20:41
我是二狗
阅读(59)
评论(0)
推荐(0)

浙公网安备 33010602011771号