Commit Graph

1868 Commits

Author SHA1 Message Date
kleink 7affdab52e Add definitions of C99 minimum-width and greatest-width integer types.
XXX Fastest minimum-width integer types haven't been decided upon yet.
2001-04-14 12:19:49 +00:00
thorpej bf2dcec4f5 Remove the use of splimp() from the NetBSD kernel. splnet()
and only splnet() is allowed for the protection of data structures
used by network devices.
2001-04-13 23:29:55 +00:00
thorpej 316dcc474b splvec.splimp -> splvec.splvm 2001-04-12 19:21:20 +00:00
enami 2ceebb6c0e Remove unnecessary test of tp->t_linesw against NULL; they are results
of confusion while correcting compilation error after t_line is
replaced with t_linesw.
2001-03-31 00:35:21 +00:00
lukem 20ba07f2fe - add dev_noimpl(xxx,yyy) macro to replace "(dev_type_xxx((*))) yyy",
and use appropriately

- create more helper macros:
   . cdev__xyz_init(c,n), such as cdev__ocri_init() for
     /* open, close, read, ioctl */, etc.
   . cdev__xRy_init(c,n), where nullop is used instead of enodev to dummy out
     method `R' and the comments now read /* xxx (read) yyy */ instead
   . cdev__xyz_t_init(c,n,t) - as per cdev__xyz_init, but sets d_type = t
     as well

- use seltrue instead of dev_noimpl(poll,*), as (IIRC) cdevsw.d_poll should
  always DTRT WRT returning a valid result.  (a few devices previously
  incorrectly returned ENODEV)

- use dev_noimpl(stop,enodev) instead of dev_noimpl(stop,nullop) if tty
  == 0, because it doesn't matter if dev_type_stop isn't implemented in that
  case, and it allows the use of the cdev__xyz_init macros. certain ports
  (sparc,sparc64,x68k) used the nullop method for dev_type_stop in a few
  drivers, whereas everything else uses enodev

- ensure that the comments are accurate WRT the behaviour of a given entry
2001-03-26 12:33:22 +00:00
soren 912c115675 s/vm_page_alloc_memory/uvm_pglistalloc/ in panic message. 2001-03-21 18:40:28 +00:00
chs ac3bc537bd eliminate the KERN_* error codes in favor of the traditional E* codes.
the mapping is:

KERN_SUCCESS			0
KERN_INVALID_ADDRESS		EFAULT
KERN_PROTECTION_FAILURE		EACCES
KERN_NO_SPACE			ENOMEM
KERN_INVALID_ARGUMENT		EINVAL
KERN_FAILURE			various, mostly turn into KASSERTs
KERN_RESOURCE_SHORTAGE		ENOMEM
KERN_NOT_RECEIVER		<unused>
KERN_NO_ACCESS			<unused>
KERN_PAGES_LOCKED		<unused>
2001-03-15 06:10:32 +00:00
thorpej 2c4c690f14 Add the BUS_DMA_STREAMING flag. 2001-03-07 22:42:16 +00:00
cgd 8a986b2e96 convert to use getprogname() 2001-02-19 22:48:57 +00:00
tsutsui 5a0f904718 cosmetics (white space etc.) 2001-02-18 06:51:18 +00:00
tsutsui 1bbd89c7a7 white space nits. 2001-02-17 18:02:40 +00:00
tsutsui 1e70b3b673 Add a missing colon in comment. 2001-02-11 17:56:43 +00:00
tsutsui 90fc74c95b space/tab cosmetics 2001-02-11 17:49:08 +00:00
ad 4a19c21be3 In rcons_connect(): PMAX_FBTYPE_PM_COLOR should use the defaults. 2001-01-22 17:18:32 +00:00
jdolecek 8b24036797 Require the machine-dependant DDB commands to be in db_machine_command_table[]
and link it directly to db_command_table[] so that it's not necessary
to do this at runtime. Make db_machine_command_table[] const on all ports.
g/c now unneded stuff, like db_machine_commands_install(), db_machine_init()

Patch written by enami.
2001-01-22 13:56:55 +00:00
tv e58532a4bf No-op commit to force update to a non-"-kk" revision. 2001-01-18 17:47:58 +00:00
fvdl c7f1462f3e Add machdep file for procfs. Currently only used for linux-style
/proc/cpuinfo (only active when procfs is mounted with -o linux).
For ports other than the i386 this currently produces an empty
string.
2001-01-17 00:07:18 +00:00
thorpej e573dbe78c We haven't used the 4.4BSD kadb stuff for a long time; garbage
collect it.
2001-01-16 04:34:47 +00:00
thorpej d74e432ed3 Make softclock a generic soft interrupt of the API is available,
adding the requisite void * argument to softclock().
2001-01-15 20:19:50 +00:00
thorpej d85a75f583 Make sure everybody has an splvm() and equate it with splimp() (splimp()
is the historical name for this interrupt level, and the historical name
is going to go away in the near future).
2001-01-14 02:00:37 +00:00
simonb 4152b5b212 Adjust recent netboot fix to work in the 5100 as well. 2001-01-06 16:59:53 +00:00
mrg d9a9b8d6d5 the tcds cards work in pmaxen. move tcds attachment to files.tc. leave asc
at tcds in files.alpha for now, and add a new `xasc at tcds' to files.pmax.
after pmax has moved fully to MI scsi (and `asc' is MI scsi), we should move
the device asc, etc., lines to files.tc.
2001-01-01 23:43:05 +00:00
bouyer c71f40d166 Add pseudo-device vlan 2000-12-19 10:42:02 +00:00
simonb a8a26dd42a Remove __BROKEN_CONFIG_UNIT_USAGE, not needed on pmax. 2000-12-03 23:00:42 +00:00
simonb 26ca0704e4 Use shared Makefile.mips 2000-12-03 07:39:34 +00:00
nisimura cdc7cdbcde Back out the change of the way to grab proc0's USPACE. It produces
kernel lock up in mach_init() by a reason unknown to me.
2000-11-27 08:57:08 +00:00
soren 38a44e0d8f Consistently use pmap_steal_memory() to allocate USPACE. 2000-11-27 05:57:25 +00:00
nisimura 05960017b2 Fix an typo by cut'paste work in the previous change. 2000-11-27 05:17:06 +00:00
nisimura f6562a41a3 Use pmap_steal_memory() to glab proc0's USPACE. 2000-11-27 05:12:32 +00:00
nisimura c2c8f26967 - Nuke xasc_ioasic.h and xasc_pmaz.h as no code uses the symbols they define.
- Hide #include <pmax/dev/device.h> for "pmax oldscsi" inside
  #if NRZ > 0 || NTZ > 0.
2000-11-23 09:44:14 +00:00
ad 20ef6ae40a Fix netbooting on the 2100/3100. Partially from Thilo Manske
<Thilo.Manske@HEH.Uni-Oldenburg.DE> in PR 11212.
2000-11-21 14:21:36 +00:00
ad bd4ff2a804 PMIN vs. PMAX in boot message. Pointed out by Thilo Manske
<Thilo.Manske@HEH.Uni-Oldenburg.DE> in PR 11212.
2000-11-21 14:19:10 +00:00
chs c62d17a551 rationalize the use of b_flags for geteblk() buffers.
rather than assigning to the whole field, set or clear individual flags,
which implies that the B_BUSY and B_INVAL flags will remain set.
this allows us to make the assertion in brelse() that B_BUSY is set,
which is the purpose of all this.
2000-11-20 08:24:08 +00:00
eeh c98778939f Fix tty initialization. From Arne H Juul <arnej@fast.no>. 2000-11-08 23:21:38 +00:00
mhitch b38f4a0528 From Andrew Doran:
Fix 2100/3100 monochrome font display problem.  Characters were being
rendered as a mirror-image, which was a bit hard to read.
2000-11-05 02:53:20 +00:00
simonb dde480911e Fix up line discipline change fallout. 2000-11-03 15:01:10 +00:00
mhitch 84f1b64ed1 VFB01 framebuffer is 2048 bits wide (but only displays the first 1024 bits
of each scan line).  Fix the fi_linebytes value to get the right size.
Fixes the 'compressed' display problem with the 2100/3100 monochrome display.
2000-11-02 23:37:08 +00:00
eeh 8c3f6a0d10 Adapt to new line discipline scheme. 2000-11-02 00:37:56 +00:00
dmcmahill 028cdb58b4 add '-s' option which will cause the installboot program to recalculate the
16 bit sun checksum.  This flag is needed when making iso 9660 images which
are bootable on both sparc and pmax machines.

this addresses PR port-pmax/10929
2000-10-17 01:54:30 +00:00
dmcmahill 7eb3c0fb47 make the MAGIC check be endian safe when clearing the bootstrap. 2000-10-16 13:47:17 +00:00
dmcmahill 339897211a make this be endian independent. The installboot program now works correctly
on big endian machines as well as little endian machines.
2000-10-15 03:14:24 +00:00
mhitch 28c4cc2851 Use uncached memory so this has a chance of working on R4x00 DECstations.
My 5000/260 hung hard when a PMAG-D board was probed during boot.
2000-10-11 17:55:56 +00:00
ad e126f09103 Switch to sys/dev/md_root.c. 2000-10-10 10:25:55 +00:00
cgd 59706f1322 clean up and consistency for CP0 Count, Compare, Wired, and Config
access function names and prototypes.
2000-10-05 02:36:44 +00:00
nisimura a46cefdf5b Redo the previous change to save MIPS1 only configuration. It's
uncertain whether a multiple page flush with a single HitFlush()
call is safe.
2000-10-04 02:02:05 +00:00
nisimura fc21cc81e1 - Hide MachHitFlushDCache() symbol by enclosing #ifdef MIPS3 to make
compilable with MIPS1 only configuration.
- MIPS3 virtually addressed cache op can do its work in a single call for
range of address space.
2000-10-02 22:56:51 +00:00
abs 2824f4906d Ensure all INSTALL* kernels have two ptys, and a note explaining why:
pseudo-device  pty             2       # pseudo-terminals (Sysinst needs two)
(Some installers may not be using sysinst, in which case this just reduces
the number of ptys from 16 that are not used to 2 that are not used)
For i386 conf files, no change other than comments.
2000-10-02 18:43:34 +00:00
mhitch f9521e4c70 Set the boundary to NBPG for bus_dmamap_create(). The IOASIC DMA segment
can not cross a page boundary.  This fixes a problem when a dump(8) buffer
just crossed a page boundary and bus_dmamap_load() would coalesce the
the overlap onto the first segment.  The NEXTPTR value would get set to
-1 when starting the DMA transfer and the residual data for unaligned
transfers would be copied to physical address 0x1ffffffc.  On the R3000,
this would result in corrupted data, and on the R4000 would usually result
in a hard system hang.
2000-09-28 03:27:29 +00:00
mhitch 226b343323 Need to use MachHitFlushDCache() for the MIPS3 to ensure invalidating
both the primary and the secondary caches.  MachFlushDCache() will not
invalidate the correct secondary cache lines for KSEG2 addresses.
R4000 systems should now be able to boot and run.
2000-09-28 03:19:12 +00:00
simonb ea0dd8a5fb Reenable VNODE_OP_NOINLINE, and some white space nits. 2000-09-25 14:05:32 +00:00
abs 3ef92f0bdb Use "options<SPACE><TAB>" not "options<TAB>" - noted by simonb.
Move VNODE_OP_NOINLINE and NFS_V2_ONLY into '# Filesystem options' section.
Consistently label '# Filesystem options' and '#File systems' sections.
2000-09-25 13:54:50 +00:00
abs ccf1c822a6 Ensure all INSTALL config files have (at least) COPTS="-Os", cincluding bebox
based on it working already for macppc.
Also add commented out:
#options        VNODE_OP_NOINLINE       # Don't inline vnode op calls
#options        NFS_V2_ONLY             # Exclude NFS3 and NQNFS code
as suggestions for additional savings
2000-09-25 11:46:37 +00:00
jdolecek b1f94e26ab don't specify number of ptys if >= 16 (current default initial number)
pty comments: normalize and g/c what is no longer relevant
2000-09-24 15:59:26 +00:00
jdolecek 49c105ffdb add new macro BOOT_FLAG() (defined in <sys/boot_flag.h>) - this
maps standard boot flags to corresponding RB_* values
use BOOT_FLAG() in port's MD code as appropriate

as discussed on tech-kern, add new boot flags -v, -q for booting
verbosely or quietly, and corresponding AB_VERBOSE/AB_QUIET
boot flags; also add FreeBSD-compatible bootverbose macro and
NetBSD-specific bootquiet macro

for hpcmips, use new bootverbose instead of it's own hpcmips_verbose

Tested on i386, and to limited extend (compile of affected files) also for
mvme68k, hp300, luna68k, sun3.
2000-09-24 12:32:31 +00:00
simonb 3db7ffbbce Add a (commented out for now) VNODE_OP_NOINLINE options line, and mention
that it makes smaller and possibly slightly faster kernels.
2000-09-16 00:09:14 +00:00
simonb 4afcecdc80 Use VNODE_OP_NOINLINE - saves about 17k off the INSTALL kernel size. 2000-09-16 00:06:56 +00:00
thorpej 72a24b4eae Add an align argument to uvm_map() and some callers of that
routine.  Works similarly fto pmap_prefer(), but allows callers
to specify a minimum power-of-two alignment of the region.
How we ever got along without this for so long is beyond me.
2000-09-13 15:00:15 +00:00
nisimura c65b8a8ceb Nuke unused obscure #define's. 2000-09-13 05:23:37 +00:00
simonb 57a9ae4559 Add support for booting off RAIDframe RAID1 mirrors.
If the first partition is of type FS_RAID, then add 64 to the block
number for each I/O in rzstrategy().
2000-09-13 04:06:46 +00:00
nisimura cfbce2edce Have MI SCSI device descriptions in GENERIC, removing 'mi.scsi' file. 2000-09-13 03:44:38 +00:00
jhawk a022cf9d37 Use
${MAKE}
instead of
  make
2000-08-30 23:51:46 +00:00
thorpej 58e7a6954b Add spllock(). See spl(9) for details. 2000-08-22 19:46:26 +00:00
thorpej 23a7f255d4 Make sure we provide splsched() as described in spl(9). 2000-08-21 02:06:31 +00:00
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