summaryrefslogtreecommitdiffstats
path: root/sys/i386
Commit message (Collapse)AuthorAgeFilesLines
* - Fix style bug.kato1998-09-011-3/+3
| | | | | | - hw.ispc98 -> machdep.ispc98. Submitted by: Garrett Wollman (hw -> machdep)
* Change BINFORMAT to KERNFORMAT and add -aout or -elf to the tooljb1998-09-011-17/+25
| | | | | | arguments as appropriate. This is necessary because setting OBJFORMAT=aout in the makefile doesn't get exported to the environment. I wish our make could do that!
* Renamed BT848[SG]CAPAREA to BT848_[SG]CAPAREA.sos1998-08-311-2/+2
| | | | | | | | | | | Added PR kern/7177 for SECAM Video Highway Xtreme with single crystal PLL configuration submitted by Vsevolod Lobko <seva@alex-ua.com>. In kernel configuration file add options OVERRIDE_CARD=2 options OVERRIDE_TUNER=11 options BKTR_USE_PLL Submitted by: Roger Hardiman <roger@cs.strath.ac.uk>
* Added Capture Area ioctl - BT848[SG]CAPAREA.sos1998-08-311-0/+15
| | | | | | | | | Normally the full 640x480 (768x576 PAL) image is grabbed. This ioctl allows a smaller area from anywhere within the video image to be grabbed, eg a 400x300 image from (50,10). See restrictions in BT848SCAPAREA. Submitted by: Roger Hardiman <roger@cs.strath.ac.uk>
* Use 16bit register in inline asm code to set segment registers.luoqi1998-08-311-3/+3
|
* Force OBJFORMAT=aout.jb1998-08-311-1/+2
|
* Argh! *Now* the correct 3.0 fix is committed.jkh1998-08-311-7/+7
|
* Whoops! Stamp out a 2.2-ism that snuck between branches here.jkh1998-08-311-2/+2
|
* - hw.machine_arch returns cpu architecture type.kato1998-08-313-15/+12
| | | | | | | | | - moved definition of MACHINE_ARCH from cpu.h to parm.h as alpha. - Added definitions of _MACHINE and _MACHINE_ARCH. - Added hw.ispc98. The hw.ispc98 is 1 in PC98 kernel and is 0 in IBM-PC kernel. Discussed with: John Birrell <jb@FreeBSD.ORG>
* Initial support for using linux X servers under emulation - to use anjkh1998-08-312-5/+51
| | | | | | | | | | | | | | | | XFree86 server, users need to create the following links in their /compat/linux/dev directory (assuming kernel configured with 4 VTs). lrwxrwxrwx 1 root wheel 7 Aug 30 22:59 tty0 -> console lrwxrwxrwx 1 root wheel 5 Aug 30 22:45 tty1 -> ttyv0 lrwxrwxrwx 1 root wheel 5 Aug 30 22:45 tty2 -> ttyv1 lrwxrwxrwx 1 root wheel 5 Aug 30 22:45 tty3 -> ttyv2 lrwxrwxrwx 1 root wheel 5 Aug 30 22:45 tty4 -> ttyv3 VT switching is still not yet supported. Attempting to switch VT currently will cause Xserver bus error. Submitted by: Chain Lee <chain@110.net>
* The aout->elf transition build from a 2.2.5/6/7 system requires thatjb1998-08-301-0/+176
| | | | | | | | | | | | | | | a kernel be built and installed at just the right time. If the system were to be rebooted after installing the 3.0 binaries without the new kernel, the system is hosed. The addition of this config file reserves the name of the config file that the upgrade procedure uses. If an upgrade is to be performed on a 2.2.5/6/7 system system for which a GENERIC kernel is inadequate, this config file must be replace with a suitable one before performing the upgrade. On systems which report 'uname -r' as 3.0-CURRENT, the kernel build is not performed and this file is ignored.
* Enable duplex autodetection if UTP media are autodetected.msmith1998-08-271-11/+12
| | | | | | | | | Add a sysctl 'machdep.cs_recv_delay' to specify how long to wait after receiving a packet in order to check for a subsequent (back-to-back) packet. The cs8900 has a very small receive buffer, so this helps avoid overflows at the cost of some extra CPU overhead. Submitted by: Oleg Sharoiko <os@rsu.ru>, MIHIRA "Sanpei" Yoshiro <sanpei@sanpei.org>
* Add CFS options to LINT, though commented out for now.jkh1998-08-272-2/+10
| | | | Submitted by: Robert Baron <rvb@sicily.odyssey.cs.cmu.edu>
* NULLFS_DIAGNOSTICS and PCVT_SCANSET=2 listed twice.obrien1998-08-272-6/+2
|
* New major number for SR4 streams emulation.msmith1998-08-241-1/+2
|
* Change various syscalls to use size_t arguments instead of u_int.dfr1998-08-241-0/+58
| | | | | | | | | | Add some overflow checks to read/write (from bde). Change all modifications to vm_page::flags, vm_page::busy, vm_object::flags and vm_object::paging_in_progress to use operations which are not interruptable. Reviewed by: Bruce Evans <bde@zeta.org.au>
* Use a relative path to bsd.kern.mk if the relative mk directory exists.bde1998-08-241-1/+5
|
* Fixed printf format errors. Only one left in LINT on i386's.bde1998-08-2415-68/+90
|
* remove bdevsw arg from dsopen();phk1998-08-232-5/+4
| | | | | Forgotten by: julian Reviewed by: bde
* Don't check minor number of dump device at all.des1998-08-231-5/+1
| | | | Discussed-with: Jörg Wunsch
* Fixed printf format errors.bde1998-08-233-6/+6
|
* Fixed printf format errors. `struct eisa_device' uses a strange typebde1998-08-231-8/+8
| | | | for the unit number (like most SCSI drivers).
* Fixed printf format errors.bde1998-08-232-37/+47
| | | | | | | Fixed style bugs in the int to u_long ioctl command arg changes. This driver doesn't use the u_foo BSDism. Don't smash ioctl command args back to int.
* Added D_TTY to the cdevswitch flags for all tty drivers. This is requiredbde1998-08-2311-76/+87
| | | | | | | | | for the Lite2 fix for always returning EIO in dead_read(). Cleaned up the cdevswitch initializers for all tty drivers. Removed explicit calls to ttsetwater() from all (tty) drivers. ttsetwater() is now called centrally for opens, not just for parameter changes.
* Removed cxpoll(). Just use ttpoll() like all other tty drivers. It'sbde1998-08-231-11/+1
| | | | | equivalent except for the bad-minor-number case (which probably can't happen).
* A better fix for kern/7144:msmith1998-08-201-36/+28
| | | | | | | | | | | | | | | | | | | | | The check for dropping unicast packets not sent to our ethernet address is after the bpf tap, but not conditioned on it. All packets received should get handed to bpf, and unicast packets not to us (mac) should get dropped whether or not there is a bpf listener. I believe that the common optimization that the interface is in hw promisc mode iff there is a bpf listener is in general wrong, but more frequently so on wavelans. I think Max's fix makes bpf listeners not see unicast packets sent to others, but I'm not sure. One can argue that checking on MOD_ENAL is wrong, but the code only drops packets that shouldn't be received. The correctness condition is that it be run whenever unicast packets without our mac address can be received. PR: kern/7144 Submitted by: Greg Troxel <gdt@ir.bbn.com>
* Fixed bogus spelling `nx*' of some `no*' devswitch functions.bde1998-08-202-4/+4
|
* Fixed devfs initialization which I broke in the previous commit.bde1998-08-201-10/+10
| | | | Fixed an old name and disorder in the sio dictionary.
* Fixed devfs initialization which I broke in the previous commit.bde1998-08-201-7/+7
|
* Enabled dynamically sized tty input buffers (with enough bufferingbde1998-08-192-18/+20
| | | | | | | | | | | | for 1 second's worth of input) and larger tty output buffers. The interrupt-level buffers are still too small for speeds above 115200 bps (only a little too small for 230400 bps if RTS flow control is enabled). Don't call ttsetwater() explicitly in open(). It is now called for the TTYDISC l_open() and should be static. Don't attempt to register the cdevsw more than once.
* Correct handling of ASCII DEL (0x7F).jkoshy1998-08-191-4/+6
| | | | | | | | | | | | I don't have access to a real VT220 to verify this against. However, I'm committing the patch in `good faith' because (a) getting hold of a real VT220 is going to be increasingly difficult the longer the PR sits around, (b) some one was troubled enough to in a PR and (c) the fix is minor and has no other implications. PR: 7559 Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de>
* Correct glyph displayed by PCVT in ISO Latin-1 mode.jkoshy1998-08-191-1/+1
| | | | | PR: 7610 Submitted-by: Christian Weisgerber <naddy@mips.rhein-neckar.de>
* Presently there is only one `currentldt' variable for all cpusmsmith1998-08-1810-18/+58
| | | | | | | | | | | | in a SMP system. Unexpected things could happen if each cpu has a different ldt setting and one cpu tries to use value of currentldt set by another cpu. The fix is to move currentldt to the per-cpu area. It includes patches I filed in PR i386/6219 which are also user ldt related. PR: i386/7591, i386/6219 Submitted by: Luoqi Chen <luoqi@watermarkgroup.com>
* Fix one forgotten instance of \n to \rsos1998-08-181-2/+2
|
* Removed unused includes.bde1998-08-171-9/+1
|
* Fixed a type mismatch.bde1998-08-171-2/+3
| | | | | Fixed a missing extern declaration (bug for bug compatibly including style bugs. Should probably be static).
* Removed unused includes. Fixed disordering of includes.bde1998-08-171-8/+6
|
* Backed out previous commit. The seconds part of microtime() isbde1998-08-171-2/+2
| | | | | | | not the necessarily the same as the seconds part of getmicrotime() yet, and anyway, we should have used `time_second' if we only wanted a sloppy value for the seconds part. There is no point in making ibcs2's time(2) more efficient than FreeBSD's time(3).
* Oops, the previous commit was of a local version.bde1998-08-172-52/+40
|
* FIxed typo (syntax error) in previous commit.bde1998-08-173-40/+52
|
* Add macros for accessing device memory.dfr1998-08-171-1/+9
|
* Fixed printf format errors.bde1998-08-171-2/+2
|
* Import the (Fast) Etherlink XL driver. I'm reasonally confident in itswpaul1998-08-163-5/+22
| | | | | | | | | | 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.)
* Make ELF kernels build again.jdp1998-08-161-1/+2
|
* Revamp the ELF include files to better support architecture-independentjdp1998-08-161-1/+6
| | | | | | | | | | | | | | | | | | | | | 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.
* Use [u]intptr_t instead of [u_]long for casts between pointers andbde1998-08-169-29/+35
| | | | integers. Don't forget to cast to (void *) as well.
* Cast an int to (intptr_t) before casting it to (void *).bde1998-08-161-4/+4
| | | | 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-161-6/+6
| | | | from int to u_long but not changing here.
* pmap.c:bde1998-08-164-19/+20
| | | | | | | | | | | | | | | | | 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.
OpenPOWER on IntegriCloud