Re: gcc -O broken in CURRENT

2002-03-14 Thread Bruce Evans
On Thu, 14 Mar 2002, ozan s. yigit wrote: > > Add the -ffloat-store flag to your compilation flags (or > > add -msoft-float). > > that really means for this compiler on certain platforms, you > can have slow and correct or fast and incorrect, but NOT fast > and correct. I think fast and correct

Re: execution access control

2002-03-14 Thread Ugen Antsilevitch
> you name an object, but what object you act on. The namespace > approachhas merit too, and is the basis for the DTE work done at > TIS a number of > years ago. You might be interested in taking a look at some of > the DTE > papers published at USENIX... I have seen this work - this is almo

Re: panic: pmap_enter

2002-03-14 Thread Matthew Dillon
:On Tue, 12 Mar 2002, Terry Lambert wrote: : :> #define blkmap(fs, map, loc) \ :> (((map)[(loc) / NBBY] >> ((loc) % NBBY)) & (0xff >> (NBBY - (fs)->fs_frag))) :> :> looks a little suspect, doesn't it? "& 0" for 8 is probably :> correct, but "& 1" for 4 and "& 2" for 2 and "& 4" for 1 is :> pr

test

2002-03-14 Thread Ugen Antsilevitch
please disregard..sorry. --Ugen To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: PCI read config functions

2002-03-14 Thread Daniel O'Connor
On Fri, 2002-03-15 at 03:13, M. Warner Losh wrote: > The pci config space is always mapped. What does pciconf -r pciX:Y:Z > 0:0xff say? X:Y:Z is the pci bus address. mdtest# pciconf -r pci0:11:0 0:0xff 0x0004 0x0283 0x07000202 0x0008 0xd8002000 0xc001 0x 0xc401 0x000

Re: Another kernel newbie

2002-03-14 Thread Terry Lambert
"Kreider, Carl" wrote: > I've been tasked with a driver for a video capture card. I've been > following the example of the bktr driver, searched the net for > information, bought "The Design and Implementation of the 4.4BSD > Operating System", read the Developer's Handbook, etc. > > I am working

Re: gcc -O broken in CURRENT

2002-03-14 Thread Terry Lambert
Jan Stocker wrote: > So now i am a little bit confused... State of the art: > > 1) Bug is in -stable and -current >--> This means possible patches only in -current arent responsible for >this behaviour Unless they were MFC'ed to -STABLE. THis is why you generally should compare -REL

Re: NULLFS in -STABLE

2002-03-14 Thread Terry Lambert
Attila Nagy wrote: > The only thing, which seems to be changed that the NULLFS mount isn't > recursive anymore. > If I have: > /stuff > /stuff/.1 > /stuff/.2 > ... > > (.* are directories, each one there is another partition mounted in) > > and I mount /stuff to somewhere else with mount_null, I

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

2002-03-14 Thread Hiten Pandya
--- Jordan Hubbard <[EMAIL PROTECTED]> wrote: > I'm not supposed to focus on Megahertz, I work for Apple, but various > benchmarking folks also like to be able to print stats like this out > on their comparison charts and it seems a lot easier than grepping > /var/run/dmesg.boot. :) I personally

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

2002-03-14 Thread Jordan Hubbard
> What for? You haven't caught the Megahertz bug too, have you? 8) I'm not supposed to focus on Megahertz, I work for Apple, but various benchmarking folks also like to be able to print stats like this out on their comparison charts and it seems a lot easier than grepping /var/run/dmesg.boot. :)

float [was Re: gcc -O broken in CURRENT]

2002-03-14 Thread ozan s. yigit
> If you really want to investigate FreeBSD FP/math capabilities > search for UCBTEST or visit > www.cs.berkeley.edu/~jhauser/arithmetic/TestFloat.html cool! thanks for the pointer. oz --- gag reflex is an essential part of computing. -- anon To Unsubscribe: send mail to [EMAIL PROTECTED] wi

Re: gcc -O broken in CURRENT

2002-03-14 Thread Steve Kargl
On Thu, Mar 14, 2002 at 07:50:38PM +0100, Raymond Wiker wrote: > ozan s. yigit writes: > > > Add the -ffloat-store flag to your compilation flags (or > > > add -msoft-float). > > > > that really means for this compiler on certain platforms, you > > can have slow and correct or fast and incor

Re: gcc -O broken in CURRENT

2002-03-14 Thread David O'Brien
On Wed, Mar 13, 2002 at 10:24:20PM +0100, Martin Blapp wrote: > > 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 > >

Re: gcc -O broken in CURRENT

2002-03-14 Thread Raymond Wiker
ozan s. yigit writes: > > Add the -ffloat-store flag to your compilation flags (or > > add -msoft-float). > > that really means for this compiler on certain platforms, you > can have slow and correct or fast and incorrect, but NOT fast > and correct. Actually, if -ffloat-store is t

Re: gcc -O broken in CURRENT

2002-03-14 Thread ozan s. yigit
> Add the -ffloat-store flag to your compilation flags (or > add -msoft-float). that really means for this compiler on certain platforms, you can have slow and correct or fast and incorrect, but NOT fast and correct. oz --- freedom has a mental cost. -- peter roosen-runge To Unsubscribe: send

Re: gcc -O broken in CURRENT

2002-03-14 Thread David O'Brien
On Thu, Mar 14, 2002 at 01:20:51PM -0500, Alexander Kabaev wrote: > >b) other options were set at compile time > > --> Why dont change to the same in the port? > > Leads it to a broken world? > > If the only difference is the lost of binary compatibility, > >

Re: Another kernel newbie

2002-03-14 Thread Julian Elischer
check how the modules do this.. also, look at the example device driver in -current /usr/share/examples/drivers/make_device_driver.sh that makes and then compiles a driver. On Thu, 14 Mar 2002, Kreider, Carl wrote: > > I've been tasked with a driver for a video capture card. I've been > follow

Re: gcc -O broken in CURRENT

2002-03-14 Thread Steve Kargl
On Thu, Mar 14, 2002 at 12:59:31PM -0500, ozan s. yigit wrote: > in a related tangential note, i recently found (out of sheer irritation) > in less than an hour that several (including the latest) versions of GCC > -O and -O2 failed the paranoia test in different ways, to wit: > > gcc -o paranoi

Re: gcc -O broken in CURRENT

2002-03-14 Thread Alexander Kabaev
> 2) Bug is in os delivered gcc but not in port gcc. >a) port has more or less patches / os gcc has been modified > --> Didn't someone told they are the same? GCC from ports uses DWARF2 exception unwinding while GCC in src tree uses sjlj exceptions. The exception handling code generated

Re: gcc -O broken in CURRENT

2002-03-14 Thread David O'Brien
On Thu, Mar 14, 2002 at 06:36:05PM +0100, Jan Stocker wrote: > 2) Bug is in os delivered gcc but not in port gcc. >a) port has more or less patches / os gcc has been modified > --> Didn't someone told they are the same? Port has less patches. If you look at /usr/src/contrib/gcc/contrib

Re: gcc -O broken in CURRENT

2002-03-14 Thread ozan s. yigit
in a related tangential note, i recently found (out of sheer irritation) in less than an hour that several (including the latest) versions of GCC -O and -O2 failed the paranoia test in different ways, to wit: gcc -o paranoia paranoia.c [paranoia output elided] The number of DEFECTs discovere

Another kernel newbie

2002-03-14 Thread Kreider, Carl
I've been tasked with a driver for a video capture card. I've been following the example of the bktr driver, searched the net for information, bought "The Design and Implementation of the 4.4BSD Operating System", read the Developer's Handbook, etc. I am working outside the kernel tree right now

Re: gcc -O broken in CURRENT

2002-03-14 Thread M. Warner Losh
Do you have a small, reproducible test case? Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

RE: gcc -O broken in CURRENT

2002-03-14 Thread Jan Stocker
So now i am a little bit confused... State of the art: 1) Bug is in -stable and -current --> This means possible patches only in -current arent responsible for this behaviour 2) Bug is in os delivered gcc but not in port gcc. a) port has more or less patches / os gcc has been modifie

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

2002-03-14 Thread Doug Rabson
On Thu, 14 Mar 2002, Michael Smith wrote: > > hw.busfrequency = 133326902 > > Not typically obtainable. And which bus? This is available for ia64. I think the speed returned by ia64 firmware for this is the FSB speed. > > > hw.cpufrequency = 66700 > > Should be obtainable on Alpha and Spar

Re: kernel newbie.

2002-03-14 Thread Rogier R. Mulhuijzen
At 04:40 14-3-2002 -0600, Abdul Basit wrote: >Hi >can anyone give me some url / book name for >FreeBSD kernel internals ? > >thanks >- basit The Design and Implementation of the 4.4BSD Operating System http://www.amazon.com/exec/obidos/ASIN/0201549794/qid=1016123716/sr=8-4/ref=sr_8_67_4/002-8148

Re: gcc -O broken in CURRENT

2002-03-14 Thread Alexander Kabaev
> Do you have a patch for this ? I do not fully understand the parts of GCC involved, so I need some time to verify my initial diagnosis and to create a patch. In other words - not yet :) -- Alexander Kabaev To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in

Re: PCI read config functions

2002-03-14 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> "Daniel O'Connor" <[EMAIL PROTECTED]> writes: : 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(s

Re: gcc -O broken in CURRENT

2002-03-14 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Terry Lambert <[EMAIL PROTECTED]> writes: : "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 on

Re: gcc -O broken in CURRENT

2002-03-14 Thread Martin Blapp
Hi, > This is a case of exception context register getting clobbered in > shared library function call. GCC does not reload it when needed and > this ultimately leads to semi-random word in program memory decremented > by the __cp_pop_exception function. The bug is only triggered under very > s

Re: gcc -O broken in CURRENT

2002-03-14 Thread Alexander Kabaev
This is a case of exception context register getting clobbered in shared library function call. GCC does not reload it when needed and this ultimately leads to semi-random word in program memory decremented by the __cp_pop_exception function. The bug is only triggered under very specific circums

Re: gcc -O broken in CURRENT

2002-03-14 Thread Alexander Kabaev
This is a case of exception context register getting clobbered in shared library function call. GCC does not reload it when needed and this ultimately leads to semi-random word in program memory decremented by the __cp_pop_exception function. The bug is only triggered under very specific circums

[no subject]

2002-03-14 Thread Moissanite
Moissanite: More Fire and Brilliance http://www.moissanite.com/emailads/trade/031102/truth_header.gif"; width="500" height="45" border="0" alt="The Truth About Moissanite">   http://www.moissanite.com/emailads/trade/031102/jfire.jpg"; width="680" height="564"

pax(1) enhancement

2002-03-14 Thread Bjoern Fischer
Hello, I'm doing backups with pax(1). For indexing pax readable archives I found it very useful to have the possibility to specify an arbitrary strftime() formatstring that is used in verbose list mode. The enhancement is filed as PR bin/35886. Comments? -Björn To Unsubscribe: send mail to [

Re: panic: pmap_enter

2002-03-14 Thread Mike Silbersack
On Tue, 12 Mar 2002, Terry Lambert wrote: > #define blkmap(fs, map, loc) \ > (((map)[(loc) / NBBY] >> ((loc) % NBBY)) & (0xff >> (NBBY - (fs)->fs_frag))) > > looks a little suspect, doesn't it? "& 0" for 8 is probably > correct, but "& 1" for 4 and "& 2" for 2 and "& 4" for 1 is > probably

Germany trip

2002-03-14 Thread Alexey Zelkin
Folks, I'll be visiting Germany for next week. My primary targets are Hannover (for CeBIT show), Trier (and possibly Amsterdam, not Germany though, but... :-). Because of this trip I'll be rarely available at e-mail. If you will be experiencing any problems with my recent locale/stdtime MFCs dur

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

2002-03-14 Thread Michael Smith
> hw.busfrequency = 133326902 Not typically obtainable. And which bus? > hw.cpufrequency = 66700 Should be obtainable on Alpha and Sparc, and calculable on x86 (though it will probably have to be calculated at the time the sysctl is read, since it's variable). > hw.cachelinesize = 32 >

file crashing: start of story: attachments

2002-03-14 Thread A. V.
To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

kernel newbie.

2002-03-14 Thread Abdul Basit
Hi can anyone give me some url / book name for FreeBSD kernel internals ? thanks - basit To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

NULLFS in -STABLE

2002-03-14 Thread Attila Nagy
Hello, I run FreeBSD 4-STABLE (Sun Feb 10 14:58:04 CET 2002) since that date with NULLFS, from which I do an average of 500-600 GB daily traffic (FTP site, with the built in FTP daemon). Previously I have had problems with this setup, because I had to remove the sendfile() support from all of th

file crashing: start of story

2002-03-14 Thread A. V.
Hi, hackers As i wrote before yesterday my system was crashed. Today i test it again. And crash again. HOWTO-Reproduce: (every step i do as root) i mounted cdrom (/dev/acd0c) # mount /cdrom then started 15 backgroup cp process # cp -R 01 /u1

file crashing

2002-03-14 Thread A. V.
Hi, hackers. Yesterday i was editing a file. After some manipulations my system was crashed. After reboot i couldn't find this file. Another opened file was truncated. This files were on vncrypt disk with softupdate enabled slice. Today i created file on non-vncrypt softupdate disabled d

Re: gcc -O broken in CURRENT

2002-03-14 Thread Martin Blapp
> Per thread exception stacks? THat's where I'd look... Hmm, good point. The programms that crashed were all threaded ... Martin To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Porting a userland NFS server

2002-03-14 Thread Ian Dowse
In message <[EMAIL PROTECTED]>, Daniel O'Connor writ es: >I end up with EFBIG when trying to read the .katie-server-info file, but >if I create a file inside the view (eg echo "abc" >foo) then it can be >read with no problem, _but_ the dump of NFS traffic doesn't show a read >for that file. At a