summaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Remove the enclose_print() call, it is already called from ata-disk.cSøren Schmidt2003-03-101-1/+0
| | | | Notes: svn path=/head/; revision=112055
* Dont use r_bmio on Cyrix chips if not set from BIOS.Søren Schmidt2003-03-101-2/+5
| | | | Notes: svn path=/head/; revision=112054
* Fix two rounds of breakages and cleanup. Remove the sccdebug sysctlMarcel Moolenaar2003-03-101-55/+11
| | | | | | | | | while I'm here and garbage collect dead code (ssc_clone). Define d_maxsize as DFLTPHYS for now because that's what it will be if we don't define it. Notes: svn path=/head/; revision=112051
* Add a a sysctl, hw.kbd.keymap_restrict_change, which acts a bitDavid Malone2003-03-091-0/+144
| | | | | | | | | | | | | | | | | | | | | | | | like secure level but which restricts changes to the keymap. Its values impose the following restrictions: 0: No restriction - this is the default. 1: Only root can change restricted keys (like boot, panic, ...) 2: Only root can change restricted keys and regular keys. Other users still can change accents and function keys. 3: Only root can change restricted keys, regular keys and accents. 4: Only root can change any of the keymap (restricted keys, regular keys, accents and function keys). Unfortunately, the keyboard's accent map is cleared when a new keymap is loaded, which makes the distinction between level 3 and level 4 less useful. The MAC guys might like to make this a policy? No objections from: -audit about 6 moths ago Notes: svn path=/head/; revision=112050
* Don't call make_dev() before we are ready for it.Poul-Henning Kamp2003-03-091-1/+9
| | | | Notes: svn path=/head/; revision=112046
* Remove some unnecessary actions by the zero-copy setup and teardown code.Alan Cox2003-03-091-10/+1
| | | | | | | | | | | | Remove an incorrect comment. (Incrementing an object's reference count does not prevent a process from exiting. The real concern here is that the physical page must not be deleted until transmission is complete. That is already handled by the VM system and sf_buf_free().) Tested by: ken Notes: svn path=/head/; revision=112045
* Fix device freeze to reduce output packet size.Shunsuke Akiyama2003-03-094-5/+39
| | | | | | | And make this value configurable by kernel config or sysctl. Notes: svn path=/head/; revision=112041
* Fix page fault with FTDI's USB serial device.Shunsuke Akiyama2003-03-091-4/+23
| | | | | | | | Fix lost characters counting. Move setting receiver state to proper place on ucomstopread(). Notes: svn path=/head/; revision=112040
* Fix duplicate sc_dying usage.Shunsuke Akiyama2003-03-092-13/+8
| | | | | | | | All drivers which depend on ucom interfaces should use only one sc_dying. Notes: svn path=/head/; revision=112039
* Add missing module dependency.Shunsuke Akiyama2003-03-092-0/+2
| | | | Notes: svn path=/head/; revision=112038
* Note that MAJOR_AUTO is now the default if d_maj is not initialized. ThisPoul-Henning Kamp2003-03-097-8/+3
| | | | | | | | | | | is more robust and prevents the hijacking of /dev/console for the typical mistake. Remove unneeded MAJOR_AUTO uses, it is only needed explicitly now if the driver source has cross-branch compatibility to old releases. Notes: svn path=/head/; revision=112037
* Define MAJOR_AUTO as zero, which means that leaving out an initializationPoul-Henning Kamp2003-03-092-2/+2
| | | | | | | | | | of d_maj means "allocate major number automatically". Keep the definition of MAJOR_AUTO to make life easier for cross-branch source maintainers. Notes: svn path=/head/; revision=112036
* Add one little hack to allow us to make MAJOR_AUTO be zero:Poul-Henning Kamp2003-03-092-12/+9
| | | | | | | | Let the console driver ask for major 256 and magically change this to mean zero. Notes: svn path=/head/; revision=112035
* MFi386: revision 1.1079Yoshihiro Takahashi2003-03-091-6/+5
| | | | Notes: svn path=/head/; revision=112034
* Merged from sys/dev/syscons/syscons.c revision 1.396.Yoshihiro Takahashi2003-03-091-0/+4
| | | | Notes: svn path=/head/; revision=112033
* Merged from sys/dev/sio/sio.c revisions 1.387 and 1.388.Yoshihiro Takahashi2003-03-092-4/+22
| | | | Notes: svn path=/head/; revision=112032
* Build the drm module also on pc98.Yoshihiro Takahashi2003-03-091-1/+1
| | | | Notes: svn path=/head/; revision=112031
* Remove unneeded #include of geom_stats.hPoul-Henning Kamp2003-03-092-2/+0
| | | | Notes: svn path=/head/; revision=112030
* Stamp out Danglish.Poul-Henning Kamp2003-03-091-1/+1
| | | | Notes: svn path=/head/; revision=112029
* Don't use statistics counters to detect outstanding I/O.Poul-Henning Kamp2003-03-091-1/+1
| | | | Notes: svn path=/head/; revision=112028
* Don't abuse the statistics counters for detecting if we have outstandingPoul-Henning Kamp2003-03-091-6/+10
| | | | | | | | I/O requests, instead use the new dedicated fields in the consumer and provider to track this. Notes: svn path=/head/; revision=112027
* Add u_int nstart, nend counters to consumer and providers so we will notPoul-Henning Kamp2003-03-091-0/+2
| | | | | | | | | | | | have to examine the stats structure to tell if we have outstanding I/O requests. Making them u_int improves the chance of atomic updates to them, but risks roll-over. Since the only interesting property is if they are equal or not, this is not an issue. Notes: svn path=/head/; revision=112026
* When a DEV class consumer is orphan'ed we need to wait for all thePoul-Henning Kamp2003-03-091-11/+20
| | | | | | | | | | | | | outstanding requests to return before we unravel the mesh. It is very important that the stuff below us plays nice and don't overlook a couple of outstanding bio's, because until they remember the geom event thread is blocked. At an expense in code here this could be made more robust, but I actually _want_ a robust failure in this case so any offending drivers can be fixed. Notes: svn path=/head/; revision=112024
* Cosmetic change, make it QUEUE_MACRO_DEBUG friendlyDavid Xu2003-03-091-1/+1
| | | | Notes: svn path=/head/; revision=112021
* Update the DRM to latest from DRI CVS. This is approximately the versionEric Anholt2003-03-0958-5842/+6128
| | | | | | | | | | included in XFree86 4.3, but includes some fixes. Notable changes include Radeon 8500-9100 support, PCI Radeon/Rage 128 support, transform & lighting support for Radeons, and vblank syncing support for r128, radeon, and mga. The gamma driver was removed due to lack of any users. Notes: svn path=/head/; revision=112015
* Hold the proc lock while accessing p_procsig in trapsignal().Tim J. Robbins2003-03-091-1/+2
| | | | Notes: svn path=/head/; revision=112014
* Discard the packet if the netisr queue is null instead of panicing, forJonathan Lemon2003-03-081-2/+8
| | | | | | | the benefit of modules which are compiled differently than the kernel. Notes: svn path=/head/; revision=112011
* Remove check for t_state == TCPS_TIME_WAIT and introduce the tw structure.Jonathan Lemon2003-03-081-13/+15
| | | | | | | Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=112010
* Remove a panic(); if the zone allocator can't provide more timewaitJonathan Lemon2003-03-087-73/+116
| | | | | | | | | | structures, reuse the oldest one. Also move the expiry timer from a per-structure callout to the tcp slow timer. Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=112009
* Fix module build by adding options to Makefile.Jonathan Lemon2003-03-082-2/+24
| | | | Notes: svn path=/head/; revision=112008
* Retire devstat_add_entry() as a public function and bump __FreeBSD_versionPoul-Henning Kamp2003-03-083-7/+7
| | | | | | | to mark this act. Notes: svn path=/head/; revision=112007
* Allocate the devstat structure with devstat_new_entry().Poul-Henning Kamp2003-03-088-90/+81
| | | | Notes: svn path=/head/; revision=112006
* Correct names for fxp devices. Sort data by devid inJohn Polstra2003-03-081-20/+20
| | | | | | | | | | | | fxp_ident_table. PR: kern/48699 Submitted by: Sergey A. Osokin <osa@FreeBSD.org.ru> Obtained from: NetBSD (the device strings, that is) MFC after: 4 weeks Notes: svn path=/head/; revision=112005
* Allocate the devstat structure with devstat_new_entry().Poul-Henning Kamp2003-03-085-24/+19
| | | | Notes: svn path=/head/; revision=112004
* Allocate devstat structure with devstat_new_entry().Poul-Henning Kamp2003-03-081-2/+1
| | | | Notes: svn path=/head/; revision=112002
* Introduce a device driver for /dev/devstat, this will allow us to mmapPoul-Henning Kamp2003-03-081-0/+112
| | | | | | | | | | the device statistics structures into userland instead of using sysctl. Introduce new devstat_new_entry() function which allocates the devstat structure an calls devstat_add_entry() on it. Notes: svn path=/head/; revision=112001
* Augment the devstat structure with 3 new fields and bump the DEVSTAT_VERSION.Poul-Henning Kamp2003-03-081-1/+14
| | | | | | | | | Two fields are sequence numbers for integrity check when we switch devstat to use mmap to export data rather than sysctl, the last field is to mark this as an allocated devstat entry. Notes: svn path=/head/; revision=112000
* Revert last change and insure the driver can support other address families.Jonathan Lemon2003-03-081-0/+18
| | | | | | | Pointed out by: ume, matusita Notes: svn path=/head/; revision=111999
* The tun driver is INET only. Don't pretend to support other address families.Jonathan Lemon2003-03-081-25/+0
| | | | | | | Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=111998
* Include correct opt_* headers for supported address families. Dike outJonathan Lemon2003-03-081-10/+5
| | | | | | | | | the unused ATM cases. Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=111997
* Centralize the devstat handling for all GEOM disk device driversPoul-Henning Kamp2003-03-0856-250/+62
| | | | | | | | | | | in geom_disk.c. As a side effect this makes a lot of #include <sys/devicestat.h> lines not needed and some biofinish() calls can be reduced to biodone() again. Notes: svn path=/head/; revision=111979
* Remove unimplemented IP-in-IPX encapsulation support (options IPTUNNEL).Tim J. Robbins2003-03-086-62/+0
| | | | Notes: svn path=/head/; revision=111978
* Zero copy send and receive fixes:Kenneth D. Merry2003-03-082-3/+10
| | | | | | | | | | | | | | | | | | | | | - On receive, vm_map_lookup() needs to trigger the creation of a shadow object. To make that happen, call vm_map_lookup() with PROT_WRITE instead of PROT_READ in vm_pgmoveco(). - On send, a shadow object will be created by the vm_map_lookup() in vm_fault(), but vm_page_cowfault() will delete the original page from the backing object rather than simply letting the legacy COW mechanism take over. In other words, the new page should be added to the shadow object rather than replacing the old page in the backing object. (i.e. vm_page_cowfault() should not be called in this case.) We accomplish this by making sure fs.object == fs.first_object before calling vm_page_cowfault() in vm_fault(). Submitted by: gallatin, alc Tested by: ken Notes: svn path=/head/; revision=111977
* Lock sched_lock before modifying td_flags.David Xu2003-03-082-0/+4
| | | | Notes: svn path=/head/; revision=111976
* Initialize eflags in fake frame to default value rather than random one.David Xu2003-03-082-0/+2
| | | | | | | | | | The random value sometimes causes macro CLKF_USERMODE to return true because PSL_VM bit is set and really shoudn't be, this causes statclock() to execute in wrong path, and further breaks KSE code and kernel crashes when executing threaded program. Notes: svn path=/head/; revision=111975
* Use the appropriate size when zeroing out the unused portionKirk McKusick2003-03-071-3/+3
| | | | | | | | | | | of a snapshot's copy of a superblock. This patch fixes a panic when taking a snapshot of a 4096/512 filesystem. Reported by: Ian Freislich <ianf@za.uu.net> Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=111972
* Replace u_int with "unsigned int" to prevent following errors:Andrey A. Chernov2003-03-071-4/+4
| | | | | | | | | | | | | | | | | #include <sys/types.h> #include <sys/stat.h> main () { } cc -D_POSIX_C_SOURCE test.c /usr/include/sys/stat.h:127: syntax error before "u_int" /usr/include/sys/stat.h:158: syntax error before "u_int" (u_int becomes invisible for _POSIX_C_SOURCE and some other *_SOURCE modes) Notes: svn path=/head/; revision=111969
* Fix a spelling error.Rob Braun2003-03-071-1/+1
| | | | | | | | Submitted by: jkh Reviewed by: zarzycki Notes: svn path=/head/; revision=111968
* Respect any passed in external lockmgr flags such as LK_NOWAIT in theJohn Baldwin2003-03-071-4/+2
| | | | | | | | | | default implementations of VOP_LOCK() and VOP_UNLOCK(). Tested by: jlemon, phk Glanced at by: jeffr Notes: svn path=/head/; revision=111965
* Limit our requests to DFLTPHYS, this is generally a good idea forPoul-Henning Kamp2003-03-071-0/+5
| | | | | | | | | memory-allocation purposes. Right now it is also a very good idea because we hit a Giant assertion in the free(9) processing if we free something larger than 64k. Notes: svn path=/head/; revision=111964