Serial GDB hangs

2002-03-13 Thread Daniel O'Connor
Hi, I am trying to debug a KLD using serial GDB but it keeps hanging.. ie I will enter the debugger OK, and generally everything will work OK for a while, but then I'll want to do another command and it will just sit there in the ttyin state :-/ It is sometimes recoverable but that requires

PCI read config functions

2002-03-13 Thread Daniel O'Connor
Hi, I'm trying to write a driver for a serial card - it is fairly simple, but I'm having trouble with some conversions from the Linux driver :) In the Linux driver there is stuff like - if ((rc = pcibios_read_config_byte(bus, dev_fn, PCI_DC_SIO_PORT,

Re: Recv() to a mmap'ed file?

2002-03-13 Thread Farooq Mela
Hi, WRT to Terry's email, I initialized the file by writing N nul ('\0') bytes to it. Alfred Perlstein wrote: Have you tried the mapping with PROT_READ as well? I don't think most arches allow for access without PROT_READ along with PROT_WRITE. Oops.. and I even read the thread a little

Re: gcc -O broken in CURRENT

2002-03-13 Thread Martin Blapp
Hi, Here are my test news. The -O bug doesn't happen with gcc295 from ports ! I tried all these FLAGS, but noone of them was creating the problems we see with -O : Optimization Options -fcaller-saves -fcse-follow-jumps -fcse-skip-blocks -fdelayed-branch -felide-constructors

Re: gcc -O broken in CURRENT

2002-03-13 Thread Martin Blapp
STABLE is broken too, but in a different manner. I just added -O and then this happened. [algo] :testing inplace_merge #1() (weak) ... eh_test in free(): warning: junk pointer, too high to make sense eh_test in free(): warning: junk pointer, too high to make sense eh_test in free(): warning:

subscribe

2002-03-13 Thread joerg . wagner . jw
Mit freundlichen Grüßen / Best Regards Joerg Wagner _ Fa. Arxes NCC AG IM-CAS-CCC-PCH Tel.: +49 214/30-31000 Fax: E-Mail: [EMAIL PROTECTED] Internet : http://www.bayer-ag.de To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe

Re: gcc -O broken in CURRENT

2002-03-13 Thread Martin Blapp
I removed now #undef DEFAULT_VTABLE_THUNKS and set again #define DWARF2_UNWIND_INFO 1 in the port. The -O tests still succeeded. All cpp* files are the same in the port and our system compilers. And ideas and pointers which subsystems I could test for this breakage ? Martin To Unsubscribe:

Re: How to correctly detect POSIX 1003.1b features on FreeBSD?

2002-03-13 Thread Craig Rodrigues
On Tue, Mar 12, 2002 at 11:32:25PM -0800, Terry Lambert wrote: The POSIX specification itself is a better reference for POSIX. The copy I have is old, and the Single Unix Specifications I have (the Go Solo 2, and the earlier Draft of the Spec. 1770 from the UNIX International FTP site

Re: firewall and ports

2002-03-13 Thread John Nielsen
- Original Message - From: Martin Vana [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 3:55 PM Subject: firewall and ports hi, I sit behind a tough firewall, and none of the ports in port collection is able to fetch files need for install. How could I overcome

Re: unionfs and getcwd problem.

2002-03-13 Thread Vladimir B.
On Mon, 2002-03-11 at 00:47, BOUWSMA Beery wrote: Thanks! I'm pleased to report that I applied your patch to my -stable source, and now I'm able to `make buildworld' with my rw unionfs mount of my local hacks, atop a ro nullfs mount with unaltered source, which I'm doing right now. The

Re: Running different startup scripts on behalf of loaded kernel and kernel modules

2002-03-13 Thread Philipp Mergenthaler
In article [EMAIL PROTECTED] you wrote: On Tue, Mar 12, 2002 at 04:38:42PM +0200, Vladimir Terziev wrote: I have to configure a box, which has to run different startup scrips on behalf of loaded kernel and kernel modules at startup. [...] How can I understand, when the startup scripts

Re: How to correctly detect POSIX 1003.1b features on FreeBSD?

2002-03-13 Thread Terry Lambert
Craig Rodrigues wrote: The Single UNIX Specification, Version 3 was released recently, incorporating POSIX 1003.1-2001. I think the standard is available for free (unlike the older POSIX standards) on the web: http://www.unix-systems.org/version3/ Thanks for the pointer. The RT stuff is

Re: Recv() to a mmap'ed file?

2002-03-13 Thread Alfred Perlstein
* Farooq Mela [EMAIL PROTECTED] [020313 11:38] wrote: Farooq Mela wrote: region, but it will get a SIGBUS if it tries to write to it. It would be better to return -1 and set errno to EFAULT than to have this brain damage imho. eep... that should be EINVAL... maybe i can be forgiven,

Re: gcc -O broken in CURRENT

2002-03-13 Thread Ed Hall
Exception-handling is broken with -O in -stable, and has been for years. FreeBSD is one of the few systems that use setjmp/longjmp stack unwinds to implement exceptions, so when the GCC folks broke that path, it was never fixed. There are supposedly patches floating around that fix the problem,

Ç¿ÁÒµØÕð

2002-03-13 Thread earthquack
»¶Ó­Äú·¢±íÄúµÄ¹Ûµã [EMAIL PROTECTED] Changchun-mh2.gif Description: Binary data

Ç¿ÁÒµØÕð

2002-03-13 Thread earthquack
»¶Ó­Äú·¢±íÄúµÄ¹Ûµã [EMAIL PROTECTED] Changchun-mh2.gif Description: Binary data

Re: DMA memory allocation/deallocation

2002-03-13 Thread mark tinguely
I am having some memory allocation woes in my FreeBSD kernel device driver. I allocate DMAable memory with something like: retval = bus_dma_tag_create ... (1 20), 1, (1 20), ... which seems to succeed/work. But when I attempt to release the

Re: gcc -O broken in CURRENT

2002-03-13 Thread David O'Brien
On Wed, Mar 13, 2002 at 12:15:34PM -0800, Ed Hall wrote: Exception-handling is broken with -O in -stable, and has been for years. FreeBSD is one of the few systems that use setjmp/longjmp stack unwinds to implement exceptions, so when the GCC folks broke that path, it was never fixed. There

Re: DMA memory allocation/deallocation

2002-03-13 Thread Greg Johnson
Thanks for the reply Mark, I tracked my problem down. In 'bus_dmamem_alloc', 'contigmalloc' is used if the size is greater than PAGE_SIZE. However, in 'bus_dmamem_free' the same PAGE_SIZE check is performed, but nothing is done for the case where the size is greater than PAGE_SIZE. So I then

Re: gcc -O broken in CURRENT

2002-03-13 Thread Martin Blapp
We are using a set of patches that were part of gcc 2.95.3_test3. Do you have a sample program in which exceptions are still broken on FreeBSD 4.5? cd /usr/ports/devel/stlport make install cd work/STL*/test/eh add -O to gcc-freebsd.mk gmake -f gcc-freebsd.mk clean gmake -f gcc-freebsd.mk

problem : crypto

2002-03-13 Thread titi20000
Hi everybody, I am making my own set of administrative tools and i have one little questions : whitch tool i should use to encrypt data ? are the story about the security of pgp (seems to be a whole, I don't beleive it ) thrue ? is there somethings better ( i wish just encrypt some

Re: DMA memory allocation/deallocation

2002-03-13 Thread mark tinguely
Thanks for the reply Mark, I tracked my problem down. In 'bus_dmamem_alloc', 'contigmalloc' is used if the size is greater than PAGE_SIZE. However, in 'bus_dmamem_free' the same PAGE_SIZE check is performed, but nothing is done for the case where the size is greater than PAGE_SIZE.

Re: gcc -O broken in CURRENT

2002-03-13 Thread Kris Kennaway
On Wed, Mar 13, 2002 at 02:08:55PM +0100, Martin Blapp wrote: I removed now #undef DEFAULT_VTABLE_THUNKS and set again #define DWARF2_UNWIND_INFO 1 in the port. The -O tests still succeeded. All cpp* files are the same in the port and our system compilers. And ideas and pointers which

Re: gcc -O broken in CURRENT

2002-03-13 Thread Martin Blapp
Hi Kris, Did you pursue my suggestion of comparing recent patches in the port and in the source tree? Easy to say, hard to do. STABLE is broken as current is, and it seems that 4.4 and 4.3 are also broken for the STLport test. This is a very difficult thing to do for someone that does not

Re: gcc -O broken in CURRENT

2002-03-13 Thread Kris Kennaway
On Wed, Mar 13, 2002 at 11:42:46PM +0100, Martin Blapp wrote: Hi Kris, Did you pursue my suggestion of comparing recent patches in the port and in the source tree? Easy to say, hard to do. STABLE is broken as current is, and it seems that 4.4 and 4.3 are also broken for the STLport

Re: gcc -O broken in CURRENT

2002-03-13 Thread Martin Blapp
Kris, fixes things, or at least identify a list of possible changes which others can test. How can I compile gcc without doing a make world ? Martin To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

[LONG] Re: Performance of FreeBSD vs NetBSD (was: Re: Performance of -current vs -stable)

2002-03-13 Thread BOUWSMA Beery
(sorry for the delay in following-up to this thread; when the Big Blue Room is cloudless and approaching 25 degrees at this time of year, I feel an uncontrollable craving to lock myself in that room most of the day) I wrote: Hmmm, a few weeks ago I did some totally unscientific testing,

question for recent sysinstall hacker(s)

2002-03-13 Thread Justin Honold
i see that in 4.5 ipaddr/netmask/defaultrouter are necessary parameters for scripted install.cfg installations (in my case, pxe). how does one go about using dhcp instead? if i'm using pxeboot to install multiple system simultaneously over nfs, i can't have them all using the same ip. in

Re: gcc -O broken in CURRENT

2002-03-13 Thread Kenneth Culver
cd /usr/src/gnu/usr.bin/cc make make install On Wed, 13 Mar 2002, Martin Blapp wrote: Kris, fixes things, or at least identify a list of possible changes which others can test. How can I compile gcc without doing a make world ? Martin To Unsubscribe: send mail to [EMAIL

Interesting sysctl variables in Mac OS X with hw info

2002-03-13 Thread Jordan Hubbard
hw.busfrequency = 133326902 hw.cpufrequency = 66700 hw.cachelinesize = 32 hw.l1icachesize = 32768 hw.l1dcachesize = 32768 hw.l2settings = -2147483648 hw.l2cachesize = 262144 Assuming that some or all of this information can be derived on x86 / alpha / sparc, how useful do folks think it

Re: Interesting sysctl variables in Mac OS X with hw info

2002-03-13 Thread Alfred Perlstein
* Jordan Hubbard [EMAIL PROTECTED] [020313 15:56] wrote: hw.busfrequency = 133326902 hw.cpufrequency = 66700 hw.cachelinesize = 32 hw.l1icachesize = 32768 hw.l1dcachesize = 32768 hw.l2settings = -2147483648 hw.l2cachesize = 262144 Assuming that some or all of this information can be

Re: DMA memory allocation/deallocation

2002-03-13 Thread Terry Lambert
Greg Johnson wrote: Thanks for the reply Mark, I tracked my problem down. In 'bus_dmamem_alloc', 'contigmalloc' is used if the size is greater than PAGE_SIZE. However, in 'bus_dmamem_free' the same PAGE_SIZE check is performed, but nothing is done for the case where the size is greater than

Re: Interesting sysctl variables in Mac OS X with hw info

2002-03-13 Thread Terry Lambert
Alfred Perlstein wrote: * Jordan Hubbard [EMAIL PROTECTED] [020313 15:56] wrote: [ ... ] Assuming that some or all of this information can be derived on x86 / alpha / sparc, how useful do folks think it would be to have this information be available from sysctl space? I personally would

Re: Interesting sysctl variables in Mac OS X with hw info

2002-03-13 Thread Brooks Davis
On Wed, Mar 13, 2002 at 04:25:00PM -0800, Terry Lambert wrote: This was actually discussed a while back (a month or two ago). It got really bogged down when someone pointed out that they were running CPUs with different clock rates in their SMP box, just to see what the net effect would be.

Re: Interesting sysctl variables in Mac OS X with hw info

2002-03-13 Thread Julian Elischer
On Wed, 13 Mar 2002, Brooks Davis wrote: On Wed, Mar 13, 2002 at 04:25:00PM -0800, Terry Lambert wrote: This was actually discussed a while back (a month or two ago). It got really bogged down when someone pointed out that they were running CPUs with different clock rates in their

Re: Interesting sysctl variables in Mac OS X with hw info

2002-03-13 Thread George V. Neville-Neil
Wouldn't it make the most sense to just have the hw.cpu# stuff you mentioned in email? That's the easiest way to understand the data as a user at least. Later, George -- George V. Neville-Neil [EMAIL PROTECTED] Neville-Neil Consulting

Re: gcc -O broken in CURRENT

2002-03-13 Thread Kris Kennaway
On Wed, Mar 13, 2002 at 11:49:52PM +0100, Martin Blapp wrote: Kris, fixes things, or at least identify a list of possible changes which others can test. How can I compile gcc without doing a make world ? cd /usr/src/gnu/usr.bin/cc make all Kris msg32812/pgp0.pgp

Re: Interesting sysctl variables in Mac OS X with hw info

2002-03-13 Thread Matthew N. Dodd
On Wed, 13 Mar 2002, Jordan Hubbard wrote: hw.busfrequency = 133326902 hw.cpufrequency = 66700 hw.freq.{bus,cpu} hw.cachelinesize = 32 hw.l1icachesize = 32768 hw.l1dcachesize = 32768 hw.l2settings = -2147483648 hw.l2cachesize = 262144 hw.cache.size.line hw.cache.size.l1.i

Re: Interesting sysctl variables in Mac OS X with hw info

2002-03-13 Thread Matthew Emmerton
On Wed, 13 Mar 2002, Brooks Davis wrote: On Wed, Mar 13, 2002 at 04:25:00PM -0800, Terry Lambert wrote: This was actually discussed a while back (a month or two ago). It got really bogged down when someone pointed out that they were running CPUs with different clock rates in their

Re: Interesting sysctl variables in Mac OS X with hw info

2002-03-13 Thread Nate Williams
hw.busfrequency = 133326902 hw.cpufrequency = 66700 hw.cachelinesize = 32 hw.l1icachesize = 32768 hw.l1dcachesize = 32768 hw.l2settings = -2147483648 hw.l2cachesize = 262144 Assuming that some or all of this information can be derived on x86 / alpha / sparc, how useful do folks

Re: Interesting sysctl variables in Mac OS X with hw info

2002-03-13 Thread Terry Lambert
Matthew Emmerton wrote: This was actually discussed a while back (a month or two ago). It got really bogged down when someone pointed out that they were running CPUs with different clock rates in their SMP box, just to see what the net effect would be. THe problem was, of

Re: gcc -O broken in CURRENT

2002-03-13 Thread Ed Hall
I wrote: : This problem should exist in -current since I think FreeBSD finally drops ^^ That should be shouldn't. I shouldn't post in a hurry (like I'm doing now). -Ed To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the

Re: panic: pmap_enter (closed, thanks!)

2002-03-13 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Mike Silbersack [EMAIL PROTECTED] writes: : : On Tue, 12 Mar 2002, Terry Lambert wrote: : : I'm glad the non-8:1 ratio works. I thought that it should; : the only suspicious code, from my point of vies, was the frag : mask calculation. And I had a

Re: PCI read config functions

2002-03-13 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Daniel O'Connor [EMAIL PROTECTED] writes: : In the Linux driver there is stuff like - : if ((rc = pcibios_read_config_byte(bus, dev_fn, PCI_DC_SIO_PORT, : nport)) != PCIBIOS_SUCCESSFUL) break; : : And

Re: gcc -O broken in CURRENT

2002-03-13 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Ed Hall [EMAIL PROTECTED] writes: : Exception-handling is broken with -O in -stable, and has been for years. : FreeBSD is one of the few systems that use setjmp/longjmp stack unwinds : to implement exceptions, so when the GCC folks broke that path, it was

Porting a userland NFS server

2002-03-13 Thread Daniel O'Connor
Hi, I am trying to port a program called Katie - http://www.netcraft.com.au/geoffrey/katie/ from Linux. It comprises of a bunch of Perl scripts and some embedded C which talk to a Postgres server and provide a transparent repository file system.. (Please, no vomiting) I have got it to build and

Re: gcc -O broken in CURRENT

2002-03-13 Thread Terry Lambert
M. Warner Losh wrote: In message: [EMAIL PROTECTED] Ed Hall [EMAIL PROTECTED] writes: : Exception-handling is broken with -O in -stable, and has been for years. : FreeBSD is one of the few systems that use setjmp/longjmp stack unwinds : to implement exceptions, so when the GCC

Re: PCI read config functions

2002-03-13 Thread Daniel O'Connor
On Thu, 2002-03-14 at 18:11, M. Warner Losh wrote: : However this just ends up printing 0. : : (PCI_DC_SIO_PORT is 0x2f) Do you have the right dev? bcr = pci_read_config(sp-sc-dev, CB_PCI_BRIDGE_CTRL, 2); is what I use in the pccard bridge pci driver and it works. I believe

Re: VM: file swapping (this time in libc): patch

2002-03-13 Thread Matthew Dillon
Ok, there are two rather serious problems with this patch: (1) When you use a MAP_PRIVATE mapping, modifications to the mapped memory are backed by swap, not by the file. That is what MAP_PRIVATE does by definition. (2) You can't safely use MAP_SHARED unless you

Re: VM: file swapping (this time in libc): patch

2002-03-13 Thread Matthew Dillon
Oops. I'm sorry! This was an email all the from last october! I didn't mean to resurrect the thread :-) -Matt :ehlo. : : I was told that diff format I used is unappropriate for most cases, : so I redo it in unified (-u) format. : : Purpose: