Re: Runtime check for PAE option on BSD 6+ i386

2011-05-04 Thread Philip Soeberg
On 03-05-2011 19:43, Kostik Belousov wrote: On Tue, May 03, 2011 at 11:44:32AM -0400, John Baldwin wrote: On Tuesday, May 03, 2011 9:10:26 am Philip Soeberg wrote: Hi fellow FreeBSD hackers, I've been using the following poor-man's approach in my driver init for ages in an attempt at detecti

Re: Runtime check for PAE option on BSD 6+ i386

2011-05-03 Thread John Baldwin
On Tuesday, May 03, 2011 1:43:39 pm Kostik Belousov wrote: > On Tue, May 03, 2011 at 11:44:32AM -0400, John Baldwin wrote: > > On Tuesday, May 03, 2011 9:10:26 am Philip Soeberg wrote: > > > Hi fellow FreeBSD hackers, > > > > > > I've been using the following poor-man's approach in my driver init

Re: Runtime check for PAE option on BSD 6+ i386

2011-05-03 Thread Kostik Belousov
On Tue, May 03, 2011 at 11:44:32AM -0400, John Baldwin wrote: > On Tuesday, May 03, 2011 9:10:26 am Philip Soeberg wrote: > > Hi fellow FreeBSD hackers, > > > > I've been using the following poor-man's approach in my driver init for > > ages in an attempt at detecting PAE option on BSD 6 (or grea

Re: Runtime check for PAE option on BSD 6+ i386

2011-05-03 Thread John Baldwin
On Tuesday, May 03, 2011 9:10:26 am Philip Soeberg wrote: > Hi fellow FreeBSD hackers, > > I've been using the following poor-man's approach in my driver init for > ages in an attempt at detecting PAE option on BSD 6 (or greater) i386 > kernels, as I depend on dmabus(9) but provide a loadable ke

Runtime check for PAE option on BSD 6+ i386

2011-05-03 Thread Philip Soeberg
Hi fellow FreeBSD hackers, I've been using the following poor-man's approach in my driver init for ages in an attempt at detecting PAE option on BSD 6 (or greater) i386 kernels, as I depend on dmabus(9) but provide a loadable kernel module only. >>> if (sizeof(void*) == 4) { if (((uint6