摘要:
1,安装bindyum-yinstallbind*caching-nameserver可以使用 rpm -qa | grep bind 查看bind是否已经安装2,配置配置文件/etc/named.conf//// named.conf//// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS// server as a caching only nameserver (as a localhost DNS resolver only).//// See /usr/share/doc/bind*/sa 阅读全文
摘要:
一个很好玩的现象:源代码:#include int main(){ int a = 10000; float b = 55.55; int c = 9988; printf("a : %f \n",a); printf("c : %f \n",c); printf("b : %d \n",(int)b); printf("a : %f \n",a); printf("c : %f \n",c); printf("b : %f \n",b); printf(... 阅读全文
摘要:
源代码: 1 #include 2 struct smonth // point 1 3 { 4 int a; 5 int b; 6 }; 7 8 int func1() 9 {10 struct smonth{11 int a;12 int b;13 };14 15 typedef int LOVE; // point 216 17 LOVE a = ... 阅读全文
摘要:
global_timer_upper和global_timer_low指向的存储空间是 global timer 的高32位和低32位,它们会不停变化,下面的程序功能是读取当前的global timer值。这里会出现一个常见的编译器优化带来的错误。源程序如下:#0 [volatile] unsigned long *global_timer_upper, *global_timer_low;inline unsigned long long read_cycle(unsigned int *re_low, unsigned int *re_upper){ #1 [volatile] ... 阅读全文
摘要:
1,安装arm-linux-gcc从友善之臂的网站上面下载arm-linux-gcc,下载地址:http://www.arm9.net/download-arm-linux-gcc-4.3.2.asp我下载的是网页下面的4.4.3。对新版本arm-linux-gcc-4.4.3进行解压(注意,对于正... 阅读全文
摘要:
想法的来源是看到chinaunix上有人转载了wheelz的博客,但是wheelz的代码在我的实验平台上是不能正常工作的,可能是wheelz的代码太过久远,我试验的内核版本是:3.4.13。wheelz的源代码如下:// 内核模块#include <linux/config.h>#include <linux/module.h>#include <linux/kernel.h>#include <linux/mm.h>MODULE_LICENSE("GPL");MODULE_AUTHOR("Wheelz") 阅读全文
摘要:
Debugging using DWARFCFI: Call Frame Information CFI macros are used to generate dwarf2 unwind information for better backtraces. They don't change any code.If you find yourself in the position of combining C++ with assembly language routines, you can incorporate exception handling support by us 阅读全文
摘要:
问题1:调用irequest_irq注册时,一直失败,其中irequest_threaded_irq在调用irq_to_desc时一直返回NULL,网上的说法是irq是要申请的硬件中断号。在Intel平台,范围0--15。http://blog.csdn.net/lhf_tiger/article/details/7173844注册0--15以内的未使用中断号,果然成功了,不知道为什么??问题2:/proc/interrupts中第一列是中断向量(vector)还是irq号?初步看法是irq号还有,irq号和中断号是不是同一个概念?问题3:ack_APIC_irq()有什么作用? 阅读全文
摘要:
It is my first day on this web site. Good luck ! 阅读全文