摘要: current() macro current在内核中通常以宏的形式存在,其实现方式依赖于具体的架构和内核版本,有些实现是从堆栈中获取当前运行任务的task_struct结构指针,有些则从寄存器中获取。 current的实现 拿 arm64架构 + linux-5.4版本 为背景举例, curren 阅读全文
posted @ 2021-09-30 17:55 aspirs 阅读(251) 评论(0) 推荐(0) 编辑
摘要: raw_spin_lock_irqsave() flow include/linux/spinlock.h #define raw_spin_lock_irqsave(lock, flags) \ do { \ typecheck(unsigned long, flags); \ flags = _ 阅读全文
posted @ 2021-09-30 14:48 aspirs 阅读(339) 评论(0) 推荐(0) 编辑
摘要: arm archtecture ARMv8 架构与指令集.学习笔记 https://www.cnblogs.com/lvdongjie/p/6644821.html arm registers https://developer.arm.com/documentation/ddi0500/e/deb 阅读全文
posted @ 2021-09-30 14:12 aspirs 阅读(163) 评论(0) 推荐(0) 编辑