Re: Library (ab)use in kernel land

2004-09-01 Thread Brian O'Shea
--- Mike Bristow [EMAIL PROTECTED] wrote: And manual pages in section 9 of the manual, eg: $ man 9 printf will give you the docs for the printf that you can call in kernelspace. Yes, however I can't find a man page that nicely outlines all of the kernel libc-like functions available

ndis/if_ndis kernel configuration patch

2004-09-01 Thread Stijn Hoop
Hi, after I got frustrated by forgetting to manually make the if_ndis module after an upgrade to -CURRENT, and subsequently having to fix /boot/loader.conf again, I was motivated enough to try and think of a way to integrate ndis/if_ndis into the build system. Attached is my first try at this.

copyin() instead of sooptcopyin()?

2004-09-01 Thread Gleb Smirnoff
Dear hackers, I have a case, when I need to pass a small argument to kernel, and receive large reply using getsockopt(). First I get the argument: char var[MAX]; ... if ((error = sooptcopyin(sopt, var, MAX, 2)) ... Then I push reply to it using

What's what on the scheduler in FreeBSD 5.x

2004-09-01 Thread yangshazhou
Hi all, I've very interested in scheduler implementation. I got some opinions on FreeBSD5's scheduler from source codes and articles. And I presented here, waiting for critism, for I'm new to FreeBSD. KSE 1.an implementation of SA (Scheduler activation), two-level co-operating scheduling

slow login, app launching, etc

2004-09-01 Thread Bagus
Hi, is anyone able to help me problem solve on this? Is this the right forum for this kind of question? If not, could someone please send me a pointer to an organization that might be able to help. I have a small budget to get this fixed if anyone wants it. I'm running FreeBSD

The continued remote debugging saga...

2004-09-01 Thread Rob Deker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 So, after a lot of work and help from folks here, I've gotten remote gdb functioning (thanks again to those who helped. In the end there was a bad cable in the mix that was the final screw-up). Now I have one other question/problem. I've got cuaa0 on

Re: The continued remote debugging saga...

2004-09-01 Thread John-Mark Gurney
Rob Deker wrote this message on Wed, Sep 01, 2004 at 11:38 -0400: So, after a lot of work and help from folks here, I've gotten remote gdb functioning (thanks again to those who helped. In the end there was a bad cable in the mix that was the final screw-up). Now I have one other

Re: The continued remote debugging saga...

2004-09-01 Thread Rob Deker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John-Mark Gurney wrote: | If you are able to be at a command line, you could try: sysctl | debug.kdb.current=ddb | If I was able to get to a command line, I'd just use shutdown :) Could I build up the appropriate struct in gdb and use the sysctl()

Re: The continued remote debugging saga...

2004-09-01 Thread Doug Rabson
On Wednesday 01 September 2004 18:15, John-Mark Gurney wrote: Rob Deker wrote this message on Wed, Sep 01, 2004 at 11:38 -0400: So, after a lot of work and help from folks here, I've gotten remote gdb functioning (thanks again to those who helped. In the end there was a bad cable in the mix

kernel panic, unknown / reserved trap

2004-09-01 Thread Sam
Hello, I'm working on a driver for AoE (ATA over Ethernet) for the 4.x kernel (check recent freebsd-arch postings for info). I have modified a few files in order to support catching ethernet frames of type 0x88a2. The make kernel completes successfully, but on boot the kernel panics with an

Re: kernel panic, unknown / reserved trap

2004-09-01 Thread Sam
Heh, i just discovered dmesg saved the panic. Alright! Here's what happens: FreeBSD 4.10-RELEASE-p2 #4: Wed Sep 1 17:20:37 EDT 2004 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SAH Timecounter i8254 frequency 1193182 Hz CPU: Intel Pentium III (797.42-MHz 686-class CPU) Origin = GenuineIntel Id

Re: kernel panic, unknown / reserved trap

2004-09-01 Thread Andre Oppermann
Sam wrote: Hello, I'm working on a driver for AoE (ATA over Ethernet) for the 4.x kernel (check recent freebsd-arch postings for info). I have modified a few files in order to support catching ethernet frames of type 0x88a2. The make kernel completes successfully, but on boot the kernel panics

Re: The continued remote debugging saga...

2004-09-01 Thread soralx
| This works SOMETIMES boot() which just takes an int of boot flags (which was the 0 that I shoved into eax for RB_AUTBOOT). are you shure that you don't need to push the 0x0 into stack (`MOV ESP,0x0`)? Timestamp: 0x41367B68 [SorAlx] http://cydem.org.ua/ ridin' VN1500-B2