summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Define the LDBL_PREC to be the number of significant bits in a longdas2005-03-075-0/+9
| | | | double's mantissa.
* Add an assembly version of fmal.das2005-03-071-0/+34
|
* Add scalbnl, also known as as ldexpl.das2005-03-072-0/+90
|
* Alias scalbnf as ldexpf. The two are identical in binarydas2005-03-072-0/+7
| | | | floating-point formats.
* When you call MiniportInitialize() for an 802.11 driver, it willwpaul2005-03-074-55/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | at some point result in a status event being triggered (it should be a link down event: the Microsoft driver design guide says you should generate one when the NIC is initialized). Some drivers generate the event during MiniportInitialize(), such that by the time MiniportInitialize() completes, the NIC is ready to go. But some drivers, in particular the ones for Atheros wireless NICs, don't generate the event until after a device interrupt occurs at some point after MiniportInitialize() has completed. The gotcha is that you have to wait until the link status event occurs one way or the other before you try to fiddle with any settings (ssid, channel, etc...). For the drivers that set the event sycnhronously this isn't a problem, but for the others we have to pause after calling ndis_init_nic() and wait for the event to arrive before continuing. Failing to wait can cause big trouble: on my SMP system, calling ndis_setstate_80211() after ndis_init_nic() completes, but _before_ the link event arrives, will lock up or reset the system. What we do now is check to see if a link event arrived while ndis_init_nic() was running, and if it didn't we msleep() until it does. Along the way, I discovered a few other problems: - Defered procedure calls run at PASSIVE_LEVEL, not DISPATCH_LEVEL. ntoskrnl_run_dpc() has been fixed accordingly. (I read the documentation wrong.) - Similarly, the NDIS interrupt handler, which is essentially a DPC, also doesn't need to run at DISPATCH_LEVEL. ndis_intrtask() has been fixed accordingly. - MiniportQueryInformation() and MiniportSetInformation() run at DISPATCH_LEVEL, and each request must complete before another can be submitted. ndis_get_info() and ndis_set_info() have been fixed accordingly. - Turned the sleep lock that guards the NDIS thread job list into a spin lock. We never do anything with this lock held except manage the job list (no other locks are held), so it's safe to do this, and it's possible that ndis_sched() and ndis_unsched() can be called from DISPATCH_LEVEL, so using a sleep lock here is semantically incorrect. Also updated subr_witness.c to add the lock to the order list.
* Correct indentation style:grog2005-03-071-14/+14
| | | | | | | | | | - "options" is followed by the characters \040\011, not \011\011. Correct both my own sins and those of others. - Comment blocks start and end with an empty line ^#$. - Remove non-standard comments added in my last commit. Requested by: njl Correctness confirmed by: bde
* Remove dead code.scottl2005-03-074-68/+0
|
* physmem is a much better indicator for 'real' memory on PPC than Maxmemgrehan2005-03-072-6/+6
| | | | | | since there are often significant holes in the memory map due to the kernel, loader and OFW data structures not being included: Maxmem is the highest available, so can be misleading.
* Allow user to undersize memory with hw.physmem loader variable.grehan2005-03-073-3/+186
| | | | Obtained from: i386/machdep.c:getmemsize()
* Fix typo.mux2005-03-071-1/+1
|
* Regen after addition of linux_nosys handler.sobomax2005-03-079-9/+27
|
* Handle unimplemented syscall by instantly returning ENOSYS instead of sendingsobomax2005-03-075-0/+57
| | | | | | | signal first and only then returning ENOSYS to match what real linux does. PR: kern/74302 Submitted by: Travis Poppe <tlp@LiquidX.org>
* When neither of supported frame type is enabled via kernel options enablesobomax2005-03-061-0/+9
| | | | | | | | | | them all, otherwise the driver will be useless and will only confuse user as manual page says nothing about the need to enable one of those frame types explicitly in the kernel config. PR: kern/47152 Submitted by: Andriy Gapon <avg@icyb.net.ua> MFC after: 3 days
* Fix ef(4) driver when kernel compiled w/o IPX.sobomax2005-03-061-1/+1
| | | | MFC after: 3 days
* Always produce cpuX entries, even in the case when there is only one CPUsobomax2005-03-061-7/+6
| | | | | | | | in the system. This is consistent with what real linuxes do. PR: kern/75848 Submitted by: Andriy Gapon <avg@icyb.net.ua> MFC after: 3 days
* Use [ldr|str]t instead of [ldr|str] when accessing ARM_TP_ADDRESS.cognet2005-03-061-4/+3
|
* Make sure ARM_TP_ADDRESS is accessible right now by calling pmap_fault_fixup,cognet2005-03-061-3/+9
| | | | | | as we can't rely on a trap happening, as it is done normally. While I'm there, uncomment the call to cpu_dcache_wbinv_range() in pmap_kenter_internal, as we don't call cpu_dcache_wbinv_all() there anymore.
* Use correct flags for bus_dma_tag_create().scottl2005-03-061-4/+4
|
* Declare as volatile the memory location referenced by a pointer rather thanalc2005-03-061-1/+1
| | | | the pointer's value.
* Use the correct flags for bus_dma_tag_create().scottl2005-03-061-2/+2
|
* The m_ext reference counts are potentially shared and modifiedalc2005-03-062-7/+5
| | | | | | | | | | | asynchronously by different threads. Thus, declare as volatile the reference count that is accessed through m_ext's pointer, ref_cnt. Revert the previous change, revision 1.144, that casts as volatile a single dereference of ref_cnt. Reviewed by: bmilekic, dwhite Problem reported by: kris MFC after: 3 days
* Always go to standby efter each call.phk2005-03-061-7/+7
|
* Don't disable interrupts on a stray interrupt.phk2005-03-061-2/+0
|
* New release notes:hrs2005-03-062-2/+22
| | | | | | | | | atkbd(4) 0x08 flag, ipnat(8) redirect rule supports non-TCP/UDP packets, and sppp(4) MPSAFE. Update release notes: pppd(8) incorrect CBCP response fix (MFC).
* Fix a mistake in the exponent range.das2005-03-061-1/+1
|
* New release notes:hrs2005-03-062-4/+108
| | | | | | | | | | | | | | | | | | | | | Beastie boot menu disabled, acpi(4) turns ACPI and PCI devices off or to a lower power state in suspend, acpi_ibm driver added, ed(4) ALTQ support, ipfw(4) ucred-based rules can be used with debug.mpsafenet=1, TCP-MD5 implementation in KAME IPv4 IPsec, ftpd(8) 212 and 213 status code support, gvinum checkparity/rebuildparity/setstate subcommand support, periodic(8) security report now includes blocked packet counts by pf(4), ppp(8) NAS-IP-Address/NAS-Identifier options, pppd(8) incorrect CBCP response fix, and rescue(8) now includes BSD tar. Update release notes: rc.conf(5) network interface renaming support (MFC), and markup fix in the entry of systat(1) IPv6 support.
* s/AST/ARNET/ where appropriate.rushani2005-03-061-1/+1
|
* Fix typos in a comment.stefanf2005-03-061-1/+1
|
* Unlike NetBSD's bcopy(), our bcopy allows the two strings to overlap, even incognet2005-03-061-3/+542
| | | | kernel. So bring in the userland version, instead of just calling memcpy.
* MFi386: revisions 1.609 and 1.610.nyan2005-03-062-82/+18
|
* o s/opt_ifpw.h/opt_ipfw.h/ in the previous commit.maxim2005-03-061-1/+1
| | | | Submitted by: YONETANI Tomokazu
* Whitespace nit. Clarifies which body this line belongs to.njl2005-03-061-1/+1
|
* Increase the default stacksizes:marcus2005-03-063-15/+31
| | | | | | | | | 32-bit 64-bit main thread 2 MB 4 MB other threads 1 MB 2 MB Approved by: mtm Adapted from: libpthread
* Back out previous commit. The description didn't match the commit,imp2005-03-061-1/+1
| | | | | and marking this interrupt as fast isn't quite right. It also needs to be MP Safe, and I've not done that work (yet).
* Use BUS_PROBE_DEFAULTimp2005-03-063-3/+4
|
* Cleanup: u_intXX_t -> uintX_t conversion.mux2005-03-063-110/+110
|
* Unbreak strsignal(). This is an MFC candidate.mux2005-03-061-2/+3
| | | | Reported by: Sean McNeil <sean@mcneil.com>
* Work around a gcc bug. This fixes feholdexcept() et al. at -O1.das2005-03-051-1/+1
| | | | | | | | | | | | | | Symptoms of the problem included assembler warnings and nondeterministic runtime behavior when a fe*() call that affects the fpsr is closely followed by a float point op. The bug (at least, I think it's a bug) is that gcc does not insert a break between a volatile asm and a dependent instruction if the volatile asm came from an inlined function. Volatile asms seem to be fine in other circumstances, even without -mvolatile-asm-stop, so perhaps the compiler adds the stop bits before inlining takes place. The problem does not occur at -O0 because inlining is disabled, and it doesn't happen at -O2 because -fschedule-insns2 knows better.
* Use BUS_PROBE_DEFAULT for pci probe return valueimp2005-03-056-10/+10
|
* Use BUS_PROBE_DEFAULT for pci probe return valueimp2005-03-057-11/+41
|
* MFi386: use TUNABLE_ULONG_FETCH to retrieve hw.physmem.des2005-03-051-35/+3
|
* Use BUS_PROBE_DEFAULT for pci probe return valueimp2005-03-0517-53/+52
|
* Use BUS_PROBE_DEFAULT for pci probe return valueimp2005-03-0510-16/+14
|
* Replace goto with continue.des2005-03-051-2/+1
|
* Use BUS_PROBE_DEFAULT for pci probe return valueimp2005-03-0512-22/+15
|
* Use TUNABLE_ULONG_FETCH to retrieve hw.physmem; getenv_quad() will takedes2005-03-051-34/+3
| | | | care of the multiplier suffix.
* Replace goto with continue.des2005-03-051-6/+5
|
* Revise the minimum RAM requirements to 24MB for i386 (and implicitlybmah2005-03-051-3/+2
| | | | | | | | | pc98). (While here, remove mention of 80386 custom kernels since support for the 80386 has been removed from CURRENT.) Feedback from: bde, des, imp, jhb
* New release notes: Background fsck(8) summary recomputation (+MFC),bmah2005-03-052-6/+74
| | | | | | | | newfs(8) snapshot warning (+MFC), newsyslog(8) -N, systat(1) -netstat IPv6-ware (+MFC), merged install/fixit CDROMs (+MFC). MFCs noted: IPFIREWALL_FORWARD_EXTENDED, strftime(3) GNU extensions, rc.conf(5) tmpmfs_flags and varmfs_flags.
* Teach getenv_quad() to recognize k/m/g/t suffixes in both lower- anddes2005-03-051-3/+15
| | | | upper-case. This means (almost) all tunables now support those suffixes.
OpenPOWER on IntegriCloud