summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Remove yet another deadlock case.mckusick2001-05-111-3/+6
|
* Fix world-breaking typo in previous commit.grog2001-05-111-1/+1
|
* Un-swap irq/link byte values so that printf works.msmith2001-05-113-3/+3
|
* Trim lots of stuff that is now in MI code along with MD alpha code.jhb2001-05-101-324/+7
|
* - Split out the support for per-CPU data from the SMP code. UP kernelsjhb2001-05-1017-79/+139
| | | | | | | have per-CPU data and gdb on the i386 at least needs access to it. - Clean up includes in kern_idle.c and subr_smp.c. Reviewed by: jake
* Try to read the station address twice during the probe. I've seenwpaul2001-05-101-1/+7
| | | | | | | a LinkSys card here in the office where reading the station address fails the first time, but works find afterwards. Without this, the probe fails. I don't think this will negatively impact any existing cards, but I want to confirm this before MFC'ing.
* - Use sched_lock and critical regions to ensure that LDT updates are threadjhb2001-05-107-63/+100
| | | | | | | safe from preemption and concurrent access to the LDT. - Move the prototype for i386_extend_pcb() to <machine/pcb_ext.h>. Reviewed by: silence on -hackers
* The new order of things is that dwlpxN is now called pcibN- so hack aroundmjacob2001-05-101-2/+4
| | | | | *that* whilst we ponder the best way to decide how to register dwlpx interrupts with TLSB.
* Fix the panics for real this time. When something can't be allocated,imp2001-05-101-24/+27
| | | | | | | | | | | | | we need to delete the info from the list as well as zero out the res pointer we saved in the code. Also made a few style(9) changes while I was at it. Don't use if (ptr) or if (!ptr), but compare against NULL. Compare against NULL rather than 0. Don't have useless blocks. There are likely other problems as well, but at least the wi based wireless card with memory listed in its cis doesn't panic the system when the card is inserted.
* add alpha_pci_route_interrupt methodmjacob2001-05-101-2/+4
|
* Quick hack to reintroduce the notion that there might be alpha platformsmjacob2001-05-101-20/+82
| | | | without an i8254 timer/counter. This really needs to be cleaned up.
* FICL 2.05 has a flawed definition of BASE. Fix it.dcs2001-05-101-1/+1
| | | | Spotted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
* Include sys/lock.h for witness_list_locks() and axe unneeded sys/mutex.hjhb2001-05-091-1/+1
| | | | include.
* Add in commented out entries for NEWCARD so that they are at leastjhb2001-05-092-0/+30
| | | | | | | documented. They cannot be turned on by default due to conflicting symbols at link time between OLDCARD and NEWCARD. Approved by: imp
* The sk driver developed a bug when the multicast code was changed towpaul2001-05-092-12/+14
| | | | | | | | | | | | | | use TAILQ macros. The sk_attach_xmac() routine calls sk_init_xmac() before doing the transceiver probe, but *before* ether_ifattach() is called. This causes sk_init_xmac() to call sk_setmulti(), which tries to do a TAILQ_FOREACH(), which it can't do because ether_ifattach() hasn't done a TAILQ_INIT() yet. This causes a NULL pointer dereference and panic in sk_setmulti() at driver load/initialization time. Fixed by calling ether_ifattach() before the MII probe. The code in RELENG_4 still uses the old way of enumerating the multicast list and doesn't have this problem. Yet.
* Add include of sys/mutex.h and resort include of sys/lock.h.jhb2001-05-091-1/+2
|
* Add needed sys/lock.h include.jhb2001-05-091-0/+1
|
* Remove the error var, it hides the real one.sos2001-05-091-1/+1
| | | | | | | PR 27213. BTW the CDIOCREADAUDIO ioctl is deprecated, its not longer needed and was an ugly hack from start on.
* Avoid overflow when converting ticks to jiffies.des2001-05-092-2/+2
| | | | | PR: 27215 Submitted by: Jim Pirzyk <Jim.Pirzyk@disney.com>
* Eliminate some panics for errors we can recover from.dmlb2001-05-092-164/+121
| | | | | | | | | | | Reduce the verbose memory map setup reports and work with pccardd to set the common memory map up. Use enumeration values for CARD_SET_RES_FLAGS. Use DELAY when spinning waiting for the card to come free instead of a loop. MFC: after 1 week
* Use enumeration values for CARD_SET_RES_FLAGS.dmlb2001-05-081-4/+13
| | | | | | | Remove panic on out of range io window and return ENXIO. Add a similar check for memory windows. Approved by: imp
* Use enumeration types for CARD_SET_RES_FLAGS.dmlb2001-05-081-1/+2
| | | | Approved by: imp
* Add additional enumeration types for CARD_SET_RES_FLAGS.dmlb2001-05-081-1/+5
| | | | | Approved by: imp MFC: after 1 week
* Add a sysctl pair for the pcic memory allocation rangedmlb2001-05-081-3/+16
| | | | | | | | | | | | | machdep.pccard.pcic_mem_start machdep.pccard.pcic_mem_end and default the range to IOM_BEGIN/IOM_END. This may prove useful to if_ray users (and others) on more modern hardware that maps BIOS stuff into 0xd000-0xdffff. MFC: after 1 week Approved by: imp
* - Eliminate locks in functions called only during probe and attach.tanimura2001-05-081-10/+15
| | | | | | - Finish transmitting data to mpu when a buffer gets empty. Submitted by: KUROSAWA Takahiro <fwkg7679@mb.infoweb.ne.jp>
* Polish error handling with biofinish().phk2001-05-082-28/+30
|
* Polish error handling code using biofinish()phk2001-05-081-6/+1
|
* Remove an 'optimization' I hope to never see again.alfred2001-05-081-89/+111
| | | | | | | | | | | | | | | | | | The pipe code could not handle running out of kva, it would panic if that happened. Instead return ENFILE to the application which is an acceptable error return from pipe(2). There was some slightly tricky things that needed to be worked on, namely that the pipe code can 'realloc' the size of the buffer if it detects that the pipe could use a bit more room. However if it failed the reallocation it could not cope and would panic. Fix this by attempting to grow the pipe while holding onto our old resources. If all goes well free the old resources and use the new ones, otherwise continue to use the smaller buffer already allocated. While I'm here add a few blank lines for style(9) and remove 'register'.
* Exploit recent improvements in the disk minilayer to simplify errorphk2001-05-085-75/+39
| | | | | | | | handling a bit. Dogmatic lingupurists can celebrate that a number of gotos got removed. Reviewed by: mjacob, ken
* Always initialize bio_resid from bio_bcount in the disk mini-layer sophk2001-05-081-1/+1
| | | | that the drivers don't have to do it umpteen times.
* Remove all the mutex stuff - suggested by jhbbrian2001-05-084-49/+12
| | | | | | Tidy up includes, credit Slawa Olhovchenkov, John Prince and Eric Hernes for their efforts and add a couple of missing parenthesis around return expressions.
* When running with soft updates, track the number of blocks and filesmckusick2001-05-0811-19/+125
| | | | | | | | | | | | | that are committed to being freed and reflect these blocks in the counts returned by statfs (and thus also by the `df' command). This change allows programs such as those that do news expiration to know when to stop if they are trying to create a certain percentage of free space. Note that this change does not solve the much harder problem of making this to-be-freed space available to applications that want it (thus on a nearly full filesystem, you may still encounter out-of-space conditions even though the free space will show up eventually). Hopefully this harder problem will be the subject of a future enhancement.
* Several fixes for units errors:mckusick2001-05-081-10/+19
| | | | | | | | | | | | | | | | | 1) Do not assume that the superblock will be of size fs->fs_bsize. This fixes a panic when taking a snapshot on a filesystem with a block size bigger than 8K. 2) Properly calculate the number of fragments that follow the superblock summary information. This fixes a bug with inconsistent snapshots. 3) When cleaning up a snapshot that is about to be removed, properly calculate the number of blocks that need to be checked. This fixes a bug that created partially allocated inodes. 4) When moving blocks from a snapshot that is about to be removed to another snapshot, properly account for the reduced number of blocks in the snapshot from which they are taken. This fixes a bug in which the number of blocks released from a snapshot did not match the number that it claimed to have.
* When syncing out snapshot metadata, we must temporarily allow recursivemckusick2001-05-081-27/+29
| | | | | buffer locking so as to avoid locking against ourselves if we need to write filesystem metadata.
* Ricoh RL5C46x cardbus bridges have the bits for 3E0 and 3E2. Theimp2001-05-082-8/+0
| | | | | | RL5C47x cards do not. Only set them for that set of bridges. Submitted by: shiba (Takeshi Shibagaki-san)
* Add some additional register definitions for some work I have in progress.imp2001-05-082-0/+4
|
* sys/mutex.h requires sys/lock.h for LINTbrian2001-05-071-0/+1
| | | | Re-spotted by: phk
* Set the slot pointer in the pc98 case. Correct the name of the bridgeimp2001-05-071-2/+5
| | | | | | | | chip to the one that the Japanese use. Now we get insert/remove events on my PC-9821Ne. More work in bus space is needed to make drivers work. MFC after: 3 days
* Minor updates:msmith2001-05-075-30/+47
| | | | | | | | - Rework of twe_report_request to use the command status value rather than the flags register. (Joel Jacobson @ 3ware) - Update to match some changes in -current vs. stable. MFC in: 1 week
* Properly copy the P_ALTSTACK flag in struct proc::p_flag to the childknu2001-05-072-1/+2
| | | | | | | | | | | | | | | | | | process on fork(2). It is the supposed behavior stated in the manpage of sigaction(2), and Solaris, NetBSD and FreeBSD 3-STABLE correctly do so. The previous fix against libc_r/uthread/uthread_fork.c fixed the problem only for the programs linked with libc_r, so back it out and fix fork(2) itself to help those not linked with libc_r as well. PR: kern/26705 Submitted by: KUROSAWA Takahiro <fwkg7679@mb.infoweb.ne.jp> Tested by: knu, GOTOU Yuuzou <gotoyuzo@notwork.org>, and some other people Not objected by: hackers MFC in: 3 days
* Disable the card after sending the removed event up to the pccardimp2001-05-071-1/+1
| | | | | | | | | | | | | | | | layer. This fixes an ordering problem that would cause the ISR for the device to run with now power applied to the device. Most cards failed to deal with this gracefully, and thus would hang on card eject. The power down event, for those keeping score, is what causes the interrupt for the card. Many folks in the Japanese nomads list have reported this, so I'll be MFCing quickly for their benefit. Submitted by: Masayuki FUKUI MFC after: 2 days
* Remove if_ray_oldcard.h because pccard support multiple windows now.dmlb2001-05-073-140/+11
| | | | | Setup attribute memory resource in ray_probe so that it is added to the print out of the resource list on card insertion.
* Change COM_LOCK/COM_UNLOCK to a regular mutex - still conditional onbrian2001-05-074-25/+25
| | | | SMP being defined.
* Make the disk mini-layer check for and handle zero-length transfersphk2001-05-069-50/+6
| | | | instead of the underlying drivers.
* Make LINT compile again.brian2001-05-061-0/+1
| | | | Spotted by: phk
* Actually biofinish(struct bio *, struct devstat *, int error) is more generalphk2001-05-0629-154/+75
| | | | | | than the bioerror(). Most of this patch is generated by scripts.
* Introduce bioerror(struct bio*, int err, int complete);phk2001-05-061-0/+10
|
* Remove unneeded devfs_badop()phk2001-05-061-10/+0
| | | | Noticed by: rwatson
* Fix return type of vop_stdputpages()phk2001-05-061-1/+2
| | | | Noticed by: rwatson
* Fix a panic if MD devices were left half-created.phk2001-05-061-14/+12
| | | | | | | XXX: the real bug is that devstat isn't part of the disk minilayer. PR: 27158 Submitted by: Anders Nordby <anders@fix.no>
OpenPOWER on IntegriCloud