上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 164 下一页

2021年12月11日

摘要: Setup If you have worked through all the previous posts in this series, you can cd to your riscv-from-scratch directory and skip this section. If you’ 阅读全文
posted @ 2021-12-11 10:13 tycoon3 阅读(115) 评论(0) 推荐(0)

2021年12月10日

摘要: root@ubuntu:~# riscv64-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=riscv64-linux-gnu-gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/riscv64-linux-g 阅读全文
posted @ 2021-12-10 16:04 tycoon3 阅读(2358) 评论(0) 推荐(0)

2021年12月9日

摘要: kernel:3.6硬件:一般soc会有多个sp804外部timer,假设现在timer0作全部时钟设备,timer1作为clocksource。arm smp local timer。核心数据结构对象:1. struct clock_event_device 时钟设备抽象类型,其中set_next 阅读全文
posted @ 2021-12-09 15:08 tycoon3 阅读(516) 评论(0) 推荐(0)
摘要: 我们看一个wmb()和rmb()的使用例子。我们需要到设备驱动中寻找,就顺便选一个我也不清楚的网卡驱动吧(drivers/net/8139too.c)。 static netdev_tx_t rtl8139_start_xmit (struct sk_buff *skb, struct net_de 阅读全文
posted @ 2021-12-09 10:08 tycoon3 阅读(458) 评论(0) 推荐(0)

2021年12月8日

摘要: 打开everything。 找到你要查找的文件夹路径,方法如下:,在我的电脑里找,如何在地址栏里点击鼠标左键,转换成路径,复制该路径到everything。 切换到everything界面,勾选“搜索”-“匹配路径”。 更换文件夹路径即可搜索其他指定的文件夹内容。 高级搜索 不需要设置everyth 阅读全文
posted @ 2021-12-08 15:43 tycoon3 阅读(1270) 评论(0) 推荐(0)
摘要: DMA与Cache 的一致性 一致性问题 mem中有一块报文,cpu会将这块报文读到cache,cpu再读这块,cache hit。则会从cache中取值。 如果外设是一张网卡,通过DMA 数据传到内存,将红色这块涂成了绿色。内存已经绿了,但是cpu读这块数据却还是红色。造成内存 cache 不一致 阅读全文
posted @ 2021-12-08 09:53 tycoon3 阅读(4452) 评论(0) 推荐(0)

2021年12月7日

摘要: void __init sched_clock_register(u64 (*read)(void), int bits, unsigned long rate) { u64 res, wrap, new_mask, new_epoch, cyc, ns; u32 new_mult, new_shi 阅读全文
posted @ 2021-12-07 20:53 tycoon3 阅读(174) 评论(0) 推荐(0)
摘要: /** * @file lkm.c * @author Dmytro Shytyi * @date 14 Octobre 2018 * @version 0.1 * @brief A "Hello World!" loadable kernel module (LKM) that sends Hel 阅读全文
posted @ 2021-12-07 11:45 tycoon3 阅读(404) 评论(0) 推荐(0)

2021年12月6日

摘要: snprintf(bp->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x", bp->pdev->name, bp->pdev->id); 阅读全文
posted @ 2021-12-06 14:36 tycoon3 阅读(138) 评论(0) 推荐(0)

2021年12月4日

摘要: 这部分线性buffer 由以上四个指针控制,分割成三个部分,这四个指针都指向线性buffer 中的位置: head 到data 之间,称为headroom. data 到tail 之间,存放包的数据。 tail 到end 之间,称为tailroom. 由于 TCP/IP 协议族是一种分层的协议,传输 阅读全文
posted @ 2021-12-04 11:08 tycoon3 阅读(457) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 164 下一页

导航