Re: New architecture support

2006-06-30 Thread Aditya Godbole
On 6/27/06, John Baldwin [EMAIL PROTECTED] wrote: If I have to add support for a new architecture, how do I start? Well, you'll need a toolchain. :) Then you can start working on building a minimal kernel filling in missing bits in sys/arch as you go. Is there any documentation regarding

Re: FLEX, was Re: Return value of malloc(0)

2006-06-30 Thread Peter Jeremy
On Thu, 2006-Jun-29 15:09:23 -0700, Randall Hyde wrote: How about feeding the C source through the preprocessor, stripping out the #line directives, compiling it and posting the exact gcc error and source context. Okay, I'll try that when I get home. But I was kind of under the impression that

Re: ????: Help:why bus resource shortage?

2006-06-30 Thread John-Mark Gurney
[EMAIL PROTECTED] wrote this message on Fri, Jun 30, 2006 at 14:26 +0800: I found the problem! It was caused by an existed ata driver in FreeBSD. I have mentioned before that the existed ata driver can take over the management of our HBA card, leading to our driver can not probe our card! By

Re: ????: Help:why bus resource shortage?

2006-06-30 Thread John-Mark Gurney
Gerald Heinig wrote this message on Fri, Jun 30, 2006 at 10:41 +0200: On Fri, 2006-06-30 at 01:16 -0700, John-Mark Gurney wrote: This has now been fixed by making the built in driver return a negative value for the probe.. so your probe routine can return 0, and it will win the probe for

freebsd port onto IBM/Lenovo T 40

2006-06-30 Thread Kamal R. Prasad
Hello, I installed Freebsd 6.1 on an IBM(now lenovo) Thinkpad T40. The dmesg shows the following -which probably need some config changes. acpi0: IBM TP-IY on motherboard acpi_ec0: Embedded Controller: CPE 0x1c, ECDT port 0x62, 0x66 on acpi0 acpi_bus_number: can't get _ADR same

Re: ????: Help:why bus resource shortage?

2006-06-30 Thread Gerald Heinig
Hi Guys, On Fri, 2006-06-30 at 01:16 -0700, John-Mark Gurney wrote: [EMAIL PROTECTED] wrote this message on Fri, Jun 30, 2006 at 14:26 +0800: I found the problem! It was caused by an existed ata driver in FreeBSD. I have mentioned before that the existed ata driver can take over the

Re: ????: Help:why bus resource shortage?

2006-06-30 Thread Søren Schmidt
John-Mark Gurney wrote: Gerald Heinig wrote this message on Fri, Jun 30, 2006 at 10:41 +0200: On Fri, 2006-06-30 at 01:16 -0700, John-Mark Gurney wrote: This has now been fixed by making the built in driver return a negative value for the probe.. so your probe routine can return 0,

Re: freebsd port onto IBM/Lenovo T 40

2006-06-30 Thread Anish Mistry
On Friday 30 June 2006 04:49, Kamal R. Prasad wrote: Hello, I installed Freebsd 6.1 on an IBM(now lenovo) Thinkpad T40. The dmesg shows the following -which probably need some config changes. acpi0: IBM TP-IY on motherboard acpi_ec0: Embedded Controller: CPE 0x1c, ECDT port

Re: Return value of malloc(0)

2006-06-30 Thread Bernd Walter
On Fri, Jun 30, 2006 at 06:59:37AM +0200, Johannes Weiner wrote: Hi, On Thu, Jun 29, 2006 at 07:29:16PM +0200, Matthias Andree wrote: No, sir. Operator precedence: assign first, and then compare, thus the comparison will always be true (else you'd be comparing to undefined values, which

Re: Return value of malloc(0)

2006-06-30 Thread Pat Lashley
I went wandering through the C Working Group archives for the heck of it, and apparently a lot of people were confused over this, thinking either as you did or that unique meant it would a value unique to the usage of malloc(0). It's been clarified recently (and will be in the next revision of

Re: Return value of malloc(0)

2006-06-30 Thread Pat Lashley
No, sir. Operator precedence: assign first, and then compare, thus the comparison will always be true (else you'd be comparing to undefined values, which isn't any better). You might as well write: foo = malloc(0); /* make noise */ Ok, just for having it done: if (foo == (foo =

contiguous memory allocation problem

2006-06-30 Thread Hans Petter Selasky
Hi, I sometimes see that the USB driver is unable to allocate contiguous memory for itself. For example I noticed that FreeBSD was unable to allocate 350kbytes of contiguous memory after that I had run konqueror, the KDE web browser and various other memory consuming applications for a while.

Re: freebsd port onto IBM/Lenovo T 40

2006-06-30 Thread Julian Elischer
Anish Mistry wrote: On Friday 30 June 2006 04:49, Kamal R. Prasad wrote: Hello, [...] http://shapeshifter.se/articles/upek_touchchip_freebsd/ I'm impressed ___ freebsd-hackers@freebsd.org mailing list

Re: contiguous memory allocation problem

2006-06-30 Thread Kip Macy
FreeBSD's strategy for doing page coloring makes contiguous memory allocation much past boot quite difficult. This will change when generalized superpage support is brought in (I hope in the near future). -Kip On 6/30/06, Hans Petter Selasky [EMAIL PROTECTED] wrote: Hi, I sometimes see that

Re: contiguous memory allocation problem

2006-06-30 Thread Peter Jeremy
On Fri, 2006-Jun-30 20:29:28 +0200, Hans Petter Selasky wrote: I sometimes see that the USB driver is unable to allocate contiguous memory for itself. For example I noticed that FreeBSD was unable to allocate 350kbytes of contiguous memory after that I had run konqueror, the KDE web browser and

Re: NVIDIA FreeBSD kernel feature requests

2006-06-30 Thread Doug Ambrisko
Kip Macy writes: | IIRC lack of per instance cdevs also limits Freebsd to one vmware instance. Really? Don't tell my vmware multiple instances! I used to run 10 on one FreeBSD host. Doug A. ___ freebsd-hackers@freebsd.org mailing list

Alternative compiler toolchain ?

2006-06-30 Thread Jean-Marc Lienher
Hi all, I'm new to FreeBSD, I was using Linux since 1997. But I decided to switch to the Daemon and leave the Penguin on his Iceberg. (Yes, for those who are reading the hidden e-mail headers, I'm also using MS-Windows :-) After a (too?) quick look at the FreeBSD source code, I've seen that the

Re: NVIDIA FreeBSD kernel feature requests

2006-06-30 Thread Kip Macy
WOW THATS GREAT DOUG! \0/ - it didn't work for me. -Kip On 6/30/06, Doug Ambrisko [EMAIL PROTECTED] wrote: Kip Macy writes: | IIRC lack of per instance cdevs also limits Freebsd to one vmware instance. Really? Don't tell my vmware multiple instances! I used to run 10 on one FreeBSD host.

Re: Alternative compiler toolchain ?

2006-06-30 Thread Steve Kargl
On Sat, Jul 01, 2006 at 02:26:35AM +0200, Jean-Marc Lienher wrote: After a (too?) quick look at the FreeBSD source code, I've seen that the GNU compiler toolchain was used to compile the kernel and other part of the OS. I would like to know if there is another compiler toolchain (C

Re: Alternative compiler toolchain ?

2006-06-30 Thread Alastair G. Hogge
On Saturday 01 July 2006 10:26, Jean-Marc Lienher wrote: Hi all, G'Day, I'm new to FreeBSD, I was using Linux since 1997. But I decided to switch to the Daemon and leave the Penguin on his Iceberg. (Yes, for those who are reading the hidden e-mail headers, I'm also using MS-Windows :-)

Re: NVIDIA FreeBSD kernel feature requests

2006-06-30 Thread Doug Ambrisko
Kip Macy writes: | WOW THATS GREAT DOUG! \0/ - it didn't work for me. This was with the last patched driver for vmware 2. I'm not sure if it every made it into the port. http://www.mindspring.com/~vsilyaev/vmware/files/changes 28 Jan 01 Version 0.99-1-0.22 Support for multiple vmware

Re: Alternative compiler toolchain ?

2006-06-30 Thread Dan Nelson
In the last episode (Jul 01), Jean-Marc Lienher said: After a (too?) quick look at the FreeBSD source code, I've seen that the GNU compiler toolchain was used to compile the kernel and other part of the OS. I would like to know if there is another compiler toolchain (C compiler, assembler

Re: freebsd port onto IBM/Lenovo T 40

2006-06-30 Thread Kamal R. Prasad
The link points to a commercial s/w. Is there interest in getting a free driver for this? Any T40 sensor enabled laptop users run freebsd? thanks -kamal On 6/30/06, Julian Elischer [EMAIL PROTECTED] wrote: Anish Mistry wrote: On Friday 30 June 2006 04:49, Kamal R. Prasad wrote: Hello,