summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Fixed printf format errors.bde1998-08-178-70/+77
|
* Fixed printf format errors. sppp_dotted_quad() was yet another private,bde1998-08-171-9/+10
| | | | broken, version of inet_ntoa(). It should go away.
* FIxed printf format errors. Most of them were exposed by our ntohl()bde1998-08-171-25/+31
| | | | returning long. There would be many more if int_32_t were not int.
* Fixed printf format and spelling errors. Didn't fix relatedbde1998-08-161-3/+3
| | | | | | description of DPT_SHUTDOWN_SLEEP in LINT. Didn't add timestamps so that the (combined?) sleep interval can be printed as intended in the original printf.
* Import the (Fast) Etherlink XL driver. I'm reasonally confident in itswpaul1998-08-1610-8/+3469
| | | | | | | | | | stability now. ALso modify /sys/conf/files, /sys/i386/conf/GENERIC and /sys/i386/conf/LINT to add entries for the XL driver. Deactivate support for the XL adapters in the vortex driver. LAstly, add a man page. (Also added an MLINKS entry for the ThunderLAN man page which I forgot previously.)
* Enable kernel dumps on SLICE systems.des1998-08-161-1/+3
|
* Make ELF kernels build again.jdp1998-08-162-2/+5
|
* Revamp the ELF include files to better support architecture-independentjdp1998-08-166-337/+292
| | | | | | | | | | | | | | | | | | | | | applications. Here's how it works. The kernel should include <machine/elf.h> to get the definitions for the native architecture. It can reference the various ELF structures with generic names like Elf_Sym, Elf_Shdr, etc. A define __ELF_WORD_SIZE is also available with the value 32 or 64 as appropriate for the native architecture. Generic applications should include <elf.h>, which is just a wrapper for <machine/elf.h>. Applications such as object file dumpers that need to deal with foreign ELF files can include <sys/elf32.h> and/or <sys/elf64.h>. Both can be included from the same source file if desired. The structure names must be referenced using wordsize-specific names like Elf32_Sym, Elf64_Shdr, etc. I haven't change the alpha stuff, but I haven't broken it either.
* Fixed a style bug (a long line) in the previous commit.bde1998-08-161-4/+4
|
* Use [u]intptr_t instead of [u_]long for casts between pointers andbde1998-08-1630-109/+125
| | | | integers. Don't forget to cast to (void *) as well.
* Cast an int to (intptr_t) before casting it to (void *).bde1998-08-162-8/+8
| | | | Don't cast a pointer to a long just to print it.
* Fixed yet more ioctl breakage due to the type of the `cmd' arg chaningingbde1998-08-162-12/+12
| | | | from int to u_long but not changing here.
* pmap.c:bde1998-08-169-42/+44
| | | | | | | | | | | | | | | | | Cast pointers to (vm_offset_t) instead of to (u_long) (as before) or to (uintptr_t)(void *) (as would be more correct). Don't cast vm_offset_t's to (u_long) just to do arithmetic on them. mp_machdep.c: Cast pointers to (uintptr_t) instead of to (u_long). Don't forget to cast pointers to (void *) first or to recover from integral possible integral promotions, although this is too much work for machine-dependent code. vm code generally avoids warnings for pointer vs long size mismatches by using vm_offset_t to represent pointers; pmap.c often uses plain `unsigned int' instead of vm_offset_t and didn't use u_long elsewhere, but this style was messed up by code apparently imported from mp_machdep.c.
* Use an array of uintptr_t's instead of an array of u_longs to holdbde1998-08-161-2/+2
| | | | | | address constants. This fixes some warnings for conversions from 64-bit integers to 32-bit pointers on i386's with 64-bit longs. vm86 still uses too many u_longs.
* Cast to `char *' instead of to u_long to help add byte offsets tobde1998-08-151-4/+5
| | | | | | | | | | | | | | | | | | | pointers. Neither is portable, but "correct" casts to integral types are much uglier - they lead to expressions like ptr = (struct struct_with_too_long_a_name *)(void *)(uintptr_t) ((uintptr_t)(void *)ptr + offset); Here the cast to the struct pointer is to match the surrounding style of this file (and not depend on C's feature of properly converting `void *' on assignment or cast), the `void *' casts are because uintptr_t is only specified to work on `void *' pointers (I missed this in about 100 lines of previous changes from [u]long to [u]intptr_t), the outer cast to a uintptr_t is in case the addition promoted the type, and the inner cast to a uintptr_t corresponds to the one cast to an integer in the original code. Don't depend on gcc's feature of casting lvalues.
* Oops, the printf format error fixes confused curp->area with a pointer.bde1998-08-151-3/+2
|
* Oops, the previous fix confused Linux's sigset_t with a pointer type.bde1998-08-152-10/+10
| | | | | | It can be integral or a struct in POSIX, so it is difficult to print, but it is actually declared as unsigned long. Assume that it is unsigned integral.
* Fixed yet more ioctl breakage due to the type of the `cmd' arg changingbde1998-08-152-7/+7
| | | | from int to u_long but not changing here.
* Made some disgusting ifdefs even more disgusting to enable the supportbde1998-08-1510-22/+22
| | | | | for `u_long cmd' ioctl args if __FreeBSD_version >= 300003. Some ioctls were broken on machines with 32-bit ints and 64-bit longs.
* Use offsetof() to avoid some casts from pointers to integers (of abde1998-08-153-3/+9
| | | | possibly different size).
* - change at2pc98() into global from static.kato1998-08-151-2/+10
| | | | - Oops, I forgot to merge several lines from sys/i386/isa/syscons.c.
* Sync with sys/i386/isa/syscons.c revision 1.274.kato1998-08-151-4/+4
|
* Only write a filemark on close when data has actually been written.sos1998-08-142-10/+10
|
* Change cmd argument to dsioctl from int to u_long.dfr1998-08-141-2/+2
|
* Changed \n to \r in the mouse cutbuffer, this makes pine & Emacssos1998-08-142-8/+8
| | | | | | behave better when using the cut&paste functionality. Submitted by: Barry Bierbauch <pivrnec@vszbr.cz>
* Fix BNC/AUI autodetection.msmith1998-08-132-36/+64
| | | | | Submitted by: MIHIRA "Sanpei" Yoshiro <sanpei@sanpei.org> Submitted by: Oleg Sharoiko <os@rsu.ru>
* Use "baseclass" instead of "class" for storing the contents of PCI registergibbs1998-08-134-12/+14
| | | | 0xB so that C++ programs can use the PCI conf interface.
* Cleaned up previous commit, mainly by moving repetitive calculationsbde1998-08-135-355/+192
| | | | | | | | | of invariants to cyattach(). Fixed minor bugs: - cyparam() returned without restoring the ipl in the error cases. This was harmless because cyparam() is always called at spltty(). - one check for "rev. J or higher" actually checked for precisely rev. J.
* Updated for not-so-new version of Cyclom-Y boards (with 60MHz clock andbde1998-08-135-121/+373
| | | | | | | swapped RTS/DTR). Merge the vendor's modification of the 2.2.6-release version into -current for reference. Will be cleaned up in next commit. Obtained from: ftp://ftp.cyclades.com/pub/cyclades/cyclom-y/freebsd/2.2.6/cyy226.tar.gz
* I managed to break sparse configuration accesses with my last commit.dfr1998-08-131-3/+3
| | | | Pointed out by: Andrew Gallatin <gallatin@cs.duke.edu>
* Protect all modifications to v_numoutput with splbio().dfr1998-08-135-10/+18
|
* Protect all modifications to paging_in_progress with splvm().dfr1998-08-131-1/+3
|
* Sync with sys/i386/isa/sio.c revision 1.210.kato1998-08-132-30/+20
|
* Remove some #if 0'd and commented-out code.brian1998-08-122-68/+4
| | | | Fix a COMPAT_43 type.
* One-liner: add a call to the underlying device driver's SIOCDELMULTIwpaul1998-08-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | ioctl() routine at the end of if_delmulti() so that interfaces with hardware multicast filtering can update their filters in a timely manner. If the interface doesn't support hardware multicast filtering, then reception of multicast frames is done using 'promiscious mode' or 'capture all multicast frames' mode and software filtering in the kernel. In this case, it doesn't matter if if_delmulti() ever does an SCIODELMULTI on the interface or not: if MULTICAST support is enabled, then we join the 'all hosts' group when the interface is configured, and remain in it until the interface is brought down. Without hardware filtering, joining one group means joining all groups, so it makes no difference if we call the SIOCDELMULTI routine. If the interface does support hardware multicast filtering, then by not reprogramming the hardware filter in if_delmulti(), we have to wait until somebody calls if_setmulti(), during which time the interface is receiving frames for multicast groups in which we are no longer interested.
* "The releaseing of the reference and lock is not temporary and belongsmsmith1998-08-123-4/+1
| | | | | | | where it is. The reference and lock(s) are acquired just above the code in VREF() and relookup()." Submitted by: Michael Hancock <michaelh@cet.co.jp>
* Handle the case of moving a directory onto the top of a sibling'sjulian1998-08-123-7/+58
| | | | | | | child of the same name. Submitted by: Kirk Mckusick with fixes from luoqi Chen Obtained from: Whistle test tree.
* Don't configure compatibility code for pre-Lite2 mount() calls bybde1998-08-124-16/+16
| | | | default. This code should go away soon.
* Removed support for FreeBSD-1.x.bde1998-08-121-6/+1
|
* Fixed printf format errors.bde1998-08-121-50/+4
| | | | Removed support for FreeBSD-1.x.
* Removed unused includes.bde1998-08-123-64/+3
|
* Synced with dgb.c. Important changes from 1.29 (ioctl handlingbde1998-08-122-104/+54
| | | | | | | | | | | | | | was broken), 1.30 (COMPAT_43 option header was missing), 1.31 (DEVFS option header was missing), 1.33 (garbage pointers were followed in debugging code). Cosmetic changes from 1.27, 1.32, 1.36, 1.37. Of course, the DEVFS code didn't even compile. Fixed. Not tested. Forgotten by: brian This file should not exist. It is the same as dgb.c except for lots of renamed variables, about 250 lines removed, and only about 100 lines of real differences.
* Fixed printf format errors.bde1998-08-122-14/+12
| | | | This file is disgusting.
* Modify the internal interfaces to the kernel linker to make it possibledfr1998-08-123-16/+97
| | | | for DDB to use its symbol tables.
* Removed a bogus ifdef that broke using SWI_* in LKMs.bde1998-08-111-6/+2
| | | | Fixed a comment.
* Fixed printf format errors (ntohl() returns in_addr_t = u_int32_t != longbde1998-08-111-5/+6
| | | | | on some 64-bit systems). print_ip() should use inet_ntoa() instead of bloated inline code with 4 ntohl()s.
* Don't depend on "implicit int".bde1998-08-111-2/+2
|
* Register tty software interrupt handlers at run time using register_swi()bde1998-08-1117-158/+94
| | | | | | | instead of at compile time using ifdefs. Use _swi_null instead of dummycamisr. CAM and dpt should call register_swi() instead of hacking on ihandlers[] directly.
* Fixed printf format errors.bde1998-08-111-2/+2
|
* Implemented dynamic registration of software interrupt handlers. Notbde1998-08-1117-117/+197
| | | | | | used yet. Use dummy SWI handlers to avoid some checks for null pointers.
OpenPOWER on IntegriCloud