System freeze when useing bfe (Broadcom BCM440x) driver

2004-08-26 Thread Genius Freak
I just installed 5.2.1 RELEASE from CD on my dell inspiron 1100 I found some guides online and used them to create a custom kernel for the laptop, it compiled and booted fine however it freezes whenever I use the network card. (example: running "pkg_add -r cvsup" causes it to freeze ) I have comp

Re: syscalls implementation

2004-08-26 Thread Shawn Webb
You could overwrite sysent[SYS_kldload] to point to your own kldload function. After you do what you want to, you return what the original kldload returns. Meaning, call the original kldload and return it's value. int (*orig_kldload)(struct thread *, struct kldload_args *) = sysent[SYS_kldload]; i

yield() in kernel CAN'T yield control for MOD_LOAD thread

2004-08-26 Thread yangshazhou
Now "tsleep(&ident,PRIBIO,NULL,1)" solved the problem. Maybe yield() can't do the job in kernel. And mi_switch() is not enough to.Thank you.On Wednesday 25 August 2004 03:06 am, yangshazhou at hotmail.com wrote: > Hi all, > This problem delay me for quite a long time. > I've built two klds,

yield() in kernel CAN'T yield control for MOD_LOAD thread

2004-08-26 Thread yangshazhou
>On Wednesday 25 August 2004 03:06 am, yangshazhou at hotmail.com wrote: >> Hi all, >> This problem delay me for quite a long time. >> I've built two klds, I'd like to see the result one's running to the >> other's. In one kld's MOD_LOAD subroutine, I make a long 'for' loop, in >> which it

syscalls implementation

2004-08-26 Thread Mmaist
Hi! I was wondering were syscalls implementation is in the FreeBSD source tree. I would like to know, especially, where int kldload(const char*); is located. sys/kern/kern_linker.c contains int kldload(struct thread *, struct kldload_args *) and I need to watch at what called between them. tha