The Exynos 4412 SCP Reduced Instruction Set Computer (RISC) microprocessor supports four multi-masterInter-Integrated Circuit (I2C) bus serial interfa... Read More
posted @ 2015-12-07 23:41 suonikeyinsu Views(575) Comments(0) Diggs(0)
static inline void arch_spin_lock(arch_spinlock_t *lock){ unsigned long tmp; __asm__ __volatile__("1: ldrex %0, [%1]\n" " teq %0, #0\n" ... Read More
posted @ 2015-12-07 22:17 suonikeyinsu Views(998) Comments(0) Diggs(0)
A Universal Asynchronous Receiver and Transmitter (UART) in Exynos 4412 SCP provide four independent Exynos 4412 SCP的UART提供了4个异步串口通道(ch0~3)。还... Read More
posted @ 2015-12-07 22:06 suonikeyinsu Views(1095) Comments(0) Diggs(0)
#include using namespace std;class A{ public: //static 成员不占用类对象的内存空间,且必须在类外定义 const static int css; static const int cs; static int s; static in... Read More
posted @ 2015-11-29 20:08 suonikeyinsu Views(185) Comments(0) Diggs(0)
#include using namespace std;/* *对于纯虚函数可以实现也可以不实现,但派生类一定要覆盖基类的纯虚函数.否则派生类仍然是抽象类 * *如果派生类覆盖基类的虚函数,则基类的指针或引用实际指向子类对象,那么通过该指针或引用调用虚函数时,将调用子类的虚函数;如果不是虚函数,则... Read More
posted @ 2015-11-29 20:07 suonikeyinsu Views(320) Comments(0) Diggs(0)
volatile bool lock = false;void func(void){int i;while(lock);lock = true;for(i = 0; i pid, current->comm);mdelay(1000);}lock = false;}对于上面的例子,在SMP系统中,... Read More
posted @ 2015-11-22 17:39 suonikeyinsu Views(2055) Comments(0) Diggs(0)
自旋锁最初是为了在smp系统上使用而设计。1.在单处理器非抢占模式下,自旋锁不做任何事情。#ifdef CONFIG_PREEMPT_COUNT //支持抢占模式#define preempt_disable() \do { \ inc_preempt_count(); \ barrier();... Read More
posted @ 2015-11-22 17:38 suonikeyinsu Views(799) Comments(0) Diggs(0)
突然想要用,好久没配过这玩意了,再次配置一次,记录一下过程。1.挂载镜像 mount -o loop ~/Desktop/RHEL_5.5\ i386\ DV.iso /mnt 然后查看是否挂再成功。2.安装rpm包 cd /mnt/Server,将相关rpm包先拷贝出来至少会用到:(安装期间... Read More
posted @ 2015-11-19 00:21 suonikeyinsu Views(944) Comments(0) Diggs(0)
调用流程:SYSCALL_DEFINE3()--->sys##name()--->vfs_read()--->file->f_op->read() linux/arch/arm/kernel/call.S...CALL(sys_read)CALL(sys_write)CALL(sys_open)C... Read More
posted @ 2015-11-16 23:12 suonikeyinsu Views(500) Comments(0) Diggs(0)
===Documentation/kbuild/makefiles.txt===The Makefiles have five parts:Makefile the top Makefile..config the kernel conf... Read More
posted @ 2015-11-14 17:16 suonikeyinsu Views(1027) Comments(0) Diggs(0)