上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 39 下一页
摘要: android WatchDog(sw watchdog)工作原理 http://gityuan.com/2016/06/21/watchdog/ 阅读全文
posted @ 2021-04-27 14:46 aspirs 阅读(174) 评论(0) 推荐(0)
摘要: system call open() from: http://linux2fork.blogspot.com/2013/04/system-call-open.html 今天review linux character driver的時候,發現往往定義的file_operations的.open成 阅读全文
posted @ 2021-04-26 21:33 aspirs 阅读(188) 评论(0) 推荐(0)
摘要: 1、panic当内核遇到严重错误的时候,内核panic,立马崩溃。死机。 2、oopsoops是内核遇到错误时发出的提示“声音”,oops有时候会触发panic,有时候不会,而是直接杀死当前进程,系统可以继续运行。 比如说内核态下的段错误,当内核设置了panic_on_oops=1的时候,oops会 阅读全文
posted @ 2021-04-26 20:41 aspirs 阅读(1618) 评论(0) 推荐(0)
摘要: linux irq request_threaded_irq()参数含义 int request_threaded_irq(unsigned int irq, irq_handler_t handler, irq_handler_t thread_fn, unsigned long irqflags 阅读全文
posted @ 2021-04-25 16:29 aspirs 阅读(462) 评论(0) 推荐(0)
摘要: ARM instruction misc daifset/daifclr msr daifset, #0xf //对DAIF寄存器的值的bit0-3位置1 msr daifset, #2 //对DAIF的bit1置1,即对DAIF的I bit置1(disable irq) DAIF bit,F bi 阅读全文
posted @ 2021-04-25 13:33 aspirs 阅读(1831) 评论(0) 推荐(0)
摘要: from: https://www.cnblogs.com/smartjourneys/p/6845180.html 1. 前言 2. 指令运行与异常处理寄存器 ARM体系结构的寄存器分为两类: (1)系统控制和状态报告寄存器 (2)指令处理寄存器,如累加、异常处理 本部分将主要介绍如上第(2)部分 阅读全文
posted @ 2021-04-25 12:20 aspirs 阅读(633) 评论(0) 推荐(0)
摘要: 一、logd介绍 logd 是Android L版本提出来的概念,其作用是保存Android运行期间的log(日志)。在Android L之前,log由kernel的ring buffer 保存,在Android L之后,log保存在用户空间。 1) logd进程启动 系统启动到init函数时会解析 阅读全文
posted @ 2021-04-24 18:25 aspirs 阅读(1541) 评论(0) 推荐(0)
摘要: [FTRACE] vmlinux __mcount_loc section kernel/scripts/Makefile.build ifdef CONFIG_FTRACE_MCOUNT_USE_RECORDMCOUNT # compiler will not generate __mcount_ 阅读全文
posted @ 2021-04-24 15:21 aspirs 阅读(308) 评论(0) 推荐(0)
摘要: User Area from:http://ericnode.info/post/how_to_determine_emmc_size/ 计算方法其实已经在规范中给出了,参考eMMC 5.0 spec里的段落。首先是: 7.3.12 C_SIZE [73:62] The C_SIZE paramet 阅读全文
posted @ 2021-04-17 16:12 aspirs 阅读(2203) 评论(0) 推荐(0)
摘要: get the emmc capacity in kernel 4.19\drivers\mmc\core\Mmc.c static int mmc_decode_ext_csd(struct mmc_card *card, u8 *ext_csd) if (card->ext_csd.rev >= 阅读全文
posted @ 2021-04-15 22:43 aspirs 阅读(113) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 39 下一页