aboutsummaryrefslogtreecommitdiff
path: root/sys/gnu/i386
Commit message (Collapse)AuthorAgeFilesLines
* Initiate de-orbit burn for fpu-less operation. 386+387 is stillPeter Wemm2003-07-2243-12145/+0
| | | | | | | | theoretically supportable, but you'd really be happier with FreeBSD 2.1.8 on it. Notes: svn path=/head/; revision=117870
* Remove extra ';'Poul-Henning Kamp2003-05-311-1/+1
| | | | | | | Found by: FlexeLint Notes: svn path=/head/; revision=115490
* Use local struct proc variables to reduce repeated td->td_proc dereferencesJohn Baldwin2003-04-171-4/+5
| | | | | | | and improve readability. Notes: svn path=/head/; revision=113613
* Use suword16/fuword16 instead of susword/fusword - this has two differentPeter Wemm2002-06-202-15/+15
| | | | | | | | definitions so far.. 16 bit on x86 and appears to be 32 bit on sparc64. Be explicit to avoid suprises. Notes: svn path=/head/; revision=98482
* Fixed syntax errors (tokens after #endif).Bruce Evans2002-05-138-45/+45
| | | | Notes: svn path=/head/; revision=96523
* Deverbosified previous 2 commits (removed the rotted list of reasons whyBruce Evans2002-03-021-3/+1
| | | | | | | | | <sys/systm.h> is included instead of adding to it). Approved by: previous committer Notes: svn path=/head/; revision=91564
* Adjust the includes a bit.Mark Murray2002-02-281-4/+3
| | | | | | | Requested by: bde Notes: svn path=/head/; revision=91494
* Warning fix. (Very basic - add the right include so that rdtsc() getsMark Murray2002-02-281-0/+1
| | | | | | | a prototype). Notes: svn path=/head/; revision=91476
* Change constraints to use "+" in inline asm instead of mapping inputGiorgos Keramidas2001-11-121-1/+1
| | | | | | | | | to output parameters with "0". Reviewed by: jhb Notes: svn path=/head/; revision=86307
* KSE Milestone 2Julian Elischer2001-09-122-5/+5
| | | | | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha Notes: svn path=/head/; revision=83366
* Do not depend on pcb_savefpu backwards compat #define.Peter Wemm2001-07-121-1/+1
| | | | Notes: svn path=/head/; revision=79627
* Undo part of the tangle of having sys/lock.h and sys/mutex.h included inMark Murray2001-05-011-1/+3
| | | | | | | | | | | | | | other "system" header files. Also help the deprecation of lockmgr.h by making it a sub-include of sys/lock.h and removing sys/lockmgr.h form kernel .c files. Sort sys/*.h includes where possible in affected files. OK'ed by: bde (with reservations) Notes: svn path=/head/; revision=76166
* Remove the leading underscore from all symbols defined in x86 asmJake Burkholder2001-02-259-31/+31
| | | | | | | | | | | | | | and used in C or vice versa. The elf compiler uses the same names for both. Remove asnames.h with great prejudice; it has served its purpose. Note that this does not affect the ability to generate an aout kernel due to gcc's -mno-underscores option. moral support from: peter, jhb Notes: svn path=/head/; revision=73011
* Proc locking.John Baldwin2001-01-231-0/+2
| | | | Notes: svn path=/head/; revision=71487
* Completed move of Digiboard drivers to dev/dgbSergey Babkin2001-01-088-10303/+0
| | | | Notes: svn path=/head/; revision=70783
* Changed the copyright notice to BSD-style. The original GPL copyrightSergey Babkin2001-01-054-24/+110
| | | | | | | | was used due to confusion. Now this code should be moved out of the gnu ghetto subdirectory. Notes: svn path=/head/; revision=70676
* Move suser() and suser_xxx() prototypes and a related #define fromPoul-Henning Kamp2000-10-292-2/+0
| | | | | | | | | | | | <sys/proc.h> to <sys/systm.h>. Correctly document the #includes needed in the manpage. Add one now needed #include of <sys/systm.h>. Remove the consequent 48 unused #includes of <sys/proc.h>. Notes: svn path=/head/; revision=67893
* Remove unneeded #include <machine/clock.h>Poul-Henning Kamp2000-10-152-2/+0
| | | | Notes: svn path=/head/; revision=67164
* Put on my nuclear-grade asbestos suit and cvs rm the old, broken, soundPeter Wemm2000-10-026-5566/+0
| | | | | | | | | | | | | | drivers (again). These drivers have not compiled for 5-6 months. Now that the new sound code supports MIDI, the major reason we had for reviving it is gone. It is a far better investment polishing the new midi code than trying to keep this on life support. Come 5.0-REL, if there are major shortcomings in the pcm sound driver then maybe we can rethink this, but until then we should focus on pcm. Remember, these have not been compilable since ~April-May this year. Notes: svn path=/head/; revision=66522
* The change to do a longword compare in the previous commit just broke anBruce Evans2000-06-031-1/+1
| | | | | | | | | apparently-intended micro-optimization ("testb" is equivalent and smaller) and added a style bug (the size suffix for "testl" was missing). linux-2.3.35 already had the correct fix. Notes: svn path=/head/; revision=61215
* Mass update of isa drivers using compatability shims to usePeter Wemm2000-05-282-2/+22
| | | | | | | COMPAT_ISA_DRIVER() so that we can get rid of the evil isa_compat.h table. Notes: svn path=/head/; revision=61011
* Fix a C-style comment that had a syntax error -- AND gas 2.9.1 accepted!David E. O'Brien2000-05-221-1/+1
| | | | Notes: svn path=/head/; revision=60802
* If we are going to do a byte compare, the operands should be byte-sized.David E. O'Brien2000-05-221-1/+1
| | | | | | | | In this case, I believe we want to compare against the 32-bit operand so use a full-world compare operation. Notes: svn path=/head/; revision=60801
* Fix inconsistent assembly. If byte moves are specified, a byte-sizedDavid E. O'Brien2000-05-221-2/+2
| | | | | | | target must be too. Notes: svn path=/head/; revision=60800
* Compile in the case that anyone ever actually uses LEAVE_FREE_CHARS.Tim Vanderhoek2000-05-211-1/+1
| | | | | | | | | It's not clear what this does nor why they would do it, but it should compile, now. This could be a case where fixing the code so that it compiles merely masks more devious dysfunctional behaviour. Notes: svn path=/head/; revision=60754
* Add $FreeBSD$Peter Wemm2000-05-013-3/+4
| | | | Notes: svn path=/head/; revision=59874
* Remove #if NDGB > 0 and #if NDGM > 0Peter Wemm2000-01-292-9/+0
| | | | Notes: svn path=/head/; revision=56874
* Remember folks, it's:Mike Smith1999-10-123-0/+3
| | | | | | | | | | | 1) test 2) commit 3) test again Guess who forgot 1 and 3? 8) Notes: svn path=/head/; revision=52146
* remove unused #includePoul-Henning Kamp1999-10-113-3/+0
| | | | Notes: svn path=/head/; revision=52136
* Introduce ttyread() and ttywrite() which do the canonical thing.Poul-Henning Kamp1999-09-282-103/+5
| | | | | | | | | Use them in many tty drivers. Reviewed by: julian, bde Notes: svn path=/head/; revision=51756
* Remove five now unused fields from struct cdevsw. They should neverPoul-Henning Kamp1999-09-252-10/+0
| | | | | | | | | | | have been there in the first place. A GENERIC kernel shrinks almost 1k. Add a slightly different safetybelt under nostop for tty drivers. Add some missing FreeBSD tags Notes: svn path=/head/; revision=51658
* This patch clears the way for removing a number of tty relatedPoul-Henning Kamp1999-09-252-50/+12
| | | | | | | | | | | | | | | | | | | | | | | | fields in struct cdevsw: d_stop moved to struct tty. d_reset already unused. d_devtotty linkage now provided by dev_t->si_tty. These fields will be removed from struct cdevsw together with d_params and d_maxio Real Soon Now. The changes in this patch consist of: initialize dev->si_tty in *_open() initialize tty->t_stop remove devtotty functions rename ttpoll to ttypoll a few adjustments to these changes in the generic code a bump of __FreeBSD_version add a couple of FreeBSD tags Notes: svn path=/head/; revision=51654
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2846-46/+46
| | | | Notes: svn path=/head/; revision=50477
* Convert DEVFS hooks in (most) drivers to make_dev().Poul-Henning Kamp1999-08-232-89/+26
| | | | | | | | | | | | | | | | | | | Diskslice/label code not yet handled. Vinum, i4b, alpha, pc98 not dealt with (left to respective Maintainers) Add the correct hook for devfs to kern_conf.c The net result of this excercise is that a lot less files depends on DEVFS, and devtoname() gets more sensible output in many cases. A few drivers had minor additional cleanups performed relating to cdevsw registration. A few drivers don't register a cdevsw{} anymore, but only use make_dev(). Notes: svn path=/head/; revision=50254
* Simplify cdevsw registration.Poul-Henning Kamp1999-05-312-36/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The cdevsw_add() function now finds the major number(s) in the struct cdevsw passed to it. cdevsw_add_generic() is no longer needed, cdevsw_add() does the same thing. cdevsw_add() will print an message if the d_maj field looks bogus. Remove nblkdev and nchrdev variables. Most places they were used bogusly. Instead check a dev_t for validity by seeing if devsw() or bdevsw() returns NULL. Move bdevsw() and devsw() functions to kern/kern_conf.c Bump __FreeBSD_version to 400006 This commit removes: 72 bogus makedev() calls 26 bogus SYSINIT functions if_xe.c bogusly accessed cdevsw[], author/maintainer please fix. I4b and vinum not changed. Patches emailed to authors. LINT probably broken until they catch up. Notes: svn path=/head/; revision=47640
* This commit should be a extensive NO-OP:Poul-Henning Kamp1999-05-302-14/+42
| | | | | | | | | | | | | | | | Reformat and initialize correctly all "struct cdevsw". Initialize the d_maj and d_bmaj fields. The d_reset field was not removed, although it is never used. I used a program to do most of this, so all the files now use the same consistent format. Please keep it that way. Vinum and i4b not modified, patches emailed to respective authors. Notes: svn path=/head/; revision=47625
* Fix some of the places where too much inside knowledge about major/minorPoul-Henning Kamp1999-05-082-8/+6
| | | | | | | layout and dev_t structure is being (ab)used. Notes: svn path=/head/; revision=46679
* Add an additional probe, hopefully allowing me to distinguishBrian Somers1999-05-031-6/+10
| | | | | | | | between the PC/Xi and PC/Xem boards. Now all I need is for someone with a PC/Xem to tell me what the probe says.... Notes: svn path=/head/; revision=46355
* s/size == 0;/size = 0;/Peter Wemm1999-05-022-6/+6
| | | | | | | | PR: 11409 Submitted by: Christopher Peterson <cpeterso@cs.washington.edu> Notes: svn path=/head/; revision=46338
* s/static foo_devsw_installed = 0;/static int foo_devsw_installed;/.Dmitrij Tejblum1999-04-282-4/+4
| | | | | | | (Edited automatically) Notes: svn path=/head/; revision=46153
* Suser() simplification:Poul-Henning Kamp1999-04-272-8/+8
| | | | | | | | | | | | | | | | | | | | | | 1: s/suser/suser_xxx/ 2: Add new function: suser(struct proc *), prototyped in <sys/proc.h>. 3: s/suser_xxx(\([a-zA-Z0-9_]*\)->p_ucred, \&\1->p_acflag)/suser(\1)/ The remaining suser_xxx() calls will be scrutinized and dealt with later. There may be some unneeded #include <sys/cred.h>, but they are left as an exercise for Bruce. More changes to the suser() API will come along with the "jail" code. Notes: svn path=/head/; revision=46112
* Fix so that this driver works again when compiled with EGCS (whichDavid Nugent1999-04-221-31/+31
| | | | | | | | apparently has a much better optimiser, requiring 'volatile' memory to be declared as such). Notes: svn path=/head/; revision=45938
* Remove unused function int fi() {return 0;}Eivind Eklund1999-04-111-4/+1
| | | | Notes: svn path=/head/; revision=45581
* Staticize.Eivind Eklund1999-04-111-2/+2
| | | | Notes: svn path=/head/; revision=45580
* Make NDGBPORTS an official option.Joerg Wunsch1999-03-131-1/+2
| | | | Notes: svn path=/head/; revision=44722
* Use suser() to check for super user rather than examining cr_uid directly.Poul-Henning Kamp1999-01-302-4/+6
| | | | | | | | | Use TTYDEF_SPEED rather than 9600 a couple of places. Reviewed by: bde, with a few grumbles. Notes: svn path=/head/; revision=43425
* Remove LKM support, src/lkm that built it is gone and it never worked as anPeter Wemm1999-01-171-35/+1
| | | | | | | LKM anyway. It does work as a preloaded KLD module though. Notes: svn path=/head/; revision=42764
* PR: kern/8819Matthew Dillon1998-12-131-55/+55
| | | | | | | | Trivial change of macro name from DEBUG to AWE_DEBUG to avoid conflict with kernel DEBUG option. Notes: svn path=/head/; revision=41725
* The "easy" fixes for compiling the kernel -Wunused: remove unreferenced staticArchie Cobbs1998-12-072-24/+6
| | | | | | | and local variables, goto labels, and functions declared but not defined. Notes: svn path=/head/; revision=41591
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()Archie Cobbs1998-12-041-1/+1
| | | | | | | | | | | | | | | | | for possible buffer overflow problems. Replaced most sprintf()'s with snprintf(); for others cases, added terminating NUL bytes where appropriate, replaced constants like "16" with sizeof(), etc. These changes include several bug fixes, but most changes are for maintainability's sake. Any instance where it wasn't "immediately obvious" that a buffer overflow could not occur was made safer. Reviewed by: Bruce Evans <bde@zeta.org.au> Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Reviewed by: Mike Spengler <mks@networkcs.com> Notes: svn path=/head/; revision=41514