<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[dp__mcu的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/dp__mcu</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; dp__mcu]]></copyright><item><title><![CDATA[arm32段+页映射 手撕mmu的行为之软件模拟]]></title><link>https://blog.csdn.net/dp__mcu/article/details/160157070</link><guid>https://blog.csdn.net/dp__mcu/article/details/160157070</guid><author>dp__mcu</author><pubDate>Tue, 14 Apr 2026 21:55:22 +0800</pubDate><description><![CDATA[/步骤1：打印虚拟地址拆分 (硬件行为)pr_info( "真实物理地址 PA = 0x%08lx\n", (unsigned long)virt_to_phys((void *)va) );pr_info("PTE 项地址 = 0x%08x, PTE 值 = 0x%08x\n", (unsigned int)pte, pte_valx );pr_info( "Bit[31:12] 基地址 = 0x%08x\n", (unsigned int)(pgd_valx & 0xFFF00000) );]]></description><category></category></item><item><title><![CDATA[arm32段映射 手动解析之从虚拟地址到内存的物理地址]]></title><link>https://blog.csdn.net/dp__mcu/article/details/160108838</link><guid>https://blog.csdn.net/dp__mcu/article/details/160108838</guid><author>dp__mcu</author><pubDate>Mon, 13 Apr 2026 11:45:48 +0800</pubDate><description><![CDATA[pr_info("真实物理地址 PA virt_to_phys    = 0x%08lx\n", (unsigned long)virt_to_phys((void *)va));pr_info( "Bit[31:12] 基地址 = 0x%08x\n", (unsigned int)(pgd_valx & 0xFFF00000) );pr_info("PGD 基地址        = 0x%08x\n", (unsigned int)pgd_base);// 高12位 → PGD索引。]]></description><category></category></item><item><title><![CDATA[linux head.s 从第一条指令到start_kernel]]></title><link>https://blog.csdn.net/dp__mcu/article/details/160033043</link><guid>https://blog.csdn.net/dp__mcu/article/details/160033043</guid><author>dp__mcu</author><pubDate>Fri, 10 Apr 2026 22:53:05 +0800</pubDate><description><![CDATA[movs 会更新标志位：如果 r2=0（无DTB），则 Z=1，后面不执行。addne    r3, r3, #PAGE_OFFSET    @ r3 = 偏移量 + 0x80000000 = DTB对应的 [虚拟地址]strne    r6, [r3], #1 << PMD_ORDER    @ 把段表项写入页表，映射第一个1MB段，r3 +=4。@ ================= 下面所有指令都带 ne：只有 r2!= 0 才执行 =================]]></description><category></category></item><item><title><![CDATA[mfc实现的贪吃蛇游戏]]></title><link>https://blog.csdn.net/dp__mcu/article/details/159766511</link><guid>https://blog.csdn.net/dp__mcu/article/details/159766511</guid><author>dp__mcu</author><pubDate>Thu, 02 Apr 2026 17:07:41 +0800</pubDate><description><![CDATA[/ ===================== 画蛇：白头白尾 + 蓝身体 + 大紫眼睛 =====================// ===================== 蛇头：白色大箭头 =====================// ===================== 蛇尾：白色箭头 =====================//dc.SetDCBrushColor(RGB(100, 180, 255));// ========== 紫色大眼睛 ==========]]></description><category></category></item><item><title><![CDATA[用户态模拟 kobject]]></title><link>https://blog.csdn.net/dp__mcu/article/details/159651205</link><guid>https://blog.csdn.net/dp__mcu/article/details/159651205</guid><author>dp__mcu</author><pubDate>Mon, 30 Mar 2026 16:41:57 +0800</pubDate><description><![CDATA[/ ========================== kobject 核心 API ==========================// ========================== 主测试 DEMO ==========================// ========================== 热插拔事件 ==========================]]></description><category></category></item><item><title><![CDATA[mtd驱动的探测过程]]></title><link>https://blog.csdn.net/dp__mcu/article/details/159390805</link><guid>https://blog.csdn.net/dp__mcu/article/details/159390805</guid><author>dp__mcu</author><pubDate>Mon, 23 Mar 2026 16:40:29 +0800</pubDate><description><![CDATA[.. 组成一个链表。//chip_map (芯片有效性位图，标记哪些地址有有效 Flash 芯片)//从chip_drvs_list 驱动链表中找到合适的驱动。//memset将临时cfi结构体清零,避免脏数据影响探测结果。只有从dtb匹配通过，才会调用of_flash_probe。//遍历已注册的 MTD芯片驱动链表,匹配驱动名称;]]></description><category></category></item><item><title><![CDATA[qemu模拟的一个内核驱动 io口中断]]></title><link>https://blog.csdn.net/dp__mcu/article/details/159252797</link><guid>https://blog.csdn.net/dp__mcu/article/details/159252797</guid><author>dp__mcu</author><pubDate>Thu, 19 Mar 2026 21:33:37 +0800</pubDate><description><![CDATA[IRQF_TRIGGER_HIGH | IRQF_NO_SUSPEND,  // Level高电平触发（内核自动ACK）&test_irq_dev_id);// dev_id（和free_irq保持一致）// 中断dev_id（必须和request_irq保持一致）free_irq(VIRTUAL_IRQ, &test_irq_dev_id);// 关键：free_irq的dev_id必须和request_irq一致（不能传NULL）// 创建设备类和设备节点（自动生成/dev/qemu-io-intr）]]></description><category></category></item><item><title><![CDATA[qemu启动uboot kernel rootfs，uboot参数可持久化]]></title><link>https://blog.csdn.net/dp__mcu/article/details/159173708</link><guid>https://blog.csdn.net/dp__mcu/article/details/159173708</guid><author>dp__mcu</author><pubDate>Tue, 17 Mar 2026 21:05:17 +0800</pubDate><description><![CDATA[smp 4 \/ #Flash:128 MiB(irq=27)]]></description><category></category></item><item><title><![CDATA[qemu中的qom object对象理解]]></title><link>https://blog.csdn.net/dp__mcu/article/details/158878777</link><guid>https://blog.csdn.net/dp__mcu/article/details/158878777</guid><author>dp__mcu</author><pubDate>Tue, 10 Mar 2026 09:57:33 +0800</pubDate><description><![CDATA[/ ===================== 第一步：定义核心结构体（模拟QOM的Object/Class/Type） =====================// ===================== 第二步：定义核心辅助函数（模拟QEMU的类型检查） =====================// ===================== 第三步：初始化类型和对象（模拟QEMU的设备创建） =====================// 类型名（比如"Device"、"PL181"）]]></description><category></category></item><item><title><![CDATA[elf文件中由一个运行地址定位具体的函数名]]></title><link>https://blog.csdn.net/dp__mcu/article/details/158738022</link><guid>https://blog.csdn.net/dp__mcu/article/details/158738022</guid><author>dp__mcu</author><pubDate>Fri, 06 Mar 2026 15:35:20 +0800</pubDate><description><![CDATA[禁止地址随机化 echo 0 > randomize_va_space。这个地址不是函数的起始地址，在函数的中间位置。addr_offset就是elf中的绝对位置。获取返回地址，从哪个函数调用过来的。比如 = 0x43b564。]]></description><category></category></item><item><title><![CDATA[使用链表实现的层序遍历 - 使用数组]]></title><link>https://blog.csdn.net/dp__mcu/article/details/157136064</link><guid>https://blog.csdn.net/dp__mcu/article/details/157136064</guid><author>dp__mcu</author><pubDate>Mon, 19 Jan 2026 15:02:41 +0800</pubDate><description><![CDATA[printf("原始兄弟关系遍历:\n");printf("再次遍历兄弟关系:\n");printf("\n层序遍历结果: ");printf("节点5的兄弟节点: ");printf("执行层序遍历后:\n");printf("节点5的兄弟节点: ");// 使用队列的层序遍历 - 不修改原结构。// 非递归遍历兄弟节点(不使用栈)// 使用数组模拟队列。// 创建测试树结构。// 定义树节点结构。]]></description><category></category></item><item><title><![CDATA[使用链表实现的层序遍历 - 不使用数组和递归]]></title><link>https://blog.csdn.net/dp__mcu/article/details/157132436</link><guid>https://blog.csdn.net/dp__mcu/article/details/157132436</guid><author>dp__mcu</author><pubDate>Mon, 19 Jan 2026 11:47:09 +0800</pubDate><description><![CDATA[/ 应该输出 2 3 4。// 应该输出 2 3 4。printf("原始兄弟关系遍历:\n");printf("再次遍历兄弟关系:\n");// 使用链表实现的层序遍历 - 不使用数组和递归。printf("\n层序遍历结果: ");printf("节点2的兄弟节点: ");printf("执行层序遍历后:\n");printf("节点2的兄弟节点: ");// 非递归遍历兄弟节点(不使用栈)// 创建链表节点的辅助函数。// 创建测试树结构。// 定义链表节点结构。// 定义树节点结构。]]></description><category></category></item><item><title><![CDATA[linux 块设备驱动程序之helloworld]]></title><link>https://blog.csdn.net/dp__mcu/article/details/157026628</link><guid>https://blog.csdn.net/dp__mcu/article/details/157026628</guid><author>dp__mcu</author><pubDate>Fri, 16 Jan 2026 15:00:11 +0800</pubDate><description><![CDATA[/ 动态分配主设备号。// 使用兼容的请求段迭代方式。// 分配gendisk结构。// 设置gendisk属性。// 动态分配主设备号。// 初始化请求队列。// 添加磁盘到系统。]]></description><category></category></item><item><title><![CDATA[ftpserver的简单实现]]></title><link>https://blog.csdn.net/dp__mcu/article/details/156938432</link><guid>https://blog.csdn.net/dp__mcu/article/details/156938432</guid><author>dp__mcu</author><pubDate>Wed, 14 Jan 2026 10:24:00 +0800</pubDate><description><![CDATA[/ 将IP地址转换为PASV格式。// 忽略SIGPIPE信号，防止程序因连接断开而崩溃。// 计算端口的高字节和低字节。// 获取服务器IP地址。// 设置套接字选项，允许地址重用。// 设置套接字选项，允许地址重用。// 忽略SIGPIPE信号。// 接受客户端连接。// 处理客户端请求。// 设置服务器地址和端口。// 创建TCP套接字。// 设置数据连接地址。// 创建数据套接字。]]></description><category></category></item><item><title><![CDATA[c 模拟一个fat16文件系统2]]></title><link>https://blog.csdn.net/dp__mcu/article/details/156312800</link><guid>https://blog.csdn.net/dp__mcu/article/details/156312800</guid><author>dp__mcu</author><pubDate>Fri, 26 Dec 2025 19:13:18 +0800</pubDate><description><![CDATA[/ 根目录的父目录为0。// 簇3：file1.txt文件。if (fat16[i] == 0x0000) {  // 空闲簇。// 6.在mulu目录中创建file1.txt文件 (簇自动分配)// 簇2：mulu目录。#include <sys/stat.h>    //文件权限相关。// 簇0：介质类型。]]></description><category></category></item><item><title><![CDATA[c 模拟一个fat16文件系统1]]></title><link>https://blog.csdn.net/dp__mcu/article/details/156307113</link><guid>https://blog.csdn.net/dp__mcu/article/details/156307113</guid><author>dp__mcu</author><pubDate>Fri, 26 Dec 2025 15:33:05 +0800</pubDate><description><![CDATA[/ 根目录的父目录为0。if (fat16[i] == 0x0000) {  // 空闲簇。// 簇3：file1.txt文件。// 簇2：mulu目录。// 6. 在mulu目录中创建file1.txt文件（簇3）#include <sys/stat.h>    //文件权限相关。// 簇0：介质类型。]]></description><category></category></item><item><title><![CDATA[c 模拟一个fat16文件系统]]></title><link>https://blog.csdn.net/dp__mcu/article/details/156298855</link><guid>https://blog.csdn.net/dp__mcu/article/details/156298855</guid><author>dp__mcu</author><pubDate>Fri, 26 Dec 2025 10:59:05 +0800</pubDate><description><![CDATA[if (fat16[i] == 0x0000) {  // 空闲簇。// 簇3：TEST1.TXT。printf("FAT16镜像创建完成：fat16.img\n");// 簇2：TEST目录。// 无.返回总长度。#include <sys/stat.h>    //文件权限相关。// 簇0：介质类型。]]></description><category></category></item><item><title><![CDATA[linux sdl图形编程之helloworld.]]></title><link>https://blog.csdn.net/dp__mcu/article/details/153330660</link><guid>https://blog.csdn.net/dp__mcu/article/details/153330660</guid><author>dp__mcu</author><pubDate>Wed, 15 Oct 2025 16:15:55 +0800</pubDate><description><![CDATA[printf("SDL初始化失败: %s\n", SDL_GetError());printf("TTF初始化失败: %s\n", TTF_GetError());SDL_Log("SDL初始化失败: %s", SDL_GetError());SDL_Log("TTF初始化失败: %s", TTF_GetError());printf("窗口创建失败: %s\n", SDL_GetError());SDL_Log("窗口创建失败: %s", SDL_GetError());// 初始化TTF字体库。]]></description><category></category></item><item><title><![CDATA[qemu 串口模拟输入的整个流程]]></title><link>https://blog.csdn.net/dp__mcu/article/details/153209751</link><guid>https://blog.csdn.net/dp__mcu/article/details/153209751</guid><author>dp__mcu</author><pubDate>Mon, 13 Oct 2025 20:16:01 +0800</pubDate><description><![CDATA[后端事件分发‌：qemu_chr_be_write及其实现函数qemu_chr_be_write_impl负责将数据分发到注册的后端处理程序，这是QEMU monitor模块的核心转发机制。前端驱动层‌：fd_chr_read通过qio_channel_read从宿主文件描述符读取原始数据，这是QEMU字符设备的基础I/O接口。该过程涉及chardevice的绑定和状态管理，如通过qemu_chr_new创建的字符设备实例。AI的分析，真是有模有样的，牛而逼之！波特率控制（div寄存器）]]></description><category></category></item><item><title><![CDATA[freertos关键函数理解 uxListRemove]]></title><link>https://blog.csdn.net/dp__mcu/article/details/149549370</link><guid>https://blog.csdn.net/dp__mcu/article/details/149549370</guid><author>dp__mcu</author><pubDate>Tue, 22 Jul 2025 22:26:31 +0800</pubDate><description><![CDATA[/|------->volatile UBaseType_t uxNumberOfItems = 1  0x20000088  链表中元素的个数。<-------------|    0x200004ac  链表节点的值。]]></description><category></category></item></channel></rss>