![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux内核
文章平均质量分 88
Konwledging
这个作者很懒,什么都没留下…
展开
-
Linux Kernel编译流程 (二)
1 vmlinux研究vmlinux文件的产生, zImage和Image产生Linux Kernel 4.18.20Source Insight 3.51.1 find all target首先当我们执行sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-命令后, 默认的target是all,所以我们首先在顶层Makefile中找到all, 发现如下代码片段cfg: u-boot.cfgall: $(ALL-y) cfg $(call原创 2021-01-19 19:36:35 · 1672 阅读 · 3 评论 -
Linux Kernel 编译流程 (一)
1 .config 文件产生研究Linux Kernel .config文件的产生, 添加自己的配置Linux Kernel 4.18.20Source Insight 3.51.1 find %config当我们执行sudo make ARCH=arm vexpress_defconfig命令行后,make会进入顶层Makefile文件,执行下面的语句. 而%config依赖scripts_basic 和 ouputmakefile, 所以我问首先去看scripts_basic#SRCAR原创 2021-01-18 23:28:25 · 2371 阅读 · 0 评论 -
linux内核同步
Linux并发控制(看内核源码....)1.linux并发与竞态在linux设备驱动中--存在多个进程对资源共享并发访问,并发会导致竞态。并发--多个执行单元同时、并行被执行,而执行单元对共享资源的访问会导致竞态。竞态出现的情况:1.SMP对称多处理(Symmetrical Multi-Processing)的多个CPU---cpu与cpu之间,进程与进程之间,中断与中翻译 2017-07-28 16:44:13 · 262 阅读 · 0 评论 -
Linux内核中DMA分析
DMA---直接内存访问用来在设备内存与主存RAM之间直接进行数据交换,这个过程无需CPU干预,对于系统中有大量数据交换的设备而言,如果能够充分利用DMA特性,可以大大提高系统性能。1.内核中DMA层--内核为设备驱动程序提供了统一的DMA接口,这些接口屏蔽了不同平台之间的差异。--一致性映射类型的dma_alloc_coherent/流式映射类型的dma_map_si原创 2017-09-04 20:39:20 · 6398 阅读 · 1 评论 -
x86 privilege introduce
1.Concept of privilege The concept of privilege is implemented by assigning a value from zero to three to key objects recognized by the processor.This value is called the privilege level. ● ...原创 2019-02-19 14:59:17 · 217 阅读 · 0 评论