[Prev][Next][Index][Thread]

RE: FREEBSD C LIB and osenv_timer_register





Hello,Mr  Stoller  : 	  
[hwp]  I use oskit 990722 version , The command line to build the timer is  
gcc -c -o timer.o -DOSKIT -MD -DHAVE_CONFIG_H  -DDEBUG -I. -I../../../oskit99072
2/examples/x86 -I../../../oskit990722/examples/x86/more -I../../../oskit990722/e
xamples/x86/shared  -I- -I../../../oskit990722/oskit/c -I../../../oskit990722/ex
amples/x86/shared -I../.. -I../../../oskit990722 -nostdinc -O2 -Wall -g  ../../.
./oskit990722/examples/x86/timer.c
../../../oskit990722/examples/x86/timer.c: In function `handler':
../../../oskit990722/examples/x86/timer.c:36: warning: type defaults to `int' in
 declaration of `count'
../../../oskit990722/examples/x86/timer.c:36: warning: type defaults to `int' in
 declaration of `sec'
../../../oskit990722/examples/x86/timer.c: In function `main':
../../../oskit990722/examples/x86/timer.c:49: warning: implicit declaration of f
unction `start_osenv'
ld -Ttext 100000  -L../../lib \
        -o timer ../../lib/multiboot.o timer.o          \
        -loskit_startup -loskit_clientos \
        -loskit_dev -loskit_kern -loskit_lmm \
        -loskit_freebsd_c -loskit_com -loskit_freebsd_c ../../lib/crtn.o

I use the netboot meta kernel to boot it , you can get the kernel at ftp://159.226.42.103/timer 
I can not break and find out what happened.

>    So , What is the difference between FREEBSD C LIB  and ordinary C LIB?
  
Take a look at Chapter 12 "Minimal C Library" and Chapter 18 "FreeBSD C
Library" in the Oskit documentation. The first couple of paragraphs of each
section provide a reasonably clear explanation of the differences. Let us
know if you have any further questions about it.
[hwp]   I think I use wrong version head file , but the command line also can not work 
gcc -c -o timer.o -DOSKIT -MD -DHAVE_CONFIG_H  -DDEBUG -I. -I../../../oskit99072
2/examples/x86 -I../../../oskit990722/examples/x86/more -I../../../oskit990722/e
xamples/x86/shared  -I- -I../../../oskit990722/freebsd/libc/include -I../../../oskit990722/ex
amples/x86/shared -I../.. -I../../../oskit990722 -nostdinc -O2 -Wall -g  ../../.
./oskit990722/examples/x86/timer.c
  
[hwp]  I thnik I may lost some initialization. 
[hwp]  

[hwp]  Thank you very much.
Thanks and Best Regards
HuWeiPing    hwp@acm.org  Tel: 010-62582295
胡伟平   wph@ict.ac.cn 中国科学院计算技术研究所