一个简单得模块, 想要替换掉tty_insert_flip_string函数:
[CODE]
#include
by W.Z.T - 内核源码 - 2008-07-03 17:26:08 阅读(4262) 回复(6)
出现了如下的问题:/gcc-2.95.3/gcc/config/arm/arm.c:530: error: invalid lvalue in assignment 我用的是ubuntu8.04,上面自带的gcc为4.2.3。参考了一下,有可能是版本的问题。 http://www.winehq.org/pipermail/wine-users/2008-January/028683.html http://sources.redhat.com/ml/crossgcc/2006-10/msg00044.html http://blog.chinaunix.net/u2/63775/showart_526645.html 本文来自ChinaUnix博客,如果查看原文请点:...
程序是这样的: #define LED1_ON( ) ( GPFDAT &=~ 0x10 ) #define LED2_ON( ) ( GPFDAT &=~ 0x20 ) #define LED3_ON( ) ( GPFDAT &=~ 0x40 ) #define LED4_ON( ) ( GPFDAT &=~ 0x80 ) #define LED1_OFF( ) ( GPFDAT |= 0x10 ) #define LED2_OFF( ) ( GPFDAT |= 0x20 ) #define LED3_OFF( ) ( GPFDAT |= 0x40 ) #define LED4_OFF( ) ( GPFDAT |= 0x80) static void LedSet ( unsi...
本帖最后由 buaaspy 于 2013-03-05 18:18 编辑 typedef unsigned int uint32; typedef struct node* node_t; struct node { const void* key; node_t next; } __attribute__((aligned(sizeof(uint32)))); 我本意是想让next指针的最低位代表一个mark标记位的,于是定义了下面的宏 #define cast(type, expr) ((type)(expr)) #define is_marked_reference(p) (cast(uint32, (p)) & 0x1) #define get_unmarked_reference(p) ca...
Written assignment Write a command that lists all files in your home directory and the directories beneath it that end with the three letters “txt”, and also contain the word “code” somewhere in the path. Write a command that removes all of the files specified in question 11. Assume that there is a file named myFile in your home directory. Write a command that prints the file to t...
请教各位,我用9200移植好llinux2.6.13。现在编写了一个C++程序,用arm-linux 3.3.2编译后下载运行,出错提示缺少共享库libstdc++.so.5,。我将3.3.2里的 libstdc++.so.5和libstdc++.so.5.0.4加入根文件系统后,再运行c++程序,则报错为 “libstdc++.so.5 invalid ELF header"。 请问这是怎么回事,如何解决? 谢谢!
os :aix 5200-03 db: oracle 9.2 安装的时候必须得把oracle_base 和oracle 用户自己的主目录(home directory)设置成一致,才可以./runInstalll. 否则java 里面就会报错 error inventory location is invalid .高手指教
当在Word中插入图表的时候,发生此错误。而且在Powerpoint中点击图表能够看到,并编辑。但如果把鼠标放在图表之外,就无法看到图表了,这是什么错误呢?
有人在编译内核的时候遇到这样的问题吗??[code]error: Kernel configuration is invalid. include/linux/autoconf.h or include/config/auto.conf are missing. Run 'make oldconfig && make prepare' on kernel src to fix it. make[6]: *** [include/config/auto.conf] error 1[/code]
重新编译内核之后,重启系统,grub引导出错 Grub error 13: invalid or unsupported executable format 出错语句在 kernel /vmlinuz-2.6.15 ro root=/dev/VolGroup00/LogVol00 rhgb quiet 安装的时候是xp和FC共存的,再次重启系统,进入xp,搜索 error 13的解决方法,无果。 使用营救盘 进入fc,查看/etc/grub.conf文件中设置,检查设置中的文件名。和硬盘上文件一致。 再次使用google查看vmlinuz文件的解释,在linuxidc.com上...
gunzip 10gr2_aix5l64_database.cpio.gz时报 gunzip: 10gr2_aix5l64_database.cpio.gz: invalid compressed data--crc error