sunxi A20 内核源码阅读笔记---记录

今天我决定阅读sunxi a20 cubian的linux内核源代码,首先一头雾水,不知从何开始读起,我想我是做嵌入式,所以我就从arch/arm/plat-sunxi/core.c文件开始读起吧!针对平台的支持,就是从这里开始的,这里会完成所以得初始化,内存,驱动等等,一切从这里开始。

MACHINE_START(SUN7I, "sun7i")
.atag_offset = 0x100,
.timer          = &sw_sys_timer,
.map_io         = sun7i_map_io,
.init_early     = NULL,
.init_irq = gic_init_irq,
.init_machine   = sw_core_init,
.reserve        = sw_core_reserve,
.restart = sun4i_restart,
#ifdef CONFIG_MULTI_IRQ_HANDLER
.handle_irq = gic_handle_irq,
#endif
#ifdef CONFIG_ZONE_DMA
.dma_zone_size = SZ_256M,
#endif
MACHINE_END

这里就是一切的起源。。

猜你喜欢

转载自blog.csdn.net/haozhenghui10/article/details/40157443