- 博客(6)
- 资源 (12)
- 问答 (1)
- 收藏
- 关注
原创 DMA 的理解
DMA:Direct Memory Access,直接存储器访问cache一致性的问题CPU ------ Cache ----- 内存 --------- DMA ----- 外设问题1:当CPU访问某一块内存A时,CPU访问的时候,如果cache没有命中,则会将A这块内存里面的数据刷新到cache中,当CPU再次读取A内存的数据发现cache已经命中,直接在cache...
2019-06-12 13:58:00 2060
原创 linux 内核延时
#忙等待:等的时间很短,等的时间不能睡眠void ndelay(unsigned long nsecs)void udelay(unsigned long usecs)在使用ndelay或者udelay的时候CPU是忙等待,会一直占用着CPU的资源睡延时:不消耗CPU资源,在睡眠等待的时候可以让当前task调度出去,让出CPU去执行其他的TASKvoid msleep(unsigned ...
2019-06-06 17:14:24 713
原创 spinlock和mutex的区别
spinlock和mutex两个都是互斥锁,不同的地方是spinlock是忙等待,不支持睡眠mutex是可以睡眠,把当前等待mutex的task置于睡眠等待队列中,等mutex被释放之后再调度。...
2019-06-06 09:43:36 6807
原创 linux 中断底半部机制
中断底半部分为:tasklet, 工作队列,软中断以及threaded_irq软中断是一种传统的底半部处理机制;tasklet是基于软中断实现的,运行于软中断上下文软中断和tasklet运行于软中断上下文,属于原子上下文的一种,而工作队列则运行于进程上下文。软中断和tasklet的处理函数不能睡眠,但是工作队列的处理函数允许睡眠。local_bh_disable()和local_bh_e...
2019-06-04 16:58:59 1116
原创 中断的概念
所谓的中断指的是CPU在执行程序的时候出现了某些异常突发情况,需要紧急处理CPU必须暂停当前的任务去处理紧急突发事件,处理完之后又返回原程序被打断的地方去继续执行。中断分为内部中断和外部中断,内部中断源于CPU内部比如软件中断,栈溢出,段错误等等。外部异常通常是外设的请求。一句中断是否可以被屏蔽分为可屏蔽中断和不可屏蔽中断(NMI)中断下半部分为tasklet,,工作队列,软中断和th...
2019-06-02 18:30:36 1910
CoAP_rfc7252.pdf
2020-12-04
openocd-2020-12-23.pdf
2020-11-24
_install.tar.gz
2020-07-08
busybox-1.31.0.tar.bz2
2020-07-08
Real-Time Embedded Multithreading--Using ThreadX.7z
2019-08-20
简明 Python 教程_cn_en
2018-09-04
Inside the C++ Object Model_english&chinese;
2018-07-27
See mips run
2018-03-17
nand操作时page_size = 2048;
2014-11-25
TA创建的收藏夹 TA关注的收藏夹
TA关注的人