aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* MFi386: 1.13: Fix booting with ps2 keyboards.Ruslan Ermilov2006-10-211-1/+0
| | | | Notes: svn path=/head/; revision=163567
* Fix error in rev. 1.68. The intention was to break out the switch(){},Gleb Smirnoff2006-10-211-1/+1
| | | | | | | | | | | but actually exited from the for(){} loop. This fixes the PPPIOCSCOMPRESS ioctl. PR: kern/101333 Submitted by: Igor Popov <igorpopov newmail.ru> Notes: svn path=/head/; revision=163561
* Fake the link count until we have no choice but to load data from theTom Rhodes2006-10-211-1/+1
| | | | | | | | | | MFT. PR: 86965 Submitted by: Lowell Gilbert <lgfbsd@be-well.ilk.org> Notes: svn path=/head/; revision=163559
* Be more like the BGE driver. Ensure that at least 16 TX descriptors areScott Long2006-10-211-8/+11
| | | | | | | | | | | | | kept unused in the ring. This check should probably be moved up to bce_start_locked at some point, as it'll make the loop up there slightly more efficient, and will eliminate a costly set of busdma operations when the ring is full. But this works for now. This makes all of my UDP torture tests work. I'll cautiously say that it might even work for other users now. Feedback is appreciated. Notes: svn path=/head/; revision=163558
* style(9) cleanup.Kevin Lo2006-10-219-12/+0
| | | | | | | Approved by: cognet Notes: svn path=/head/; revision=163553
* Fix whitespaceScott Long2006-10-211-1/+1
| | | | Notes: svn path=/head/; revision=163552
* Ok I am an idiot. On 32 bits big-endian systems, it is needed to handle theOlivier Houchard2006-10-211-2/+17
| | | | | | | | | | | | | syscalls using __syscall but only actually returning 32bits, such as mmap(), specially : they set the return value in td->td_retval[0], but the userland functions will expect this in r1, and not in r0 as it is normally done, as it is the LSB. So add a special case for all these syscalls (all except lseek, which truly returns 64bits). Many thanks to Peter Grehan for his patience while explaining me the issue. Notes: svn path=/head/; revision=163551
* revert last change.. premature.. need to wait until if_ethersubr.cJulian Elischer2006-10-212-8/+12
| | | | | | | uses pfil to get to ipfw. Notes: svn path=/head/; revision=163548
* Use __QUAD_LOWWORD for __syscall, to always use the good word, whatever theOlivier Houchard2006-10-201-2/+2
| | | | | | | endianness is. Notes: svn path=/head/; revision=163547
* fix tab indentation for CP and RV...John-Mark Gurney2006-10-201-7/+51
| | | | | | | | | | | | | | If the length is zero, catch this early, instead of making dflen go negative and letting bad things happen... We also check to see if RV (checksum) is 0, and handle that has a checksum failure... Properly handle checksum failures by not processing read-write VPD data, and removing all the found read-only data... Tested by: oleg (dflen going negative) Notes: svn path=/head/; revision=163546
* Move some variables to a more likely placeJulian Elischer2006-10-202-12/+8
| | | | | | | and remove "temporary" stuff that is not needed any more. Notes: svn path=/head/; revision=163545
* There's no fpga.c, so omit it.Warner Losh2006-10-201-1/+1
| | | | Notes: svn path=/head/; revision=163542
* Remove the check that prevented signals from being delivered to exitingJohn Baldwin2006-10-201-3/+1
| | | | | | | | | | | | | | | | | processes. It was originally added back when support for Linux threads (and thus shared sigacts objects) was added, but no one knows why. My guess is that at some point during the Linux threads patches, the sigacts object was torn down during exit1(), so this check was added to prevent a panic for that race. However, the stuff that was actually committed to the tree doesn't teardown sigacts until wait() making the above race moot. Re-allowing signals here lets one interrupt a NFS request during process teardown (such as closing descriptors) on an interruptible mount. Requested by: kib (long time ago) MFC after: 1 week Notes: svn path=/head/; revision=163541
* - MFi386: Remove 'device io'.Yoshihiro Takahashi2006-10-201-12/+0
| | | | | | | | - Remove duplicate options. - 'nomakeoption ATKBD_DFLT_KEYMAP' is not needed anymore. Notes: svn path=/head/; revision=163538
* There's no need to special-case lseek for arm/big-endian.Olivier Houchard2006-10-201-14/+0
| | | | Notes: svn path=/head/; revision=163537
* Fix a recent regression regarding valid signals.Alexander Leidinger2006-10-201-1/+1
| | | | | | | Submitted by: rdivacky Notes: svn path=/head/; revision=163536
* Move more MD devices and options out of MI NOTES.Dag-Erling Smørgrav2006-10-206-97/+206
| | | | Notes: svn path=/head/; revision=163535
* Don't show debug registers in "show registers". Special registers shouldBruce Evans2006-10-202-2/+4
| | | | | | | | | | be displayed specially, and debug registers are among of the least interesting special registers (far behind %cr3). The debug registers are still accessible as variables and displayed in another bogus place ("show watches"). Notes: svn path=/head/; revision=163534
* MFp4:Warner Losh2006-10-2025-1058/+1165
| | | | | | | | | | | Massive update. The highlights: o dramatically cut memory usage by writing better, less intertwingled code. o implement booting off mmc/sd cards (sd only tested one at the moment) o start to split out board specific stuff for boot2. Notes: svn path=/head/; revision=163533
* The VGA_DEBUG option only exists on {amd64,i386,ia64}.Dag-Erling Smørgrav2006-10-204-6/+8
| | | | | | | Also remove 'device io' from amd64 NOTES; DEFAULTS takes care of it. Notes: svn path=/head/; revision=163531
* Update the access and modification times for dev while still holdingKonstantin Belousov2006-10-201-2/+2
| | | | | | | | | | thread reference on it. Reviewed by: tegge Approved by: pjd (mentor) Notes: svn path=/head/; revision=163530
* Fix the race between devfs_fp_check and devfs_reclaim. Derefence theKonstantin Belousov2006-10-203-5/+29
| | | | | | | | | | | vnode' v_rdev and increment the dev threadcount , as well as clear it (in devfs_reclaim) under the dev_lock(). Reviewed by: tegge Approved by: pjd (mentor) Notes: svn path=/head/; revision=163529
* Sort MFILES listWarner Losh2006-10-201-2/+2
| | | | | | | Noticed by: ru@ Notes: svn path=/head/; revision=163528
* MFp4: when passing the transfer up the foodchain, make sure we go upWarner Losh2006-10-201-2/+4
| | | | | | | the food chain. devi == NULL is the error condition. Treat it as such. Notes: svn path=/head/; revision=163527
* MFp4: Working SPI driver.Warner Losh2006-10-201-53/+66
| | | | Notes: svn path=/head/; revision=163526
* Commit WIP SSC driver, more work is needed here, but it configuresWarner Losh2006-10-201-6/+26
| | | | | | | things OK. Notes: svn path=/head/; revision=163525
* More register definitions.Warner Losh2006-10-201-0/+105
| | | | Notes: svn path=/head/; revision=163524
* Progress commit for getting TWI workingWarner Losh2006-10-201-17/+23
| | | | Notes: svn path=/head/; revision=163523
* Add sysctl to export current state of rmii vs mii configuraiton.Warner Losh2006-10-201-2/+12
| | | | | | | Fix a typo in resource allocation. Notes: svn path=/head/; revision=163522
* Add configuration of the SSC lines for second SSC.Warner Losh2006-10-201-0/+2
| | | | Notes: svn path=/head/; revision=163521
* Add mmcbr_if.m and mmcbus_if.m to the mix.Warner Losh2006-10-201-1/+2
| | | | Notes: svn path=/head/; revision=163520
* Loadable modules for mmc (the bus) amd mmcsd (the MMC and SD supportWarner Losh2006-10-202-0/+16
| | | | | | | code). A little green, so not yet connected to the build. Notes: svn path=/head/; revision=163519
* MMC/SD bridge driver (host adapter) for AT91RM9200's MCI interface.Warner Losh2006-10-202-0/+853
| | | | | | | | | This interface also appears in the AT91SAM9260 and '61 as well as the AVR32 based micros from Atmel. We don't yet support write protect or hot-swap in this bridge driver. Notes: svn path=/head/; revision=163517
* Preliminary MMC stack. This stack supports SD 1.0 cards only, butWarner Losh2006-10-209-0/+1698
| | | | | | | | | should be easily adapted to SD 2.0 (aka SDHC), SDIO, MMC and MMCplus cards. At the present time, there's only one bridge driver for the ARM9 based Atmel AT91RM9200. Notes: svn path=/head/; revision=163516
* - Define time_t in sys/sem.h so it doesn't require sys/types.h.John Baldwin2006-10-191-14/+17
| | | | | | | | | | | | | | | - Move the pid_t, size_t, and time_t definitions earlier in the file, sort them, and fix whitespace. - Drop redundant includes of sys/cdefs.h and sys/_types.h as sys/ipc.h already includes them. PR: kern/104436 Reviewed by: bde Reported by: clsung MFC after: 3 days Notes: svn path=/head/; revision=163506
* style(9)David E. O'Brien2006-10-191-153/+153
| | | | Notes: svn path=/head/; revision=163504
* style(9) cleanup.David E. O'Brien2006-10-191-243/+332
| | | | Notes: svn path=/head/; revision=163503
* There is no reason to have a PAGE_SIZE alignment enforced on all DMA by theScott Long2006-10-191-1/+1
| | | | | | | parent tag. Notes: svn path=/head/; revision=163502
* I can't find any reason why an 8 byte alignment should be enforced on rxScott Long2006-10-191-3/+3
| | | | | | | | and tx buffers. Fix it there, and also don't have it be overridden by the parent tag. Notes: svn path=/head/; revision=163501
* Remove some spurious debugging, and use more complete error handling forScott Long2006-10-191-10/+20
| | | | | | | tx load and fragmentation problems. Notes: svn path=/head/; revision=163499
* Add missing acpi_wakecode.o: assym.s dependency, so that if assym.sRuslan Ermilov2006-10-191-1/+1
| | | | | | | | | is newer than acpi_wakecode.h, the latter is rebuilt. Reported by: bde Notes: svn path=/head/; revision=163498
* tweak comments about OLDCARD workaroundsWarner Losh2006-10-191-2/+1
| | | | Notes: svn path=/head/; revision=163497
* tweak commentWarner Losh2006-10-191-1/+2
| | | | Notes: svn path=/head/; revision=163496
* Remove references to pccard.confWarner Losh2006-10-193-5/+5
| | | | Notes: svn path=/head/; revision=163494
* Use a different task queue for host controller and peripheral driverIan Dowse2006-10-198-39/+74
| | | | | | | | | | | | | | | tasks. Since the host controllers rely on tasks to process transfer timeouts, if a synchronous transfer from a driver was invoked from a task and timed out, it would never complete because the single task thread was stuck performing the synchronous transfer so couldn't process the timeout. This affected the axe, udav and ural drivers. Problem hardware provided by: guido Notes: svn path=/head/; revision=163493
* Fix previous revision:Marcel Moolenaar2006-10-191-2/+2
| | | | | | | | | o day and mday are the same. No need to subtract 1 from mday. o Set dow to -1 as clock_ct_to_ts() checks this field and returns EINVAL on any day of the week but Sunday. Notes: svn path=/head/; revision=163492
* Fix remaining compile error.Peter Grehan2006-10-182-2/+2
| | | | Notes: svn path=/head/; revision=163488
* Properly lock the vnode around vgone() calls.Konstantin Belousov2006-10-184-25/+113
| | | | | | | | | | | | | | Unlock the vnode in devfs_close() while calling into the driver d_close() routine. devfs_revoke() changes by: ups Reviewed and bugfixes by: tegge Tested by: mbr, Peter Holm Approved by: pjd (mentor) MFC after: 1 week Notes: svn path=/head/; revision=163481
* Check pointer before dereferencing.Gleb Smirnoff2006-10-181-1/+2
| | | | | | | | Reported by: Coverity CID: 1556 Notes: svn path=/head/; revision=163475
* kern_intr.c:Bruce Evans2006-10-182-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | - Count (scheduling of) software interrupts (SWIs) as SWIs, not as hardware interrupts. - Don't count (scheduling of) delayed SWIs as interrupts at all, since in the delayed case it is expected that there are many more scheduling calls than handling calls. Perhaps all interrupts should be counted only when they are handled, but it is only counts of delayed SWIs that shouldn never be combined with the other counts. subr_trap.c: - Count (handling of) Asynchronous System Traps (ASTs) as traps, not as software interrupts. Before these changes, the counter for SWIs only counted ASTs, and SWIs weren't counted separately, but a subcounter for ASTs alone is less needed than for most other exception sources. 4.4BSD-Lite uses the counters for similar things (actually matching their names) on its main arches (hp300, ..., !i386) where more of the exceptions are in hardware. Notes: svn path=/head/; revision=163474