摘要:
call_constructors这个函数是干啥的?简单了解一下 1 static void call_constructors(void) { 2 void **ctor;//我的天,上来一个指针的指针 3 4 ctor = &__ctor_list;//某个list的取址 5 while (ct 阅读全文
posted @ 2021-08-31 20:57
zhougong12
阅读(141)
评论(0)
推荐(0)
摘要:
heap_init static inline void HEAP_INIT(void) { /* start the heap off with some spare memory in the page allocator */ size_t len; void *ptr = page_firs 阅读全文
posted @ 2021-08-31 18:13
zhougong12
阅读(125)
评论(0)
推荐(0)
摘要:
platform_early_init的分析了 1 void platform_early_init(void) { 2 uart_init_early(); 3 4 printf("stat 0x%x\n", *REG32(0xffd05000)); 5 6 /* initialize the i 阅读全文
posted @ 2021-08-31 14:51
zhougong12
阅读(167)
评论(0)
推荐(0)
摘要:
好哦,前面分析到了arch_early_init 1 void arch_early_init(void) { 2 /* turn off the cache */ 3 arch_disable_cache(UCACHE);//关闭cache,不想细看了 4 #if WITH_DEV_CACHE_P 阅读全文
posted @ 2021-08-31 13:53
zhougong12
阅读(173)
评论(0)
推荐(0)