Commit Graph

1755 Commits

Author SHA1 Message Date
itojun 85dda25e94 move "options PULLDOWN_TEST" into sys/sys/mbuf.h (in #ifdef _KERNEL),
as it is no wthe default setting for everyone.

the reason we still use the name "PULLDOWN_TEST" while it is now default:
kame code sharing.
2000-08-13 01:31:15 +00:00
jdolecek e25636b5da g/c RB_DFLTROOT
I've tried hard to find also various usage() messages and remove the
appropriate flag from there as well, hopefully all occurences are covered.
2000-07-29 20:06:27 +00:00
mason 4a353b5330 Moving to a default of 64 PTYs. 2000-07-27 17:53:35 +00:00
ad 001420d7ea Remove unneeded include. 2000-07-26 11:42:41 +00:00
ad 751028f9c1 CopyToBuffer/CopyFromBuffer are used by sii/xsii and nothing else. 2000-07-24 15:07:02 +00:00
ad f054f5b190 Allow probe for SCSI tape drives even if no SCSI disk drives are configured. 2000-07-24 11:44:33 +00:00
tsutsui 5867f914e8 Add (commented out) "options TCVERBOSE". 2000-07-19 10:42:22 +00:00
jeffs 1dfa0ec96d Use cpu_intr() definition from mips/cpu.h instead of local one. 2000-07-14 18:35:38 +00:00
jdolecek 5942ac860b switch to sys/conf/newvers_stand.sh for generating vers.c 2000-07-13 22:25:14 +00:00
jdolecek 9c15bcabda switch to sys/conf/newvers_stand.sh for generating vers.c
sync comments in */version with i386
2000-07-13 22:18:12 +00:00
jdolecek f6330c6500 switch to sys/conf/newvers_stand.sh for generating vers.c
sync comments in */version with i386
add a hack to ${PROG} target so that symlinks machine, pmax, mips are
  created properly even when building on NetBSD/pmax 1.4.1
2000-07-13 22:18:08 +00:00
nisimura 4f051180a0 - Use PMAD-BA name for device match logic. It's not a real TURBOchannel
device and the id string is not found in option ROM string, but
  ULTRIX/OSF1 call it so anyway.
- Squash IOASIC DMA buffer allocation into device attach() sequence.
2000-07-11 04:10:25 +00:00
soren e3c19eafd0 Update comment. 2000-07-11 01:02:44 +00:00
nisimura 1566e57da8 Simplify address decode logic for memory parity error condition.
XXX Need to have a better reporting message here.
2000-07-09 09:14:29 +00:00
itojun d738f90fd7 raise MSIZE from 128 to 256.
- for sizeof(void *) == 8 arch, this is mandatory.  MHLEN is too small
  already (less than 80) and there are chances for unwanted packet loss due
  to m_pullup restriction.
- for other cases, the change should avoid allocating clusters in most cases
  (even when you have IPv4 IPsec tunnel, or IPv6 with moderate amount of
  extension header)

portmasters: if your arch chokes with the change (high memory usage or
whatever), please backout the change for your arch.
2000-06-30 17:55:11 +00:00
itojun d76ae83df8 add PULLDOWN_TEST for all the platforms.
XXX should be moved to somewhere else when stabilized
2000-06-30 17:10:15 +00:00
mrg fa00dc597a remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h> 2000-06-29 07:44:02 +00:00
ad c3459ba769 Apply patch supplied by Konrad Schroder in PR 10452: fixes console output
on PMAG-D.
2000-06-28 11:03:25 +00:00
kleink e695f72a2e Add <machine/int_types.h>, which provides namespace-pure definitions
of exact-width integer types.
2000-06-26 15:42:16 +00:00
mrg 2f159a1bac remove/move more mach vm header files:
<vm/pglist.h> -> <uvm/uvm_pglist.h>
	<vm/vm_inherit.h> -> <uvm/uvm_inherit.h>
	<vm/vm_kern.h> -> into <uvm/uvm_extern.h>
	<vm/vm_object.h> -> nothing
	<vm/vm_pager.h> -> into <uvm/uvm_pager.h>

also includes a bunch of <vm/vm_page.h> include removals (due to redudancy
with <vm/vm.h>), and a scattering of other similar headers.
2000-06-26 14:20:25 +00:00
simonb 889c658b5b Change the kernel mmap interface so that the offset to map is an
"off_t" and the return value is a "paddr_t" to allow mappings
at offsets past 2^31 bytes.  Somewhat inspired by FreeBSD, which
only changed the offset to a "vm_offset_t".

Includes updates for the i386, pc532 and sh3 mmmmap from Jason Thorpe.
2000-06-26 04:55:19 +00:00
fvdl 1ee7d22c0b Remove prefix construction for softdeps. Add SOFTDEP option to GENERIC. 2000-06-22 20:27:49 +00:00
matt 1b7636d353 uint32_t -> u_int32_t 2000-06-21 20:41:13 +00:00
matt 8b48fb7c45 This file now lives is sys/dev/dec. 2000-06-16 23:28:52 +00:00
matt 6868f0a894 Use <dev/dec/dec_boot.h> instead of <machine/dec_boot.h> 2000-06-16 23:27:23 +00:00
matt 1976bfc798 Use <dev/dec/dec_boot.h>. Use *le32* to set boot block info. XXX Needs to
use *le32* to read ELF bootstrap file.
2000-06-16 23:24:30 +00:00
veego 223d7455c7 Remove the obsolete config fragments for kernel crypto, because the IPsec
crypto code is now in the kernel source tree.
2000-06-14 22:02:13 +00:00
ad 3553879fc2 Use my proper name. 2000-06-13 13:36:42 +00:00
matt 1881f3c3d2 Make this compilable on other than pmax. 2000-06-11 23:28:38 +00:00
nisimura 4250cdde36 - Take care of dm_segs[].dm_len value whenever the offset is adjusted.
Known not working well for 4MAX+ this moment.
- White spacing.
2000-06-07 10:09:19 +00:00
perseant f032b9f500 px requires rasops8 to compile 2000-06-07 04:14:55 +00:00
soren d8e5d1fa7d Add rnd(4) glue for the MIPS3 cycle counter. 2000-06-06 02:24:00 +00:00
nisimura 3ca4913346 One more fix escaped from iointr() change. 2000-06-06 00:47:21 +00:00
nisimura 72f372eca2 Add a missing parenthesis and correct the function return value declaration. 2000-06-06 00:27:58 +00:00
nisimura 8c8d3119f0 Make sure model specific cpu_intr() routines call _splset() as the last
action.
2000-06-06 00:08:24 +00:00
nisimura 2f3e73fe03 Withdraw this configuration. NetBSD/pmax GENERIC is now switched to
MI SCSI.
2000-06-06 00:02:24 +00:00
nisimura 4371d91433 Have MI ncr53c9x_attach() the 2nd and 3rd arguments for scsipi_adater
and scsipi_device respectively, with size reduction of ncr53c9x_softc.
Specifying NULL instructs the driver to use default adapter and default
device codes. Every target port has ncr53c9x_attach(sc, NULL, NULL) anyway.
2000-06-05 07:59:50 +00:00
cgd cffb580806 Implement the more flexiable `evcnt' interface as discussed (briefly) on
tech-kern and now documented in evcnt(9).
2000-06-04 19:14:14 +00:00
nisimura de01642cac Use bus_dma(9) to instruct IOASIC DMA to load transferring addresses,
eliminating MIPS cache machinary exposure here.
2000-06-03 07:55:17 +00:00
mhitch 0e88f603fa Allow sii driver to be compiled with MI SCSI support. Now DS3100 users
can use MI SCSI!
2000-06-02 20:24:20 +00:00
mhitch 51ebf74f71 Add commented out entry for SII driver using MI SCSI.
Remove DS500-only comment for MI SCSI configuration include.
2000-06-02 20:23:13 +00:00
mhitch ccb1131a2d SII driver goes MI SCSI: add a scsibus at xsii. 2000-06-02 20:22:00 +00:00
mhitch ee0ecb0855 Coerce the SII driver into working with MI SCSI; convert scsipi_xfer info
into a ScsiCmd structure.
2000-06-02 20:20:29 +00:00
mhitch 44d42ae28b Add some glue so let the SII driver work with MI SCSI. 2000-06-02 20:16:51 +00:00
mhitch 61ec2107d7 Clear lun field in ScsiCmd (SII driver change to work with MI SCSI). 2000-06-02 20:15:40 +00:00
mhitch 8e72d1b6c4 Adjust to allow SII driver to work with MI SCSI. 2000-06-02 20:12:57 +00:00
nisimura 5448bca5b5 Make this file compilable. 3MAX+ has no ISDN. 2000-05-29 12:09:45 +00:00
gmcgarry 69c227f1a2 Nuke IOASIC_INTR_ISDN which is for sample interrupts. 2000-05-28 06:16:00 +00:00
gmcgarry dcec163ee3 Substitute bba for isdn placeholder. 2000-05-28 06:02:12 +00:00
mhitch 91dd4d9eb5 Remove local declaration of physmem_boardmax. The external physmem_boardmax
was not getting modified for 4MB SIMMS, and when fully populated with 8
SIMMS the memory size was configured at 128MB instead of 32MB.
2000-05-28 05:56:36 +00:00
thorpej 21fc65e1a8 sleep() -> tsleep() 2000-05-27 04:52:27 +00:00
thorpej a7d0570e67 First sweep at scheduler state cleanup. Collect MI scheduler
state into global and per-CPU scheduler state:

	- Global state: sched_qs (run queues), sched_whichqs (bitmap
	  of non-empty run queues), sched_slpque (sleep queues).
	  NOTE: These may collectively move into a struct schedstate
	  at some point in the future.

	- Per-CPU state, struct schedstate_percpu: spc_runtime
	  (time process on this CPU started running), spc_flags
	  (replaces struct proc's p_schedflags), and
	  spc_curpriority (usrpri of processes on this CPU).

	- Every platform must now supply a struct cpu_info and
	  a curcpu() macro.  Simplify existing cpu_info declarations
	  where appropriate.

	- All references to per-CPU scheduler state now made through
	  curcpu().  NOTE: this will likely be adjusted in the future
	  after further changes to struct proc are made.

Tested on i386 and Alpha.  Changes are mostly mechanical, but apologies
in advance if it doesn't compile on a particular platform.
2000-05-26 21:19:19 +00:00
soren b70819c71a Also share BE ldscripts. 2000-05-21 02:50:10 +00:00
thorpej 071aed40ac A foolish consistency; most parts of the kernel use bp->b_data, so
change these from bp->b_un.b_addr to bp->b_data, as well.  This also
allows us more flexibility to experiment with other data buffer types
hung off of struct buf.
2000-05-19 18:54:22 +00:00
thorpej 463931b3ba Nuke dk_establish() from orbit except from those ports which still use
it to determine the boot device: mvme68k, pc532, macppc, ofppc.  Those
platforms should be changed to use device_register().  In the mean time,
those ports defined __BROKEN_DK_ESTABLISH.
2000-05-16 05:45:44 +00:00
hubertf 9f48bba3ae Add "install" target, so "make install" after building the kernel
does something useful.  The target can be redefined by putting a
install-kernel-${MACHINE_NAME} target that fits your needs into
/etc/mk.conf.
2000-05-09 00:56:21 +00:00
thorpej 6a33c86623 HAVE_GCC28 -> HAVE_EGCS, and make it match gcc 2.9 as well. Also,
make the use of -Wno-uninitialized explicit, don't rely on a compiler
hack to do it for us.
2000-05-09 00:32:19 +00:00
nisimura d8fe118608 - Remove three unused contants; KERNBASE, KERNTEXTOFF and BTOPKERNBASE.
- Protect #include <machine/intr.h> inclusion with #ifdef _KERNEL.
- Correct the case when "opt_gateway.h" is refered.
2000-05-06 05:55:09 +00:00
augustss e15d2472fa Fix typo. 2000-05-02 08:03:53 +00:00
augustss 087a67c892 Add proper bba attachment. From Gregory McGarry <g.mcgarry@ieee.org> 2000-05-02 08:02:07 +00:00
augustss c6df4d8830 Comment out bba since I don't really know if it's right. 2000-05-02 07:23:56 +00:00
augustss 05ef4c3d35 Add bba(4) attachment at tc. 2000-05-02 07:22:26 +00:00
augustss 621ef4d785 Add am7930 audio driver. 2000-05-02 06:43:05 +00:00
soren f820567ce2 Allow non-pmax to use COMPAT_ULTRIX. 2000-04-29 21:47:13 +00:00
thorpej f51470a514 Require that each each MACHINE/MACHINE_ARCH supply a lock.h. This file
contains the values __SIMPLELOCK_LOCKED and __SIMPLELOCK_UNLOCKED, which
replace the old SIMPLELOCK_LOCKED and SIMPLELOCK_UNLOCKED.  These files
are also required to supply inline functions __cpu_simple_lock(),
__cpu_simple_lock_try(), and __cpu_simple_unlock() if locking is to be
supported on that platform (i.e. if MULTIPROCESSOR is defined in the
_KERNEL case).  Change these functions to take an int * (&alp->lock_data)
rather than the struct simplelock * itself.

These changes make it possible for userland to use the locking primitives
by including <machine/lock.h>.
2000-04-29 03:31:45 +00:00
mhitch 7d9369f3d3 Fix callout change for keyboard repeat. The callout structure was
incorrectly added as a union member which overlaid the keyboard
state structure.  Fixed by moving the callout structure into to
keyboard state structure.
2000-04-26 04:16:17 +00:00
mhitch ac3bfd5e7f When the tty intialization was split out of rcons_init(), the call to
rcons_ttyinit() was never added to the pmax rasterconsole stuff.  Output
to the display using /dev/console has not been working since then.  Adding
the call to rcons_ttyinit() makes this work again.
2000-04-20 20:02:34 +00:00
itojun 3be41bae18 add stf pseudo interface (commented out due to possible security risks) 2000-04-19 06:50:27 +00:00
drochner 13c9f8d398 implement bus_space_vaddr() 2000-04-17 17:24:48 +00:00
nisimura e7206926ef Add a comment block describes what the intent of safepri global variable
as "During autoconfiguration or after a panic, a sleep will simply ..."
2000-04-12 04:40:50 +00:00
nisimura 19156689a9 - Abandon processor type check for R3000 or R4000/R4400 because VAX
processor is unlikely able to boot the kernel.
- Correct comments about what mach_init() and cpu_startup() do.
- Relocate cn_tab = &promcd to make ROM console printf() work in the
  earliest stage of boot.
2000-04-12 03:05:08 +00:00
nisimura 8bbdc89989 One more line escaped from trap.c rework. 2000-04-11 12:05:35 +00:00
nisimura 678a23b345 Forgot to remove mips_hardware_intr global variable. 2000-04-11 06:50:37 +00:00
nisimura 3dd5742b63 Change to have cpu_intr() peculiar to DECstations; have ssir global
variable and cpu_intr() body in machdep.c.  Reorder and rename
model specific interrupt handler arguments.  Fixup machine/intr.h and
machine/cpu.h appropriately.
2000-04-11 02:43:51 +00:00
ad 031d0221e7 Only spew about every interrupt that gets hooked up if DEBUG is defined
(i.e. not DIAGNOSTIC).
2000-04-05 17:49:55 +00:00
soda 1c5551f260 splsoftnet() should block softclock() too. 2000-04-03 11:44:19 +00:00
soren 80e6d43253 Add asm.h like other ports. 2000-03-30 21:33:30 +00:00
simonb bf851ea6cb Nuke register. 2000-03-30 14:45:04 +00:00
simonb 2f1fef39b3 Centralise the declarations of cpu_model, machine, machine_arch,
osrelease, and ostype and remove "extern char foo[];" (for hostname
and domainname too).

Also delete redunctant decl of boottime in kern_info_43.c.
2000-03-28 23:57:24 +00:00
kleink 230876cf26 Merge parts of chs-ubc2 into the trunk:
* Remove the casts to vaddr_t from the round_page() and trunc_page() macros to
  make them type-generic, which is necessary i.e. to operate on file offsets
  without truncating them.
* In due course, cast pointer arguments to these macros to an appropriate
  integral type (paddr_t, vaddr_t).

Originally done by Chuck Silvers, updated by myself.
2000-03-26 20:42:21 +00:00
nisimura c4dd0cba64 Add 'struct callout repeat_ch;' in ACCESS.bus softc storage. 2000-03-26 06:51:46 +00:00
nisimura 61609b54e2 Make sure proc0 PCB has spl0 condition in CP0 status register field.
cpu_fork() mistakenly created processes forked by proc0, including
kthreads, in splhigh condition, because [1] proc0's PCB was zero
cleared during initialization, and [2] value 0 in status register
field made processes to have splhigh condition when CPU tick was
assigned for them.  This mostly doesn't matter as forked processes
dive immediately into user mode through proc_trampoline code path,
however, kthreads never do that and remain in splhigh.

Reported by Ethan Solomita <ethan@geocast.com>.
2000-03-25 10:14:13 +00:00
soren 573160e03b Revert previous. 2000-03-24 23:06:03 +00:00
soren c535ede30b Move sysctl definitions from arch/mips to arch/foo. 2000-03-24 21:30:58 +00:00
thorpej 7b918b4088 New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.
2000-03-23 06:40:33 +00:00
tron e86957458a Install "machineendian_machdep.h". 2000-03-17 22:36:31 +00:00
mycroft 9e21b6555a In the `MY THAT'S GROSS' department...
Eliminate the recursive include of machine/endian.h from sys/endian.h.
2000-03-17 00:09:18 +00:00
mycroft 02905321b2 Foolish consistency. Mainly, always use underscores and sys/endian.h. 2000-03-16 15:09:34 +00:00
nisimura 220005d941 Eliminate unused sc_cookie field of struct ioasic_softc. 2000-03-15 03:07:44 +00:00
oster 1bad2e1909 Add the RAIDframe device major to the machine-dependent config files
so that the right entries get added to dev_name2blk[].  Needed for / on RAID.
(Whoops!  I missed checking these in when adding the RAID_AUTOCONFIG stuff.)
2000-03-14 15:56:51 +00:00
soren 95054da1a1 Fix doubled 'the's in comments. 2000-03-13 23:52:25 +00:00
nisimura 4c043eb094 Arrange 'vmstat -i' to show 'optslotN'; for interrupt counts of TC slot N
as well as DECsystem 5100 optional serial card slot N.
2000-03-10 01:31:22 +00:00
mhitch 5a9b9df419 Do the interrupt dispatch somewhat differently than the previous fix.
This one is more in the spirit of incorrect version which was trying
to shorten the interrupt path.  This probably isn't quite as fast as
using a switch() statement to dispatch the interrupts, but should be
a little faster than testing for each of the possible 6 interrupt
conditions.
2000-03-08 18:09:27 +00:00
mhitch 0641e677c4 Using interrupt bits in a switch statement doesn't work very well if more
than one interrupt bit is set (unless you do some fancy case values).
Check each interrupt bit individually and process the interrupt if set.
5000/200 doesn't hang shortly after booting now.
2000-03-07 23:41:35 +00:00
tsutsui d16c6f3272 Use DISKPART/DISKMINOR/DISKUNIT instead of dkpart/dkminor/dkunit. 2000-03-07 15:55:14 +00:00
thorpej a183d34f04 - Implement cnbell() -- ring the console bell. The cn_bell entrypoint
is optional.
- Add cn_bell to statically allocated consdevs as appropriate.
2000-03-06 21:36:05 +00:00
mhitch e87b3c7fb3 Use device_register() instead of dk_establish() to determine the boot
device.  Works on a 3100 with both old and MI SCSI, on a 5000/25 built-in
IOASIC with both old and MI SCSI, on the 5000/25 PMAZ TC option card
with both old and MI SCSI, and with tftp boot on the 5000/25.
2000-03-06 03:15:28 +00:00
mhitch 9ace38f7dc Move the now emptry dk_establish() back to disksubr.c where it originally was. 2000-03-06 03:14:28 +00:00
mhitch 7f9b4522d1 A common device_register() is used instead of a separate version for each
of the different DECstation models.
2000-03-06 03:11:43 +00:00
mhitch 0993165c93 Define __HAVE_DEVICE_REGISTER, since pmax now has device_register(). 2000-03-06 03:11:05 +00:00