|
我写了个函数,也按要求修改了
unistd.h
sys.c
entry.S
经过编译生成了bzImage文件了,然后修改grub为
default=1
timeout=5
splashimage=(hd0,4)/boot/grub/splash.xpm.gz
title RedHat Linux9.0
root (hd0,4)
kernel /boot/vmlinuz-2.4.20-8-old ro root=/dev/hda?
initrd /boot/initrd-2.4.20-8.img-old
title RedHat Linux9.0 -- new
root (hd0,4)
kernel /boot/bzImage ro root=/dev/hda?
initrd /boot/initrd-2.4.20-8.img
title WINDOS XP
rootnoverify (hd0,0)
chainloader +1
了,可是进入新内核之后,用函数调用系统调用功能,却还是有这样的错误:
try.c: In function `mycall':
try.c:2: `__NR_mycall' undeclared (first use in this function)
try.c:2: (Each undeclared identifier is reported only once
try.c:2: for each function it appears in.)
我该怎么处理呀?????急急急,等待高手解答 |
|