Commit Graph

12108 Commits

Author SHA1 Message Date
mrg 13eaf2e29b check tty_count first (from cgd). 1996-05-30 23:32:33 +00:00
cgd 99a50a5e0d now that the bug has been fixed, we can go back to using the
Alpha-optimized in_cksum().
1996-05-30 23:18:14 +00:00
cgd ea82d613ab Fix from Matt Thomas to fix problem where packets like
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x01 would be checksummed
incorrectly: rather than adding two 32-bit quantities together to
sum a quadword (which was losing a carry bit), add as four 16-bit
quantities.
1996-05-30 23:08:36 +00:00
cgd a6539cd434 add options LKM, INSECURE 1996-05-30 22:36:49 +00:00
cgd 00a630739d don't use pcvt any longer 1996-05-30 22:35:46 +00:00
pk a8deff302c Clamp synch-transfer parameters at our maximum values on device-initiated
synch negotiation.
1996-05-30 22:19:10 +00:00
cgd e338d234cb now uses queue macros, should include <sys/queue.h> 1996-05-30 22:00:20 +00:00
is 4c4c6e7b5f Pull INSTALL into the trunk. 1996-05-30 20:50:48 +00:00
cgd 6e6fc14f32 add tty_attach() calls where appropriate 1996-05-30 18:44:30 +00:00
cgd 08d585e924 add tty_attach() where appropriate. 1996-05-30 18:24:09 +00:00
leo e81bea0de0 Add loadkmap 1996-05-30 13:44:36 +00:00
leo 0b59a91269 Add missing spl(x). (Jason Thorpe) 1996-05-30 13:41:58 +00:00
mhitch 601c0013e0 Fix the third LBA extraction from a 6 byte SCSI command that I missed. 1996-05-30 03:15:07 +00:00
pk c393eae7c5 event_var.h changed location. 1996-05-30 01:40:07 +00:00
pk 9a9cf8c3f5 Put back a `#if defined(SUN4M)' for now. 1996-05-30 00:57:35 +00:00
pk e86275a0b6 Some slight optimizations. 1996-05-30 00:02:09 +00:00
cgd efd9d2dc7f Copy from libkern:
Add some casts so that we're not bitten by type promotions on 64-bit
systems.  Not a great concern since the only 64-bit system currently
supported by NetBSD (Alpha) uses assembly versions of these routines.
1996-05-29 23:39:30 +00:00
cgd f7dcef06d4 add missing splx(). From Jason Thorpe 1996-05-29 22:24:47 +00:00
pk b3666a87b4 Swiatch to `sys/dev/sun/event*'. 1996-05-29 21:57:51 +00:00
pk 3d1e64415a Switch to `sys/dev/sun/event.c'. 1996-05-29 21:56:38 +00:00
pk 056bb18f67 A configuration file for devices found on Sun machines.
Currently holds just `event.c' which should actually be considered
a candidate for `sys/dev'.
1996-05-29 21:54:34 +00:00
pk f9f5f23ee3 We really need a ring buffer for every unit.
Eliminate extraneous ttyalloc() calls.
1996-05-29 21:45:28 +00:00
pk 77323d42d7 Add missing splx(), per Jason.
Also, change `"event_var"' to `<dev/sun/event_var.h>'.
1996-05-29 21:24:41 +00:00
pk 7acbd9511d Make v_swpin & v_swpout tick. 1996-05-29 21:20:11 +00:00
pk 4899447ffc Add missing splx(), per Jason. 1996-05-29 21:08:28 +00:00
pk 57e61589e7 Fix two cases of handling stale page table information:
1. when reading the referenced/modified bits the TLB entry must be flushed
   before reading the in-core version.
2. when wrapping up an entire segment in pmap_page_protect(), flush the PTPs
   from the TLB to prevent a table-walking operation to pick up stale - or
   possibly bogus - PTEs.

(hopefully I'll get a few of my hairs back now..)
1996-05-29 20:58:38 +00:00
mrg ade39d6cb2 call tty_init(). 1996-05-29 19:10:16 +00:00
oki b042da1f56 fixed reboot problem on Xellent30. 1996-05-29 17:19:07 +00:00
oki 7c5b284636 added missing splx(s). pointed out by thorpej. 1996-05-29 17:03:41 +00:00
scottr cac1b831e9 - Simplify writes in sbc_drq_intr().
- When finished writing, if the SCSI bus has BSY asserted, write another
  byte to the SBC to ensure we get an interrupt.
- Unflag SCSI interrupts on the VIA whenever we clear the interrupts
  on the SBC itself.
1996-05-29 14:26:33 +00:00
leo 5d8d243a6e Add UCONSOLE option. 1996-05-29 12:28:06 +00:00
mhitch 40b6370ffb Fix the DECstation ASC SCSI driver autoconfiguration to more closely
match the alpha.  The DS3100 will now configure properly.  Also fix
the name in the cfdriver structure - somewhere it got changed from
"asc" to "as".
1996-05-29 06:32:38 +00:00
mhitch fe55416706 Fix autoconfiguration stuff to more closely match the alpha - primarily
the IOASIC attached devices.  The DS3100 will now configure properly.
Fix the DS5000/25 IOASIC table entry for the RTC so the RTC interrupts
get enabled.
Fix up a moved include file.
1996-05-29 06:29:02 +00:00
mhitch d8824f1a84 Fix autoconfig stuff to more closely match the alpha. The DS3100 will now
configure properly.  Also fix devices with TurboChannel and mainbus
attachments so they will work if no TurboChannel was configured.
Fix clock.c for a missing variable if not including NTP support.
Also remove some extraneous includes files or use the right ones.
1996-05-29 06:25:01 +00:00
mhitch 038bd4a782 Fix autoconfig stuff to match the alpha. The DS3100 will now
configure properly.
1996-05-29 06:19:49 +00:00
mhitch de1b9b4230 Fix autoconfiguration stuff to match the alpha. The DS3100 will now
configure properly.  Also fix devices with TurboChannel and mainbus
attachments so they will work if no TurboChannel was configured.
Fix a panic when the dtop keyboard handler receieves a character
before the device has been opened.
1996-05-29 06:15:40 +00:00
mhitch 9d8526a68d Use the MI LANCE drivers - the pmax-specific one no longer compiles. 1996-05-29 06:05:05 +00:00
mhitch a2d094fb48 Fixes to make kernel compile: HZ is required to be defined and CPU_R3000
is needed to include R3000 support.  Also change the le0 to le* for the
3100 LANCE so it configures properly.
1996-05-29 06:01:13 +00:00
chuck e35aa10df8 switch to generic boot 1996-05-29 05:06:21 +00:00
chuck 24ac64b87b fix generic boot code 1996-05-29 05:04:41 +00:00
chuck 9f36687189 borrow part of the sparc port's dk_establish to fix generic boot 1996-05-29 05:03:50 +00:00
chuck 946f08aa87 note if we are the boot device (for fixing generic boot) 1996-05-29 04:29:46 +00:00
chuck 5258929681 detect if we are the boot device (to fix generic kernel) 1996-05-29 04:27:11 +00:00
chuck ac46d3b779 add to fix boot generic problem 1996-05-29 02:32:21 +00:00
chuck e4528e0647 save boot device info from bug/bootblocks 1996-05-29 02:28:30 +00:00
mrg 5583238255 impliment ttylist stats based on disk stats. 1996-05-29 02:02:42 +00:00
mrg 65d186d8e8 find a couple minor nits from previous change. 1996-05-29 01:58:09 +00:00
chuck 6645fec14e fix off by one error 1996-05-29 01:52:03 +00:00
pk ecbb3b2eb2 Prototype new rip_*() functions. 1996-05-28 23:27:04 +00:00
pk 2d9344eb4b Prototype new raw_*() functions. 1996-05-28 23:24:50 +00:00
pk ad4c0ccfdf Remove unused variable. 1996-05-28 23:24:23 +00:00
pk 8e8956134f Prototype new unp_*() functions. 1996-05-28 23:23:04 +00:00
chuck f057fa41d5 leave room for partition 1996-05-28 19:07:32 +00:00
chuck cd4d6d851b new kernel call args. 1996-05-28 18:14:24 +00:00
chuck e0923c774b bug fix: pass address of le to netboot 1996-05-28 18:03:38 +00:00
oki 532b0a8630 fdboot can boot from 512bytes/sector format floppy now. 1996-05-28 17:01:25 +00:00
chuck 9a628842cf fix bootst (sync with sun3 tapeboot) 1996-05-28 15:23:53 +00:00
chuck 09e22de574 delete non-working bootst 1996-05-28 15:23:06 +00:00
chuck da573626b4 new bootst (based on sun3 tapeboot) 1996-05-28 15:22:41 +00:00
mrg 6ce8e31376 change zsinfo to a zs_softc, and impliment intr counts. mostly from OpenBSD. 1996-05-28 14:06:28 +00:00
mrg 08bd090b26 count audio interupts (from OpenBSD). 1996-05-28 13:36:09 +00:00
fvdl b7a6989848 NetBSD1_1 -> NetBSD1_2, so use it properly (PR 2475) 1996-05-28 12:28:45 +00:00
pk 9913321bff CMP_PTE_USER_READ4M: check against PPROT_RWX_RWX; this is the canonical
stack protection (saves many excursions into trap.c on window underflows
as was the sole intention of the macro..).
1996-05-27 20:46:39 +00:00
pk d94f5b92f9 prototype mmu_pagein4m() #if DEBUG is on. 1996-05-27 20:29:03 +00:00
fvdl e4145cb406 Align things right in NWDELAYHASH (for the Alpha). This fixes crashes in
the server code. From John Birell.
1996-05-27 11:22:31 +00:00
mhitch ab7b439a98 The logical block address in a 6 byte command is 21 bits, not 20.
Also a transfer length of 0 indicates 256 blocks.
1996-05-27 05:49:49 +00:00
pk 75eb006fa2 No longer need to call mmu_pagein() through a pointer. 1996-05-27 01:13:02 +00:00
pk 522c1d367a mmu_pagein() is only useful on sun4/sun4c. For now, keep a `mmu_pagein4m()'
within `#ifdef DEBUG' for monitoring.

Push user windows to stack in pmap_extract() if we need to switch contexts.
1996-05-27 01:12:34 +00:00
pk 4fa564e10d Fix case where sequence state wasn't updated properly, resulting in
`disk_unbusy' panic.
1996-05-27 00:10:40 +00:00
pk ec587073d7 I_SIGSET => I_SETSIG (pointed out by Greg Earle). 1996-05-26 23:57:10 +00:00
hpeyerl 3e834c5e86 Update to reflect reality (such as it is). 1996-05-26 23:45:42 +00:00
pk 43b3743977 Implement CMP_PTE_USER_WRITE4M more accurately.
CMP_PTE_USER_READ4M needs some more work..
1996-05-26 22:33:31 +00:00
pk 2382529ecd Some more #defines. 1996-05-26 22:30:20 +00:00
leo d48f93eef5 Add 'kernel_text' symbol (Gordon Ross). 1996-05-26 20:50:53 +00:00
chuck 9fe4f7c83a kill "options GENERIC" by replacing it with Theo's sparc code. 1996-05-26 20:47:39 +00:00
chuck 8f19c1d045 fix cngetc() typeo. 1996-05-26 20:42:58 +00:00
jtc 64157258f9 updated for 1.2A (post 1.2) 1996-05-25 21:59:38 +00:00
is eafd041aca Fix few more places where 040+060 rlevant stuff was only compiled for 68040,
preventing 68060-only kernels to work. (68060 only kernel is tested now by
using it to commit this patch).
1996-05-25 21:54:22 +00:00
christos be8ad0bbb0 Recognize MFII keyboard ids for BIM ThinkPad 76X's. Closes PR/2468 1996-05-25 18:19:07 +00:00
ws d1a21707db Free allocated space in directory after error
(While this wasn't technically speaking a bug, it unneccessarily wasted space)
1996-05-25 17:50:41 +00:00
is 33d61f4da3 Show real interupt names (e.g., systat vmstat) on the DraCo. 1996-05-25 17:08:48 +00:00
briggs 014b404127 Clean up the interrupt handling somewhat. 1996-05-25 16:42:24 +00:00
briggs 100623915b Clear via2 interrupts before processing, too. It is up to the drivers to clear
any interrupts that are flagged during processing.
1996-05-25 16:31:04 +00:00
is 25b2ef1b72 Yet another unused variable cleanup; noticed in a kernel without bpfilter. 1996-05-25 16:30:16 +00:00
is 4d0559ac27 Fix stupid pasto. 1996-05-25 15:23:52 +00:00
briggs d6345a7855 More from Dave Huang (khym@bga.com)--set ROMLEN to 2MB and make another
class for AV machines (C660AV and Q840AV).
1996-05-25 14:48:38 +00:00
briggs 30e64f90b7 Patches from Dave Huang (khym@bga.com) to get MRG ADB working on his 660av. 1996-05-25 14:45:31 +00:00
briggs 10221fc1cd Do not let getty open ite if it's not been initialized. 1996-05-25 00:56:38 +00:00
pk f699a85094 sync with reality. 1996-05-24 23:18:23 +00:00
is ab97b65e37 Finish adosfs' support for International FFS (we not only have to use an
internationalized hash function to search for files, but also to use an
internationalized compare to compare the candidates). This also removes one
use of strcasecmp() in the kernel.
1996-05-24 20:16:02 +00:00
is 452b12520a Delete some occurences of kernel startup debug code, move others inside
#ifdef DEBUG_KERNEL_START.
1996-05-24 19:59:33 +00:00
is c978bf3f9f Make the GRFIOCBLANK ioctl set the right timing divisor when switching the
screen back on.
1996-05-24 19:26:12 +00:00
mycroft 91ac291d97 Move some code into a separate rip_bind() function. 1996-05-24 19:03:13 +00:00
cgd 407faf0374 add line for 'strip' pseudo-device, and include slcompress.c if it's included. 1996-05-24 13:03:57 +00:00
mycroft d66ec0288c Add a forward declaration of struct proc. 1996-05-24 11:58:54 +00:00
thorpej a0be48ca23 Implement ST_Q_UNIMODAL quirk, which indicates that a drive will reject
all attempts to mode select, even if the attempted mode is supported.
Add the ST_Q_UNIMODAL quirk for the HP Colorado T4000s which exhibits
this behavior.  (Someone please lob a tactical nuke in that direction.)

From David Rosenthal <dshr@vitria.com> on netbsd-bugs.
1996-05-24 02:04:29 +00:00
mycroft 4e8477f520 Mostly minor changes.
Convert the listen queue to a TAILQ to avoid O(n^2) insertion.  Should probably
be a hash table.
1996-05-23 23:35:22 +00:00
cgd f7f3f4299d print pointers with %p, rather than by printing with %x and casting to
(unsigned int).
1996-05-23 23:34:14 +00:00
cgd 48652c763f fix UMAPFS entry, add entry for UNION 1996-05-23 23:29:10 +00:00
cgd 82dd8bf609 disable alpha-specific in_cksum.c; it seems slightly buggy 1996-05-23 23:27:25 +00:00
fvdl 2847784948 * Make mounts with symlinks work (needed for direct mounts with amd). PR #1917
* Never change the NQNFS flag and/or version when just doing an update mount.
  Fixes a problem that made diskless booting impossible under some
  circumstances.
1996-05-23 22:47:27 +00:00
pk 3c13903472 Enable just enough interrupts to get "L1-A" through. Patch from Jason to
avoid spurious floppy interrupts on Jason's machine...
1996-05-23 22:35:11 +00:00
mycroft ea64155398 Mirror changes in uipc_usrreq.c. 1996-05-23 18:45:14 +00:00
mycroft c630947e89 We must indirect through the higher-level protocol for
PRU_{BIND,CONNECT} so that it can check the sockaddr.
1996-05-23 18:30:57 +00:00
mycroft e149ad8228 Fix race condition in PRU_DISCONNECT.
Unimplement PRU_ABORT, as it's not needed and wasn't correct.
Some stylistic cleanup.
Make sure the control mbufs are freed in all cases.
We must indirect through the higher-level protocol for
PRU_{BIND,CONNECT} so that it can check the sockaddr.
1996-05-23 18:26:26 +00:00
mycroft 4c8302e0f4 Oops. Add missing label. 1996-05-23 17:07:03 +00:00
mycroft 9347e648d8 udp_output() doesn't actually take control data, so don't pretend it does. 1996-05-23 17:05:45 +00:00
mycroft f399db63a4 Make sure the control mbufs are freed in all cases. 1996-05-23 17:03:27 +00:00
mycroft 8d0a82819c We can only get a control mbuf for PRU_SEND or PRU_SENDOOB. Add diagnostic
code to panic in this case.
1996-05-23 16:49:08 +00:00
mycroft 5288bfd58b Make sure the control and data mbufs are freed in all cases. 1996-05-23 16:41:49 +00:00
mycroft 60395beed8 Fix a race condition in PRU_DISCONNECT.
Rearrange the code to deal with unconnected sockets slightly.
Other minor changes.
1996-05-23 16:22:32 +00:00
mycroft e930766cdc Minor changes. 1996-05-23 16:13:19 +00:00
mycroft aee4be7a7f Minor changes to make this more like other protocols. Also, fix some return
values.
1996-05-23 16:12:15 +00:00
mycroft 37daba1b04 Make unp_addr be a pointer to the sockaddr, not to the mbuf, as with raw
sockets.
1996-05-23 16:04:24 +00:00
mycroft 03232fb1f2 Separate some code into separate functions.
Make unp_addr be a pointer to the sockaddr, not to the mbuf, as with raw
sockets.
Other minor cleanup.
1996-05-23 16:03:45 +00:00
phil 6c28c57a2a xxcd => xx_cd. 1996-05-23 14:14:20 +00:00
briggs 78560abd91 Change the console banner message. 1996-05-23 05:18:48 +00:00
briggs 2126c0d3c1 Fix from Bill Studenmund to set flags sanely on serial console. 1996-05-23 02:06:53 +00:00
mycroft 08cc6b486f And PRU_SEND. 1996-05-22 19:06:07 +00:00
mycroft b85e5d8f5e PRU_CONNECT also needs a proc pointer. 1996-05-22 19:00:52 +00:00
briggs 320adf52bf Add MACH_CLASSDUO. 1996-05-22 17:53:24 +00:00
briggs 4d059305ec Remove some dead code, as suggested by scottr, and clone a new machine
class off of the powerbook for the Duos.  They apparently use an RBV-like
chip for the VIA2.
1996-05-22 17:52:48 +00:00
briggs 534d58c701 Get rid of compiler warning if DBG_PID is not defined. 1996-05-22 17:16:45 +00:00
is 4e8dbf468a Added flags to the iy driver to override the media autodetect mechanism, if
necessary. Added a manpage to document the flags.
1996-05-22 15:39:43 +00:00
mycroft d1bc14ee66 KNF nit. 1996-05-22 14:57:53 +00:00
mycroft a8ba1d063c A few style changes to match netiso and netns. 1996-05-22 14:42:27 +00:00
mycroft 49d52c9b1c Pass a proc pointer down to the usrreq and pcbbind functions for PRU_ATTACH, PRU_BIND and
PRU_CONTROL.  The usrreq interface really needs to be split up, but this will have to wait.
Remove SS_PRIV completely.
1996-05-22 13:54:55 +00:00
mycroft 12e6d35d62 Removing a completely unneeded reference to curproc. 1996-05-22 13:42:57 +00:00
mycroft 2a94215734 Remove duplicate definition of bpf_setif(). 1996-05-22 13:41:54 +00:00
mycroft 627bb9bd50 Remove bogus comment in setgid(). 1996-05-22 02:22:47 +00:00
mycroft db3e68aa58 Describe the _POSIX_SAVED_IDS situation more clearly. 1996-05-21 23:39:57 +00:00
christos 0bc76ac7c3 make this compile again; remove CONF_SLOW_INTERRUPT 1996-05-21 20:46:45 +00:00
pk bc77c57c13 espattach() requires DMA to be configured. For now, panic if it is not. 1996-05-21 19:09:43 +00:00
pk 68691c178c Allow all esp dma channels to be called `dma'. 1996-05-21 19:07:30 +00:00
pk dc7e7814d9 Remove the `espdma' special case; all `esp' related dma channels are now
called `dma' on all architectures.  Note: `ledma' remains in place.

Also delete a couple of unneeded `needs-flag's in files.sparc.
1996-05-21 19:06:26 +00:00
is 70d3595ab1 Fix two conditionals code parts, which were intended to avoid two
branches for pure-M68060 and Non-M68060 kernels, but would have made
the former never save its floating point context.
1996-05-21 18:22:13 +00:00
is 893de3dcc8 Sync with the cpu.h change: setconf() only used if defined(GENERIC). 1996-05-21 17:15:40 +00:00
oki 30ec7d2c44 Some cleanup.
- Add missing return-type of function.
- Add missing prototype.
- some gcc -Wall printf warning.
1996-05-21 15:32:18 +00:00
oki 82d5960cd6 Some cleanup.
- Add missing return-type of function.
- Add missing prototype.
- some gcc -Wall printf warning.
1996-05-21 15:31:55 +00:00
pk 71943d50df Protect body of iommuattach() to be more resilient against configuration
file oddities.
1996-05-21 07:25:07 +00:00
briggs 057adea27d Apparently the MRG ADB code becomes unstable if we handle via1 interrupts
properly, so go back to unflagging them all before processing any via1
interrupts.  Perhaps this can be changed back when we get ADB code that
does not rely on the ROMs?
1996-05-21 02:46:02 +00:00
jonathan 4139356a98 Copy the pmax locore.S code into the arch/mips hierarchy and split
it into three pieces:

 * locore.S, which contains generic mips locore code,
   applicable for both r2000/r3000 and r4000s (in 32-bit mode).

 * locore_r2000.S, which contains r2000/r3000 (MIPS-I) versions
   of the locore functions that need mips-generation-specific
   instructions or handling.
 * locore_r4000.S, which contains r4000/r4400/r4600 (MIPS-III?) versions
   of the locore functions that need mips-generation-specific
   instructions or handling.

Much of the code in locore_r4000.S is derived from Per Fogelstrom's Pica port.
locore.S still contains some pmax-specific DMA-buffer copy functions.
1996-05-21 00:20:40 +00:00
briggs 3fb1d834fc Actually clear the interrupt on the RBV. 1996-05-21 00:04:18 +00:00
jonathan b15951c1ee * Move the declarations of mips locore functions from the pmax tree
to the mips tree.
* Just include the mips locore.h into the pmax one.
1996-05-20 23:49:11 +00:00
jonathan e704a8e1e9 * Move the declarations of mips locore functions from the pmax tree
to the mips tree.
* Add declarations of functions used by vm_machdep.c.
* Add declarations of functions printed by name in stack tracebacks.
* Add declarations of functions used by the model-independnet mips machdep.c
  code.
1996-05-20 23:38:26 +00:00
jonathan 6f1e720b08 Change MachEmptyWriteBuffer() to wbflush().
Add missing "void" and "int" return types on functions.
Move boot() after dumpsys()/doadump(), so the latter don't need forward decls.
1996-05-20 23:27:27 +00:00
jonathan 7666d5b36b Check that either CPU_R3000 or CPU_R4000 is defined. Fix the r3k/r2k
symbolic lookup of the CPU-level specific locore entry points to use the
r2k, not the r4k, labels.

Include header files to get prototyped declarations of ipintr() and arpintr().
Remove unused variables and parenthesize assignments in if () expressions.

Gcc warns of a possible && vs || operator-precedence bug in the network
softint dispatch code, which needs more thought.
1996-05-20 23:24:00 +00:00
jonathan b314e27cfa Add #include of pmax/kn01var.h, remove unused variables, and close
hanging block comment in copyright to satisfy -Wall.
1996-05-20 23:19:16 +00:00
mrg 1af2be6068 document PORTAL 1996-05-20 18:15:11 +00:00
mrg 92292a798d initialise securelevel to zero to allow it to be patchable. this is _not_ a security issue. 1996-05-20 17:49:05 +00:00