summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Do a pass over all modules in the kernel and make them return EOPNOTSUPPphk2004-07-1559-20/+101
| | | | | | | | for unknown events. A number of modules return EINVAL in this instance, and I have left those alone for now and instead taught MOD_QUIESCE to accept this as "didn't do anything".
* Cleanup shutdown output.alfred2004-07-152-7/+4
|
* A couple of grammar fixes in the bktr options section.roam2004-07-151-4/+4
| | | | | | PR: 66828 (mostly) Submitted by: Michel Lavondes <fox@vader.aacc.cc.md.us> MFC after: 2 weeks
* Tidy up system shutdown.alfred2004-07-152-6/+24
|
* type prgregset_t really should be an array. this is odd, however, otherdavidxu2004-07-151-1/+1
| | | | | | systems defined interfaces in thread_db.h use prgregset_t but not prgregset_t * to be a output parameter, this is the only way to maintain source code compatible with them.
* Disable SIGIO for now, leave a comment as to why it's busted and hardalfred2004-07-151-0/+20
| | | | to fix.
* Clean up the output on reboot by keeping completion messages on the samenjl2004-07-151-2/+2
| | | | | | line as the announcement. Someone should probably update the "buffers remaining" message since we now no longer should have any buffers remaining at that point.
* A loop in pmap_remove() should use TAILQ_FOREACH_SAFE(), notalc2004-07-151-2/+2
| | | | | | TAILQ_FOREACH(), because the loop deletes elements from the list. Reviewed by: marcel@
* A module with no modevent function gets modevent_nop() as default.phk2004-07-141-1/+9
| | | | | | | | | | | | | Until now the function has just returned zero for any event, but that is downright wrong for MOD_UNLOAD and not very useful for any future events we add where it may be crucial to be able to tell if the event was unhandled or successful. Change the function to return as follows: MOD_LOAD -> 0 MOD_UNLOAD -> EBUSY anything else -> EOPNOTSUPP
* Add a comment separator.njl2004-07-141-1/+1
|
* Add a note indicating that the eh_prototype field used to constructrwatson2004-07-141-0/+4
| | | | ethernet headers is unsynchronized.
* Add a mutex ng_tty_mtx to protect the global variable ngt_unit. Noterwatson2004-07-141-0/+10
| | | | | that the locking of globals here isn't complete, and there's also a locking issue relating to calling into and out of the tty code.
* Add ng_ppp_latencies_mtx, a global mutex to protect the latency list.rwatson2004-07-141-0/+11
| | | | | | Note that the table is a hack, and so is this mutex. Reviewed by: glebius
* Introduce a new mutex, ng_fec_mtx, to protect the global unit list torwatson2004-07-141-1/+10
| | | | | | synchronization allocation of FEC unit numbers. Reviewed by: glebius
* Introduce a new mutex, ng_eiface_mtx, to protect the global unit listrwatson2004-07-141-1/+11
| | | | | | | lock used to synchronize allocation of unit numbers for new netgraph ethernet interfaces. Reviewed by: glebius
* Introduce a new mutex, ng_iface_mtx, to protect the global unit listrwatson2004-07-141-1/+12
| | | | | | | | lock used to synchronize allocation of unit numbers for new netgraph interfaces. Reviewed by: glebius Tested by: glebius
* Some laptops report the "design-capacity" instead of the "real-capacity"marks2004-07-141-0/+9
| | | | | | | | when the battery is fully charged. That breaks some of the arithmetic in calculating the remaining capacity (ends up with more than 100%). This commit makes sure the max is 100. Approved by: njl
* In addition to the real user ID check, do an explicit jailcsjp2004-07-141-2/+3
| | | | | | | | | | check to ensure that the caller is not prison root. The intention is to fix file descriptor creation so that prison root can not use the last remaining file descriptors. This privilege should be reserved for non-jailed root users. Approved by: bmilekic (mentor)
* Correct bounds check in lapic_create().jhb2004-07-141-1/+1
| | | | Submitted by: "Ted Unangst" tedu at coverity.com
* Unbreak LINT: device card no longer takes a count.des2004-07-141-1/+1
|
* Make sure to update the mnt_stats before UFS1 extattr tried tophk2004-07-141-5/+4
| | | | | do I/O on the device. Otherwise the blocksize is undefined in the buffer cache.
* Fix a copy-and-paste-o in IFQ_DRV_PREPEND - all pointyhats to me.mlaier2004-07-141-5/+5
| | | | | | | While here also fix a (not less stupid) braino in IFQ_DRV_PURGE. Reported-by: clement Tested-by: clement (_PREPEND in sis(4))
* Like on i386, eliminate pv_ptem (which was suggested by alc). Thispeter2004-07-142-30/+58
| | | | | | | | | | | | | | | | | reduces the size of the pv_entry structure a small but significant amount. This is implemented a little differently because it isn't so cheap to get the physical address of the page tabke page on amd64.. instead of it being directly accessible from the top level page directory, it is now two additional tree levels down. However.. In almost all cases, we recently had the physical address if the page table page a short while before we needed it, but it slipped through our fingers. This patch saves it for when we do need it. Also, for the one case where we do not have the ptp paddr, we are always running in curproc context and so we can do a vtopte-like trick. I've implemented vtopde() for this purpose. There is still a CYA entry in pmap_unuse_pt() that needs to be removed. I think it can be removed now but I forgot to test with it gone.
* Remove fdc_alloc_resources, which should have happened in last commit.imp2004-07-142-143/+2
|
* Make FIOASYNC, FIOSETOWN and FIOGETOWN work on kqueues.alfred2004-07-142-3/+32
|
* Fix the pccard attachment to have a chance of working.imp2004-07-142-32/+214
| | | | Move the resource allocation into the bus front ends.
* Follow PnP location string change in acpi.c.takawata2004-07-141-1/+1
|
* do { } while(0) KNOTE macro, whitespacealfred2004-07-141-2/+3
|
* Additional pmap lockingalc2004-07-141-28/+49
|
* Switch snoop device to using C99 initialization for struct linesw.rwatson2004-07-141-2/+8
|
* Convert SLIP to using C99 structure initialization for its structrwatson2004-07-141-2/+8
| | | | linesw.
* In pmap_remove_pages(), when clearing a pte, update the correspondingalc2004-07-141-0/+4
| | | | | | page's dirty mask. Reviewed by: gallatin@
* Regenpeter2004-07-144-9/+4
|
* Unmapped syscalls should be NOPROTO so that we don't get a duplicatepeter2004-07-141-1/+1
| | | | prototype. (kldunloadf in this case)
* In pmap_remove_pages(), when the pv_list is entry, we want to clean thecognet2004-07-131-3/+2
| | | | | | PG_WRITEABLE flag, not the PG_REFERENCED flag. Submitted by: alc
* Set TDF_NEEDRESCHED when a higher priority thread is scheduled injhb2004-07-131-1/+1
| | | | | | | | | sched_add() rather than just doing it in sched_wakeup(). The old ithread preemption code used to set NEEDRESCHED unconditionally if it didn't preempt which masked this bug in SCHED_4BSD. Noticed by: jake Reported by: kensmith, marcel
* Give kldunload a -f(orce) argument.phk2004-07-1317-33/+91
| | | | | | | | | | | | | | | | | Add a MOD_QUIESCE event for modules. This should return error (EBUSY) of the module is in use. MOD_UNLOAD should now only fail if it is impossible (as opposed to inconvenient) to unload the module. Valid reasons are memory references into the module which cannot be tracked down and eliminated. When kldunloading, we abandon if MOD_UNLOAD fails, and if -force is not given, MOD_QUIESCE failing will also prevent the unload. For backwards compatibility, we treat EOPNOTSUPP from MOD_QUIESCE as success. Document that modules should return EOPNOTSUPP for unknown events.
* Add kldunloadf() system call. Stay tuned for follwing commit messages.phk2004-07-132-2/+4
|
* Clean up our pnpinfo and location strings.njl2004-07-131-7/+5
|
* Call device_identify routines after doing the namespace walk. This isnjl2004-07-131-8/+6
| | | | | | | | | needed so that sysresource objects are created first to reserve all regions, then other devices can allocate from them. Otherwise, acpi_timer (the only ACPI device with an identify routine), would allocate its resources from the nexus, causing the later sysresource reserve to fail. Debugging by: Taku YAMAMOTO, Andrea Campi
* Send the fla driver in the Atticphk2004-07-137-1614/+0
|
* Desupport M-Systems DiskOnChip driver "fla"phk2004-07-132-10/+0
|
* fix compilation.phk2004-07-131-1/+1
|
* oldcard's card device no longer requires a countimp2004-07-132-2/+2
|
* Rev 1.24 of sys/ptrace.h adds ptrace_clear_single_step() prototypekensmith2004-07-131-1/+0
| | | | | | | definition so this one causes "redundant declaration" error and breaks Alpha kernel build. Reviewed by: gallatin@ and test build on beast
* Remove erroneous semicolons.stefanf2004-07-135-6/+6
|
* Merged from recent fdc driver changes.nyan2004-07-136-194/+294
| | | | Make a separate function to check FDD type.
* Replace "uid != 0" with "suser(td->td_ucred) != 0" when checking if we'vecperciva2004-07-131-1/+2
| | | | | hit the maximum number of processes. The last ten processes are reserved for the *non-jailed* superuser.
* MFi386: revision 1.213.nyan2004-07-133-48/+60
| | | | Fix miss merging in previous change.
* Remove unused macro.pjd2004-07-131-9/+0
|
OpenPOWER on IntegriCloud