Commit Graph

18054 Commits

Author SHA1 Message Date
mellon 021ee70ed5 Adjust options statements so that if they are commented out or uncommented, it doesn't screw up indentation. 1997-06-25 04:41:15 +00:00
thorpej 319920c23a Add "struct", "member", and "export" keywords, per PR #3555, from
Ty Sarna <tsarna@endicor.com>.
1997-06-25 03:09:06 +00:00
lukem 2ed204d14c Change {UID,GID}_MAX from 2^32-2 to 2^31-2 (which was the original
intention). This is because setreuid takes signed ints, which may
be -1 to indicate ``don't change [ug]id''.
1997-06-25 00:48:09 +00:00
fvdl acfef4258b Add MNT_EXPUBLIC flag, add index file field to export structure and
nfs_public structure, for WebNFS support. Also add prototypes of
function added to vfs_subr.c
1997-06-24 23:47:44 +00:00
fvdl b5e26aee04 Invalidate publicly exported FS info when unmounting it locally. 1997-06-24 23:44:57 +00:00
fvdl 4702f17abc Add functions to set/reset the info about the publicly exported
(WebNFS) filesystem. At first glance this should go into the
NFS code, but all the other export code is here as well.
1997-06-24 23:43:33 +00:00
fvdl 55cde5331c Let nfsm_srvmtofh deal with the public filehandle, convert to all zeroes
for both v2 and v3 internally.
1997-06-24 23:40:43 +00:00
fvdl e21d2702b0 Add prototype for nfs_ispublicfh, change the ones for nfs_namei and
nfsrv_fhtovp.
1997-06-24 23:39:34 +00:00
fvdl 246567553a Invalidate nfs_pub info when reinitting the NFS server. 1997-06-24 23:38:10 +00:00
fvdl 28e824c9b7 Extend lookup handling for WebNFS. This means that nfs_namei deals
with full pathname lookups if a public filehandle is used, and that
it translates the '%' escapes (URL-style) in the same case. Also,
make nfsrv_fhtovp convert the public filehandle to the vp of the
publicly exported filesystem, as stored in the nfs_pub structure.
1997-06-24 23:36:02 +00:00
fvdl 6611bf92a5 Provide the extra arg to nfsrv_fhtovp, signalling if we're dealing with
a request on the public filehandle. Extend the lookup operation to
support WebNFS, including index file support (URL style). Yucky, it's
optional in the spec, but Solaris 2.6 will support it, so..
1997-06-24 23:32:45 +00:00
fvdl 66081af1c0 Provide extra arg to nfsrv_fhtovp (just FALSE in this case), it was
extended for WebNFS support.
1997-06-24 23:30:04 +00:00
fvdl 3416a7ca6d Add a few defines for WebNFS support. 1997-06-24 23:28:15 +00:00
thorpej cd730bdd50 In sosetopt():
- Disallow < 1 values for SO_SNDBUF, SO_RCVBUF, SO_SNDLOWAT, and
  SO_RCVLOWAT; return EINVAL if the user attempts to set <= 0.
  Inspired by PR #3770, from Havard Eidnes <he@vader.runit.sintef.no>.
- For SO_SNDLOWAT and SO_RCVLOWAT, don't let the low-water mark get
  set above the high-water mark.  Behavior is now consistent with
  BSD/OS: If such an attempt is made, silently truncate to the high-water
  value.
1997-06-24 20:04:45 +00:00
thorpej 9bf15b8b78 Don't adjust ip->ip_len before calling icmp_error(); icmp_error() already
does this.  Per Stevens in TCP/IP Illustrated Vol. 2, p.774, submitted
by Koji Imada <koji@math.human.nagoya-u.ac.jp>.
1997-06-24 19:31:34 +00:00
thorpej d935da544d Remove the dtom() macro - nothing uses it anymore, and nothing should,
ever, ever again.
1997-06-24 19:14:52 +00:00
thorpej a149ed59e4 Eliminate use of dtom() in the handing of UNIX domain sockets. Add an
"unp_addrlen" member to the unpcb, and use it when copying the socket
name.  This eliminates that last uses of dtom() in the system.
1997-06-24 19:12:53 +00:00
mjacob ff21c8f511 Turn of 'unclaimed interrupt' messages- we know about them already- we can't
really fix this as yet.
1997-06-24 18:08:59 +00:00
thorpej 9fefca0657 Update for repaired Triton MX PCI ID. 1997-06-24 06:21:22 +00:00
thorpej ca84057878 Correct Intel Triton MX PCI IDs, from Tom Yu <tlyu@mit.edu>, PR #3478. 1997-06-24 06:20:24 +00:00
kml 0953486d37 Added definitions for Essential Communications RoadRunner HIPPI and
Gigabit Ethernet interfaces.
1997-06-24 05:04:10 +00:00
thorpej a0e791807e Eliminate use of dtom() from the network code, allowing more flexible
use of mbuf external storage and increasing performance (by eliminating
an m_pullup() for clusters in the IP reassembly code).

Changes from Koji Imada <koji@math.human.nagoya-u.ac.jp>, in PR #3628
and #3480, with ever-so-slight integration changes by me.
1997-06-24 02:25:59 +00:00
thorpej b791871522 Increment icmpstat.icps_badlen for bad length of ICMP_MASKREQ, per
Stevens in TCP/IP Illustrated vol. 2, p.319.  Submitted by
Koji Imada <koji@math.human.nagoya-u.ac.jp> in PR #3712.
1997-06-24 01:26:19 +00:00
thorpej cf016f61f4 foosize()'s return value is in DEV_BSIZE units; adjust the size obtained
from the disklabel accordingly.
1997-06-24 00:56:28 +00:00
thorpej ee8581a255 foosize()'s return value is in DEV_BSIZE units; adjust the size obtained
from the disklabel accordingly.
1997-06-24 00:44:03 +00:00
thorpej afe2bc9b9e In wdsize():
- If the partition is already open, skip the open/close step.  (Sync with
  other disk drivers).
- foosize()'s return value is in DEV_BSIZE units; adjust the size obtained
  from the disklabel accordingly.
1997-06-24 00:41:29 +00:00
thorpej 45097cab83 foosize()'s return value is in DEV_BSIZE units; adjust the size obtained
from the disklabel accordingly.
1997-06-24 00:38:46 +00:00
thorpej 84166e5151 foosize()'s return value is in DEV_BSIZE units; adjust the size obtained
from the disklabel accordingly.
1997-06-24 00:28:36 +00:00
thorpej a9710d488d Three changes to ofdsize():
- If the partition is already open, skip the open/close step.  (Sync
  with other disk drivers.)
- foosize()'s return value is in DEV_BSIZE units; adjust the size obtained
  from the disklabel accordingly.
- Pass correct arguments to ofdopen() and ofdclose().
1997-06-24 00:27:18 +00:00
thorpej efde490942 foosize()'s return value is in DEV_BSIZE units; adjust the size obtained
from the disklabel accordingly.
1997-06-24 00:20:44 +00:00
thorpej e06bb29b00 Two changes to ccdsize():
- If the partition was previously open, don't do the open/close steps.
  (Sync with other disk drivers.)
- foosize()'s return value is in DEV_BSIZE units; adjust the size obtained
  from the disklabel accordingly.
1997-06-23 23:59:53 +00:00
fvdl 9270fc61c1 Turn some bus_space_write_2s back to bus_space_write1s, like they should
be. Seemingly leftover from bus_io -> bus_space transition.

Fixes PR 3780, from Thorsten Frueauf
1997-06-23 23:46:40 +00:00
is 7fe3065765 Make aucc work in the presence of LEV6_DEFER. 1997-06-23 23:46:23 +00:00
jonathan 1eadfb6db9 Change NetBSD/mips setregs() to pass explicit arguments to a
newly-exec()ed user-land process for the new dl*-capable crt0:

  a0	stack pointer (points to onstack argc)
  a1	rtld cleanup (filled in by dynamic loader)
  a2	rtld object (filled in by dynamic loader)
  a3	ps_strings

From Jason Thorpe (thorpej@nas.nasa.gov).
1997-06-23 22:08:02 +00:00
mhitch dc1ece0234 Move the mips*_dump_tlb() routines outside the #ifdef so they are always
available.  Used in the locore ktlbmiss/panic to display the TLB contents
that are mapping the kernel stack.
1997-06-23 21:48:28 +00:00
mhitch f200f89fe7 Remove an incorrect store of the SP when displaying information about a
ktlbmiss on the kernel stack.  It was showing the temporary SP, not the
original SP.

Add a display of the first few wired entries of the TLB so when the ktblmiss
occurs, the TLB entries mapping the kernel stack can be verified.
1997-06-23 21:45:05 +00:00
thorpej 5029dd336b Add full disklabel and partition support to the vnd driver, allowing much
greater flexibility in its use.  Additionally, add support for "geometry
emulation".  This allows the "geometry" of the "disk" to be specified
at config time, providing near-perfect emulation of disklabel-less floppies,
CD-ROMs, etc., including non-512-byte sectors.  If a geometry is not
specified at config time, a default based on 1M cylinders will be used.
1997-06-23 21:03:55 +00:00
is cadf1d32d2 fdboot is too big again. leave it out. 1997-06-23 20:44:49 +00:00
jonathan 0d95f6f43d Align to 8-byte boundary after ASMSTR(), for mips3. 1997-06-23 06:15:28 +00:00
cjs d152627095 Make this work again; the code to avoid attaching a 3c509 in P&P mode
didn't map in the port properly, and it was only luck that it worked
on anything at all.
1997-06-23 05:25:40 +00:00
mrg ea3d699c3c remove pcvtdoc. 1997-06-23 03:50:54 +00:00
mrg 38e40629b9 really nothing left here now. 1997-06-23 03:50:39 +00:00
mrg 90a52da37a move man pages into share/man. 1997-06-23 03:30:19 +00:00
mrg 1c91d7d00f nothing here anymore 1997-06-23 03:27:11 +00:00
jonathan 9e07630d3d Apply sys/arch/mips changes (MACH_ -> MIPS_ or MIPS3_) changes to Pica port.
PICA Kernel compiles with warnings and links, otherwise untested.
1997-06-23 02:56:38 +00:00
jonathan b372cd5fab Delete entire contents. Just #include <mips/psl.h> until
all uses are changed.
1997-06-23 02:48:54 +00:00
jonathan 8e7adc29d1 Delete entire contents, just #include <mips/asm.h> 1997-06-23 02:48:02 +00:00
jonathan 870a3f6b5f *** empty log message *** 1997-06-23 02:46:45 +00:00
jonathan 8f7409033b Copyright police. 1997-06-23 02:45:21 +00:00
jonathan d2faa7a82b Set kernel text start address in port-specific Makefile, not ldscript. 1997-06-23 02:40:28 +00:00
mrg 781dfea84f back out previous. look in unistd.h. 1997-06-23 01:15:03 +00:00
jonathan 833cdd0ec6 Apply MACH_ -> MIPS_ changes from sys/arch/mips. 1997-06-23 00:04:06 +00:00
jonathan e5e8113990 Copyright to NetBSD foundation. 1997-06-22 22:41:33 +00:00
mjacob 68d184dc19 Hmm- seriously funny and sad bug: you need to directly establish the
clock rate for this board on Alpha/PCI systems. Under x86/PCI, the
board f/w will correctly tell you "I'm running at 60Mhz", so the code
that preserved that across a board reset (which would drop the chip
back to 40Mhz) worked fine. On the 8200, the chip was saying "I'm 40Mhz"-
which wasn't true. This turned out to be okay as long as you didn't have
any FAST or UltraFast targets- In fact, setting the chip to 40Mhz allowed
you to run up to 8Mhz SCSI. Unfortunately you die bigtime on the devices
that go faster than that. The fix here is to only use what the chip tells
you the clock rate is in the cases you don't really know (sbus is the
only case where this could be different, although with 66Mhz PCI coming up,
this may change).
1997-06-22 19:57:06 +00:00
christos 796badce6b PR/3772: Matthias Scheler: Missing swapctl prototype. 1997-06-22 19:35:55 +00:00
jonathan 1eba6a6cc9 Disambiguate cache-size message, as suggested by cgd. 1997-06-22 12:22:37 +00:00
jonathan 89868a5f07 Import mcclock from NetBSD/Alpha, mostly replacing the Sprite clock code.
interface.   From Toru Nishimura <nisimura@itc.aist-nara.ac.jp>.

Partly merged back with Alpha code by Jonathan Stone. Needs more merging.
1997-06-22 09:34:34 +00:00
jonathan 046c2a56df Clone Alpha ``cpu-independent'' clock API headers into sys/dev/tc/,
to share them with pmax.
1997-06-22 08:02:18 +00:00
jonathan 1f44934407 * Change Sprite MACH_xxx prefix to MIPS_xxx.
* Use standard mips terminology (xxx_KSEG0, xxx_KSEG1) instead of the
  (more meaningful) Sprite names (xxx_CACHED, xxx_UNCACHED).
1997-06-22 07:42:25 +00:00
mrg 829a5a9063 move man pages into share/man. 1997-06-22 07:02:27 +00:00
mrg a98b6e31ca move man pages into share/man. 1997-06-22 06:40:25 +00:00
mrg 71ee532c82 move man pages into share/man. 1997-06-22 06:25:58 +00:00
mrg e179766b04 move man pages into share/man. 1997-06-22 05:58:25 +00:00
mrg c86a511276 move man pages into share/man. 1997-06-22 05:48:14 +00:00
mrg fbac1c1b2c move man pages into share/man. 1997-06-22 05:16:57 +00:00
jonathan 18483dac78 Identical to mips/mips/fp.S except for _C_LABEL(). 1997-06-22 05:10:01 +00:00
mrg f66658c8e0 move man pages into share/man. 1997-06-22 05:05:17 +00:00
jonathan b86aa7f311 Fix typo mips3_mips_switch_exit. 1997-06-22 04:30:01 +00:00
jonathan 67929469da Include <mips/cpuregs.h> until we merge with arch/mips. 1997-06-22 04:09:06 +00:00
jonathan 02cdce0090 Protoypes for configure(), initcpu(). 1997-06-22 04:08:06 +00:00
jonathan 4692a37162 Final changes for configuring MIPS1 and MIPS3 in a single kernel.
* cpuregs.h:
    rename remaining VMMACH_xxx TLB macros to MIPS_TLB_xxx.
    Add compile-time MIPS3-only, compile-time  MIPS1-only, and
    runtime (both) definitions  for number of TLB ASIDs (tlb pids)
    and shift count to extract a TLB pid.

  * locore.h:
    Delete unused vector slot for indexed TLB writes.
    mips1 and mips3 TLBs are different enough that we have
    to break them out at the caller anyway.

  * Add compile-time MIPS3-only andcompile-time  MIPS1-only
    macros to call locore functions directly by name.
    Use the  existing method table only if

  * mips/mips_machdep.c, mips/trap.c, mips/pmap.c, pmax/machdep.c:
    Use MIPS3_ or MIPS1_ specific names for TLB pids in
    mips3 and mips1 specific code paths (e.g., creating the kernel stack
    for process 0).

Add `options MIPS3' to pmax/conf/GENERIC.
1997-06-22 03:17:37 +00:00
jonathan a53329f500 Bump PROM-to-RTC offset hack up by one more year. 1997-06-22 01:31:45 +00:00
kleink df92c57dc5 Change last commit to use `#error'. 1997-06-21 22:46:43 +00:00
is 2bf81e9e34 aucc.o depends on LEV6_DEFER 1997-06-21 22:13:46 +00:00
is ff79d0a7dd Make this fail to compile with LEV6_DEFER.
XXX This isn't nice, but stopping the  system clock isn't nice, either.
We will repair this soon.
1997-06-21 21:52:37 +00:00
drochner a401914d1a "document" the new hardware support. 1997-06-21 14:43:51 +00:00
drochner e19d907613 Support SMC Ultra.
The code is becoming messy...
1997-06-21 14:43:11 +00:00
drochner faf30015a9 Support 3c900 Combo.
(The elink3 code works probably with other boards too, but this is what
I tested.)
1997-06-21 14:41:13 +00:00
scw b471de3926 Deleted m68k_round_seg and m68k_trunc_seg. They're in common m68k/param.h now. 1997-06-21 11:05:34 +00:00
mhitch a7ac6e48ad Move the CPU-specific shift of the TLB PID into mips_r?000.S. 1997-06-21 06:32:22 +00:00
mhitch b027d98eb5 MachHitFlushDCache is gone. 1997-06-21 04:52:26 +00:00
mhitch edbde97cdf Fix pmap_prefer() to work in merged for mips1/mips3.
Remove unused debug procedure I forgot to remove previously.
Consolidate the vm_page_free1() calls in pmap_release().  Duplicate code
was a result of the way I merged the MIPS3 support from the pica pmap.c.
Enhance the comment on flushing the cache when releasing the segmap pages,
and add a comment about the currently unused code to uncache pages in
pmap_enter_pv().
1997-06-21 04:36:22 +00:00
mhitch 478559dd28 Merged mips1/mips3: cache alias test in pagemove(). 1997-06-21 04:24:45 +00:00
mhitch 51d10edcf2 Restore a lost (int) case in DELAYBRANCH macro - test for BR delay in
unsigned cause register wouldn't have worked.
Add missing ')' in trapdump that shows up when compiled with DEBUG.
Fix (unfix?) previous change to printf formats in mips3_dump_tlb: vad_to_pfn
is now consistant with single-CPU and merged-CPU support.
1997-06-21 04:18:29 +00:00
jonathan 68863ebd8e More mips1/mips3 changes to cpuregs.h and psl.h:
* cpuregs.h:
  Delete unused VMMACH_ names (e.g., duplicates of PTE bits in  pte.h).
  Change remaining VMMACH_xxx  names to MIPS1_xxx or MIPS3_xx.
  Fold remaining compile-time definitions into a single #ifdef MIPS3.

* Use MIPS1_ names  in locore_r2000.S, mips3_ names in locore_r4000.S

* Garbage-collect MachHitFlushDCache()

* psl.h:
  use MIPS1_, MIPS3_  symbolic names for Cause register bits.
  change  _R3K to MIPS1_,  _R4K to MIPS3. Conditionalize for mips1 only,
  mips3 only, or when both are defined,  use runtime CPUISMIPS3 test.
1997-06-21 04:18:09 +00:00
mhitch e03cf7a95c Cast mips1-only and mips3-only pfn_to_vad() macros to match the mips1/mips3
merged inline function.  Fixes inconsist printf format usage in trap.c.
1997-06-21 04:10:42 +00:00
mhitch 70590de547 Changes for merged mips1/mips3.
Replace MachHitFlushDCache with mips3_HitFlushDCache.
1997-06-21 04:06:11 +00:00
is 4b718644a7 Add RCS ids, and clean up some unused in newstyle audio hardware drivers
functions.
1997-06-20 21:45:11 +00:00
christos 9be11f8da1 Move fscknames from fsck.c to here and add ext2fs. 1997-06-20 15:18:03 +00:00
kleink df14b3b830 Add some robustness to ttymodem(), e.g. do not SIGHUP when there hasn't been
an actual carrier transition; from Charles M. Hannum.
1997-06-20 10:50:11 +00:00
jonathan 63b4439556 Correct cast type on mips3_MachHitFlushDCache(). 1997-06-20 07:35:03 +00:00
mikel 1ed84205a8 add prototypes for clock_getres(), clock_gettime(), clock_settime(),
and nanosleep() syscalls.
1997-06-20 07:21:40 +00:00
cjs ecada6375b bzero() wants pointers, not ints, for its first arg. 1997-06-20 07:06:43 +00:00
jonathan 5ed24fd4b4 trapDump(): compute accurate mask for EXC_CODE from CPU type at runtime. 1997-06-20 05:15:36 +00:00
jonathan c6c2263566 MachHitFlushDCache -> mips3_HitFlushDCache().
Add  XXX reminder to d-cache flush I don't understand.
1997-06-20 04:34:38 +00:00
jtc b92f5604b7 sync with libc 1997-06-20 02:08:04 +00:00
pk 98ce8ab879 Remove __FORK_BRAINDAMAGEd code; it's no longer needed. 1997-06-19 20:54:15 +00:00
scottr ecc68fd60f Disassemble the MOVE16 instruction. Also, correct the spelling of
`unknown' while were here, as suggested.  From Denny Gentry
<denny1@home.com>, PR 3567.
1997-06-19 17:39:38 +00:00
scottr b43dd86019 Mask off page offset when building a pte for mapping the
framebuffer; from Walter Ruetten, closes PR 3147.
1997-06-19 17:00:02 +00:00
drochner cc7a41e5d2 Weaken the restrictions on the device file name a bit: /boot can
now be installed on any partition.
Allow PRIM_LOADSZ to be set in the Makefile.
This together allows to make bootable 720k floppys.
closes PR port-i386/3751
1997-06-19 11:46:44 +00:00
mhitch 9b445e15ea Use same cachesize variables for mips1 and mips3, and rename the variables
per Jonathan's request.
Remove switch_exit() declaration - it's now called via the locore jump vector.
1997-06-19 06:34:16 +00:00
mhitch 4fa507b4fc More merged mips1/mips3 support:
Remove cpu-specific routines from locore.S and add them to locore_r2000.S
and locore_r4000.S.  Add entries in locore jump vector table for switch_exit()
and the cpu_switch() context resume.
Add offsets into the jump vector to genassym.cf for use in locore.S.
1997-06-19 06:31:14 +00:00
mhitch df0701481f Use same cachesize variables for mips1 and mips3, and rename the variables
per Jonathan's request.
1997-06-19 06:30:47 +00:00
mhitch 129320c2ca More merged mips1/mips3 support:
Remove cpu-specific routines from locore.S and add them to locore_r2000.S
and locore_r4000.S.  Add entries in locore jump vector table for switch_exit()
and the cpu_switch() context resume.
Add offsets into the jump vector to genassym.cf for use in locore.S.

Use same cachesize variables for mips1 and mips3, and rename the variables
per Jonathan's request.
1997-06-19 06:30:03 +00:00
pk fe15d6603a Remove spurious line left over in previous commit.
Also, use parentheses like in <dev/isa/wd.c>
1997-06-18 22:25:53 +00:00
pk 6b976a7d46 rzsize(): call rzopen()/rzclose() if not yet open, per the
current `openmask'.
1997-06-18 22:19:13 +00:00
pk 5d4e140e53 Remove spurious line left over in previous commit. 1997-06-18 22:17:14 +00:00
pk f9d3344f9c xysize(): only call xyopen()/xyclose() if not already open, per the
current `openmask'.
1997-06-18 20:47:00 +00:00
pk 4269e0eab1 xdsize(): only call xdopen()/xdclose() if not already open, per the
current `openmask'.
1997-06-18 20:45:03 +00:00
pk f5bf0d3701 wdsize(): only call wdopen()/wdclose() if not already open, per the
current `openmask'.
1997-06-18 20:39:55 +00:00
pk 8303adf18a sdsize(): only call sdopen()/sdclose() if not already open, per the
current openmask.
1997-06-18 20:38:59 +00:00
christos 9ffb3adca4 Add __IDSTRING, __RCSID, and __COPYRIGHT macros. 1997-06-18 19:09:50 +00:00
kleink a0696b91ad When a background process attempts to TIOC[CS]BRK (a.k.a. tcsendbreak()) or
TIOCSTART (a.k.a tcflow()), send its process group a SIGTTOU.
1997-06-18 15:32:33 +00:00
jonathan 1c2727195c Add explicit function-return types. 1997-06-18 13:19:33 +00:00
jonathan 21dc79b2b5 Add fillw() from old Pica locore. 1997-06-18 13:16:13 +00:00
kleink b8377e5395 As per RFC 793, don't retransmit the FIN during a simultaneous close.
From Thorsten Frueauf <frueauf@ira.uka.de> and W. Richard Stevens in PR/3737
and TCP/IP Illustrated, Vol. 2, respectively.
1997-06-18 10:05:44 +00:00
mikel 379f3b1c05 add device ID for SB AWE64 Value; from William Coldwell in PR kern/3716.
also add comments for some device IDs describing what they match.
1997-06-18 07:19:08 +00:00
jonathan a066eecaf8 MachHitFlushDCache() -> mips3_HitFlushDCache() outside pmap.c. 1997-06-18 04:51:15 +00:00
jonathan a1085c85ae typo. 1997-06-18 04:23:52 +00:00
jonathan bbc40c6757 RCS id police.
Add a copyright, and a copy of the copyright from the 4.4BSD locore,
from which this is a derived work (as the CVS logs show).
1997-06-18 04:23:14 +00:00
mhitch b61d107b9b Save and restore usermode PC to/from current pcb instead of the RA slot of
the stack frame when usermode interrupt occurs.  The interrupt may have
modified the PC [such as sendsig()].  This got dropped with the stackframe
changes.
1997-06-18 04:07:06 +00:00
kleink 93da19a2f1 Rewrote break/parity/framing error handling from spec. 1997-06-17 20:41:59 +00:00
cgd 75979242d2 clean up spacing before a few DPRINTFs. Also, make the no-32-bit-support
cases uniformly DPRINTF'd and also distinguished by using slightly different
strings for each.
1997-06-17 06:06:25 +00:00
cgd 22da43e670 Change expected mapping register type argument for the pci_mapreg_map()
call for the board's memory space to be PCI_MAPREG_MEM_TYPE_32BIT_1M or
PCI_MAPREG_MEM_TYPE_32BIT depending on the board ID.  Also, remove a
bogus extra argument to an interrupt-establishment-error printf.  Problems
pointed out by Jarkko Torppa <torppa@cute.fi> in PR 3753, but fixed slightly
differently than he suggested.
1997-06-17 05:44:22 +00:00
cgd 57f46a9e4a fix several bugs pointed out by Jarkko Torppa <torppa@cute.fi> in PR 3753:
(1) fix a printf format (%x to print int, not %lx).
(2) fix probe of 4th chip/16th channel (used to tell whether or not the
    board is a 16- or 32-port board) by removing an incorrect offset so
    that the code matched its comments. (!!!)
(3) fix storage of chip number in per-channel structure so that it actually
    stores the chip number, rather than the chip offset.  This allows the
    driver to work with more than the first four channels (i.e. with chips
    other than chip number 0, which happens to have an offset of zero). (!!!)
1997-06-17 05:38:10 +00:00
cgd 6b78891053 the port number is the low 5 bits of the minor. That means that it should
be masked with 0x1f (the low 5 bits), rather than 0x0f (the low four bits).
Pointed out by Jarkko Torppa <torppa@cute.fi> in PR 3753.
1997-06-17 05:32:46 +00:00
mhitch 806f730e87 Remove stray macro definition; didn't hurt for MIPS1 only, but wrong for
MIPS3.
1997-06-17 04:12:38 +00:00
mhitch fb16ddddc7 Fix printf format/argument mismatches. 1997-06-17 04:11:33 +00:00
mhitch 6df1fecbce Virtual coeherency exception handler fixes:
Remove old code now that the new version is working.
  Correct typo for 16K cache (R4400).
  Align the saved AT register location; seems to hang if not aligned on 8
  byte boundry.
1997-06-17 04:10:19 +00:00
thorpej 3bd11220b6 Don't print a message if the user attempts SWAP_OFF. Return an error
instead.
1997-06-17 03:37:07 +00:00
jonathan b903dc73da Fix locore cache variables. (Should these be exported from locore at all?) 1997-06-17 01:40:13 +00:00
jonathan 4506da9ebd Check for '#ifdef MIPS1', not '#ifndef MIPS3', since we can now have both.
Add runtime check for 'if (CPUISMIPS3)' inside #ifdef MIPS3.
Add runtime check for 'if (!CPUISMIPS3)' inside #ifdef MIPS1.
1997-06-17 01:38:21 +00:00
is 2c7d61677f Only check for kernel bus probes when we are sure it is a bus error.
(As a side effect, this moves the  testing decision out of the main path
of the page fault code.)
1997-06-17 00:34:11 +00:00
is 5d784f73b2 Forgotten part of the 68060+bootblock+stupid ROM support: tell locore.s
that we're using BB060STUPIDROM.
1997-06-17 00:17:26 +00:00
jonathan 3d2676b809 Garbage-collect '#include <machine/pte.h>'. 1997-06-16 23:52:06 +00:00
jonathan fef3e76b31 Changes for configuring both MIPS1 and MIPS3, from a merge of
similar design and code by Jason Thorpe and Jonathan Stone.

NOTE: the kernel-stack-switching code and cacheflush() calls in
locore.S still use #ifdef MIPS3 and need more work.

mips/include/cpu.h:
    Add CPUISMIPS3 for run-time tests of what CPU architecture level
    we're running on.

mips/include/locore.h:
    Add declarations of locore cache-size variables for ref/def toolchain.

mips/include/mips1_pte.h:
    mips1 TLB bit definitions.

mips/include/mips3_pte.h:
    mips3 TLB bit definitions.

mips/include/pte.h:
    define accesor macros for TLB bits (e.g., mips_pg_m_bit(),
    that expand to CPU constants if only one CPU arch is configured,
    or to inline functions if both MIPS1 and MIPS3 are configured.

mips/mips/locore_r2000.S:
    Use MIPS1_PG_xxx constants inside mips1-specific code.

mips/mips/locore_r4000.S:
    Use MIPS3_PG_xxx constants inside mips3-specific code.

mips/mips/locore.S:
    Use MIPS1_PG_xxx constants inside mips3-specific code.
    Use MIPS1_PG_xxx constants inside mips1-specific code.
    (Needs more  work!)

mips/mips/{pmap.c,vm_machdep.c,trap.c}, pmax/pmax/machdep.c:
    Use MIPS3_PG_xxx constants inside mips3-specific functions,
         and MIPS1_PG_XXX inside mips1-specific code.
    Otherwise, use mips_pg_XXX_bit() macros where they apply,
    and use "if (CPUISMIPS3) { ... } else {... }" where they don't.

mips/mips/mips_machdep.c:
    Import Michael Hitch's fixes from the pmax locore-init code
    into mips_vector_init().

pmax/pmax/machdep.c:
    Use generic mips_vector_init() locore vector-init function.
1997-06-16 23:41:40 +00:00
is 483b07bee4 Add option BB060STUPIDROM, which makes the early kernel startup probe for
an 68060/68LC060, possibly switching on the 68060 FPU, instead of trusting
the value passed from the ROM OS to us by the bootblock.

Most 68060 boards, unlike the DraCo (which seems to have heavily patched OS
ROMs) don't set the AMIGA_68060 flag; instead, upon detecting an 68060, its
FPU is disabled to make the ROM scheduler work, and at a much later time (at
least, later than bootblock booting time), the "68060.library" installs the
Motorola 68060 software support, patches the scheduler for the 68060 FPU, and
re-enables the FPU.

Maybe this will be fixed one day, if Amiga International sells upgraded OS
ROMs which know about the 68060. Until then, and for legacy machines, this
kludge is needed if we want to boot a non-DraCo 68060.

Btw, thats why this is NOT in std.amiga, but in GENERIC; the DRACO
configuration doesn't need it (and I still plan to make std.draco go away).
1997-06-16 21:12:38 +00:00
drochner f504cf88e8 Conditionally compile without symlink support (#ifdef NFS_NOSYMLINK).
Saves 708 bytes (i386). (close pr misc/3335)
1997-06-16 20:47:11 +00:00
thorpej c61704d37c Remove the code that sets dumpdev, for two reasons:
- It was incorrect.  A dev_t should _never_ be compared against
  NULL, as 0 is a valid value (major 0, minor 0).
- The operator mave have _intentionally_ set dumpdev to "none"
  (i.e. NODEV), and setting it the first time a VBLK swap device
  is added would break the semantics.
setroot() deals with all dump device selection.  Dumps and swap are now
in no way related.
1997-06-16 20:21:55 +00:00
christos d980c28e1d From Paul Mackerras: use sl_compress_setup, not sl_compress_init 1997-06-16 17:01:36 +00:00
drochner a52a25467d Implement quad_t (%qx, %qd, %qo) printf formats.
Closes pr kern/3747.
1997-06-16 15:02:27 +00:00
mrg 5dad1a32a4 move installboot.8 into src/share so everyone builds it. 1997-06-16 13:58:24 +00:00
is 1445a45c28 Moved manpage to share/man/man8/man8.amiga 1997-06-16 13:39:48 +00:00
mrg c258d0d05e make it "options IPFILTER_DEFAULT_BLOCK". 1997-06-16 13:38:05 +00:00
mrg c78d0720ff - set dumpdev if not already set
- don't use nocoalease (from thorpej).
- fix priority list management (from pk).
- update comment for swapoff.
- free swap device extent name safely (from thorpej).
1997-06-16 13:35:17 +00:00
jonathan 2eec9b0bc3 Back out previous change:
Add placeholder for Ted Lemon's years-old-but-new cursor-movment range checks.
1997-06-16 09:53:14 +00:00
jonathan eb1d8427cc Garbage-collect redundant declarations:
mips/include/locore.h:
  Add prototypes for HitFlushDCache() functions. Moe cpu_prid definition here.
mips/include/cpu.h:
  remove  cpu_prid definition.
pmax/pmax/machdep.c:
   remove local protoypes of HitFlushDCache() functions.
mips/mips/vm_machdep.c, mips/mips/vm_machdep.c::
   remove local protoypes of HitFlushDCache() functions.
1997-06-16 09:50:26 +00:00
jonathan b0e19a6a74 Set model string for 5000/150 (kmin with r4000 daughterboard). 1997-06-16 09:19:25 +00:00
jonathan 1b10e8336c Drop in pmspoll() from NetBSD-current/i386 pms.c. 1997-06-16 09:12:14 +00:00
jonathan 79d31e9983 Delint pica Sonic driver, pass 0:
* Finish new ARP (struct ethercom) changes.
    Some references to sc_ac were left danglnig.
  * Include if_dl.h and if_media.h.
  * Delint printf() messages: int vs. long , int vs. pointer.
  * Delete unused variables.
1997-06-16 08:44:30 +00:00
jonathan 1bd86a07d6 First delint pass of old NetBSD/pica device drivers:
* add prototypes to <dma.h> for the per-device dma-setup  functions.
  * MachEmptyWriteBuffer() -> wbflush().  Also #include <bus.h>,
    so that wbflush() expants to the locore callback vector entrypoint.
1997-06-16 08:41:15 +00:00
jonathan 2d10220f8f Yet more mips1/mips3 merging:
Move mips-specific pmap definitions (PMAP_PREFER for mips3, declaratin
of pmap_bootstrap() for the system-specific machdep.c) from
arch/pmax/include/pmap.h to arch/mips/include/pmap.h.
1997-06-16 07:47:42 +00:00
jonathan df6533a42e Fix idempotent inclusion test macro: _MACHCONST -> _MIPS_CPUREGS_H_
to avoid collision with obsolete Sprite-derived NetBSD/pica  header file.
1997-06-16 07:41:08 +00:00
jonathan de475d3704 Rescuscitate after bitrot:
* rewrite findroot() based on NetBSD 1.2F i386 findoot().
  * Rewrite makebootdev() to use struct devnametodevmaj pica_nam2blk[].
    Previous changes changed the `devname' char array and findroot()
    bot not makebootdev().
  * Add prototypes, delint for gcc -Wall.
1997-06-16 07:35:46 +00:00
scottr 9dfb9a7f87 Add support for Mouse Systems A3 mouse. From Colin Wood. 1997-06-16 06:35:26 +00:00
jonathan 5db35a8cce Yet more merging:
* Move declaration of locore communcation variables (CPU family,
     cache sizes, etc) to mips/include/locore.h.  Delete from
     pmax/include/cpu.h and older versions from pica/include/cpu.h.

   * Move definitions of CLKF_BASEPRI, CLKF_USERMODE to mips/include/cpu.
   * Delete duplicate definitions in pica/include/cpu.h, pmax/include/cpu.h.
1997-06-16 06:17:25 +00:00
jonathan 8ccf9122e4 Garbage-collect MIPS_3K_xxx, MIPS_4K_xxx outidde mips/include/cpuregs.h:
MIPS_3K_xxx ->    MIPS1_xxx
    MIPS_4K_xxx ->    MIPS3_xxx
1997-06-16 05:37:32 +00:00
jonathan 3409ae8dcd Garbage-collect <machine/locore.h> 1997-06-16 04:30:15 +00:00
jonathan 157d46c672 Commit addition of `#include <mips/locore.h>' to pmax/include.bus.h. 1997-06-16 04:22:15 +00:00
jonathan c34f92cbd1 <machine/locore.h> -> <machine/bus.h> 1997-06-16 04:18:57 +00:00
jonathan 59c33b9f85 Garbage-collect #include <machine/machConst.h>. 1997-06-16 03:52:37 +00:00
jonathan d3ecedb9fb Garbage-collect non-jumptable prototype for wbflush(). 1997-06-16 03:52:08 +00:00
jonathan 0bca2bff6d include <machine/bus.h>. 1997-06-16 03:46:29 +00:00
jonathan 2557a6fa43 GC more old header files:
<machine/locore.h> -> <mips/locore.h>
    <machine/mips_opcode.h> -> <mips/mips_opcode..h>
1997-06-16 03:29:07 +00:00
jonathan 2520d0a604 Remove genassym.c. (pmax has used genassym.cf for some time.) 1997-06-16 02:58:28 +00:00
jonathan f4dc901780 Use #include <machine/bus.h> in pmax device drivers.
Garbage-collect `#include <pmax/locore.h>' lines.
1997-06-16 02:53:23 +00:00
jonathan 817af928bf Add placeholder for Ted Lemon's years-old-but-new cursor-movment range checks. 1997-06-16 02:18:47 +00:00
jonathan cd48c79960 Remove the machConst.h (wrapper for Sprite-derived source), and all
#includes <machine/machConst.h> uses.
Other header files now include <mips/cpuregs.h> where necessary.
1997-06-16 01:45:05 +00:00
jonathan c6b9463cd1 Remove all references to <machine/machAsmDefs.h>.
Use #include <mips/asm.h> instead.
1997-06-16 01:23:56 +00:00
jonathan f8b757f8f4 Remove. Already copied to arch/mips/mips/fp.S. 1997-06-16 01:14:50 +00:00
jonathan 15628b2d97 Move merged pmax psl.h with mips1/mips3 support to mips/include/psl.h.
Change pmax/include/psl.h to just do #include <mips/psl.h>.

pmax/include/psl.h would go away completely if it wasn't stil required
by compat/common/kern_exit_43.c.
1997-06-16 01:10:03 +00:00
jonathan 8e5f767c50 Use generic MIPS pmap vm_machdep.c 1997-06-16 00:35:10 +00:00
thorpej 3fc5bf341d Fix a slight botch in dumpdev configuration logic in the RB_ASKNAME
case if a network interface is selected as the root device.
1997-06-16 00:25:05 +00:00
jonathan 5d94de1a79 Moved to arch/mips/mips/ with CVS revsion history. 1997-06-16 00:17:27 +00:00
jonathan 747e2b5e7e Generic mips pmap/vm code: move the merged pmax mips1/mips3 vm_machdep
and pmap code to arch/mips/mips.
Use <mips/XXX.h> header files, not <machine/XXX.h>.
1997-06-16 00:16:08 +00:00
thorpej 36330c8c5e Add a short comment clarifying the purpose of swapdev and swapdev_vp. 1997-06-15 23:42:12 +00:00
is 4a4420172f Actually commit the sample rate to the hardware.
While we're here, add missing parts of (software encoded) ULINEAR encoding.
1997-06-15 23:05:43 +00:00
jonathan 8a00c90491 Remove old 4.4bsd/pmax rules and targets. 1997-06-15 22:53:49 +00:00
is c577eb43ec A bit more of KNF. 1997-06-15 21:11:33 +00:00
veego 2b9117da0a Add a missing ; if CV64CONSOLE is undefined. 1997-06-15 21:09:10 +00:00
scottr db9068c773 Don't call Debugger() if we don't have ddb. Fixes PR 3744. 1997-06-15 20:34:15 +00:00
scottr 36b75f2735 Update from Denny Gentry <denny1@home.com>, PR 3685:
Simplify the way transmit buffers are managed, remove assumptions about
NBPG, simplify sonic_get handling, update snioctl to be more like other
current drivers, and probably a few other changes I've now forgotten about.
1997-06-15 20:20:07 +00:00
mhitch 987abc8e3d When trying to find the boot partition, look at all partitions marked as ffs
or swap partitions.  Booting from a miniroot on the swap partition will
detect the miniroot as the boot partition (if the bootblock loader passes
the boot partition offset to the kernel).
1997-06-15 19:16:37 +00:00
mhitch ef2beab3d7 More merged MIPS1/MIPS3 support. 1997-06-15 18:24:05 +00:00
mhitch 0bf6ea4387 DECstation MIPS3 support: wbflush() is cpu-dependent, need declaration from
machine/locore.h.
1997-06-15 18:23:02 +00:00
mhitch ab0eff4a87 From Toru Nishimura: _FORKBRAINDAMAGE is gone, user process entered through
proc_trampoline().
More merged MIPS1/MIPS3 support.
1997-06-15 18:21:17 +00:00
mhitch f42f8eb4e6 More merged MIPS1/MIPS3 support - from pica pmap.c 1997-06-15 18:19:47 +00:00
mhitch bbd8bca4a4 More merged MIPS1/MIPS3 support for DECstations.
From Toru Nishimura: separate out FP registers in user pcb.
1997-06-15 18:18:57 +00:00
mhitch 4eb69e0839 DECstation MIPS3 support: wbflush() is cpu-dependent, need declaration from
machine/locore.h.
1997-06-15 18:03:24 +00:00
mhitch 76f5c2a6c6 More merged MIPS1/MIPS3 support for DECstations. 1997-06-15 18:02:20 +00:00
mhitch 74245805bb DECstation MIPS3 support: wbflush() is cpu-dependent, need declaration from
machine/locore.h.
1997-06-15 17:58:56 +00:00
mhitch 6b75aad4ca From Toru Nishimura: exception trapframe changes, separate out syscall
processing from generic trap processing,  _FORKBRAINDAMAGE is gone -
user process entered through proc_trampoline(), mini-debugger from pica
port.
More merged MIPS1/MIPS3 support for DECstations.
1997-06-15 17:49:53 +00:00
mhitch a5c7f52094 More merged MIPS1/MIPS3 support. Added wbflush() and proc_trampoline() to
locore vector.  Display level 2 (secondary) cache size.
1997-06-15 17:47:46 +00:00
mhitch 6748462623 From Toru Nishimura: _FORKBRAINDAMAGE is gone, user process entered through
proc_trampoline(); move away from UADDR access to user structure.
From Toru Nishimura:  exception trapframe changes, mini-debugger from pica
port, separate out syscall exception.
DECstation MIPS3 support: wbflush() is cpu-dependent, MIPS3 level 2 cache
support.
1997-06-15 17:44:46 +00:00
mhitch 501b5e6892 From Toru Nishimura: adjust for struct user pcb changes. 1997-06-15 17:40:03 +00:00
mhitch 386cf35c8d From Toru Nishimura: exception trapframe changes. 1997-06-15 17:37:45 +00:00
mhitch 27f717cdb8 From Toru Nishimura: user pcb/proc changes for exception handling and
removing access through UADDR.
1997-06-15 17:36:24 +00:00
mhitch ffb95ac852 DECstation MIPS3 support: wbflush() is cpu-dependent, need declaration from
machine/locore.h.
From Toru Nishimura: _FORKBRAINDAMAGE is gone, user process entered through
proc_trampoline() [also cpu-dependent].
1997-06-15 17:33:53 +00:00
mhitch 75b0c4777c From Toru Nishimura: _FORKBRAINDAMAGE is gone, user process entered through
proc_trampoline().
1997-06-15 17:28:46 +00:00
mhitch c06eb27dc9 More merged MIPS1/MIPS3 support: still only allows single-architecture
support.
1997-06-15 17:27:03 +00:00
mhitch fb6d59052e More merged MIPS1/MIPS3 support. The pte definitions still need work before
they can be support both MIPS1 and MIPS3.
1997-06-15 17:24:22 +00:00
mhitch 4ccdbb1c9e Don't return error status on recoverable errors 1997-06-15 17:17:07 +00:00
mhitch 0a9912635f From Toru Nishimura: don't assemble pmax buffer copy routine if not
configured for DS2100/DS3100.
1997-06-15 16:57:57 +00:00
mhitch 8059cbb275 Use TC_SPEED* for turbochannel speed values (keeps me from being confused
more than I am).
1997-06-15 16:53:40 +00:00
mhitch 56b72a34f3 Since locore_r2000.S and locore_r4000.S are included by locore.S, they need
to be included in the dependency list for locore.o.
1997-06-15 16:27:47 +00:00
mhitch d2ce63e3bc DECstation MIPS3 support: a GENERIC config file for the R4000/R4400-based
DECstations.
1997-06-15 16:21:19 +00:00
mhitch 074ad77297 Correct an #endif comment to match the #if comment. 1997-06-15 16:18:29 +00:00
jonathan 62e846995f findroot() fix for kernels configured "root on ? type ?" (i.e., disk)
that are booted via MOP or tftp:: if we don't find a block device name
that matches bootdev, give up and let setroot() force RB_ASKNAME.
1997-06-15 11:23:52 +00:00
mycroft 09cad93ce8 Implement a better backpressure mechanism so that data is collected
in the driver's buffer if the tty buffer is full.  If the driver's buffer
becomes full, turn off receive interrupts until it drains a bit.
1997-06-15 11:18:59 +00:00
jonathan 957e3b4622 Turn on -Wall -Weror and -Wstrict-prototypes -Wmissing-prototypes.
Turn off warnings for uninitialized variables to avoid spurious warnings.
1997-06-15 01:20:59 +00:00
jonathan 070deac2d1 Use standard symbolic register names in stacktrace() and logstacktrace(). 1997-06-15 01:18:25 +00:00
jonathan 8e854e11d1 Rewrite stack traceback printing (stacktrace()) and logging(logstacktrace()
wrappers for stacktrace_subr() in assembly code to avoid prototype conflicts.
1997-06-15 01:08:16 +00:00
thorpej 3cb5726461 RCS ID police. 1997-06-14 22:25:11 +00:00
is b14e608272 Amiga custom chip audio hardware driver, by Stefan Thesing
(thesing@cs.uni-sb.de), heavily hacked upon by me to
- make it work with -current audio system
- make it shut off Amiga audio DMA only at appropriate places.
XXX A couple of bugs still remain, which well be handled later.
XXX Among them: only mono output; doesn't refuse to handle input, but chokes;
will not play last millichunk (is this 20 ms?) of data.
1997-06-14 22:24:02 +00:00
mycroft 78408dc12d Make sure we can't open a device that doesn't exist. 1997-06-14 11:38:30 +00:00
mycroft e7a3f1ab43 Pass only a subregion of the I/O space to the joy driver, which covers the
normal single port.
1997-06-14 11:35:37 +00:00
thorpej 47fab5e3ae Make this compile again in light of recent changes to cdio.h 1997-06-14 08:55:14 +00:00
perry 28fd103fd9 Temporarily disable wds driver. The driver statically allocates a huge
bounce buffer, which breaks installs on 4Meg machines using the new
ramdisk install system. We'll bus_dma the driver and then it should be
fine to put back in to the normal INSTALL kernel.
1997-06-14 06:23:47 +00:00
thorpej 70eb4a4223 Add an extern declaration for dumpspec. 1997-06-14 04:19:48 +00:00
thorpej e94c4d3f1c Call cpu_dumpconf() after cpu_rootconf(). 1997-06-14 04:18:34 +00:00
thorpej 91f7efbaf9 Fix crash dump device selection after the recent swap changes:
- If RB_ASKNAME, prompt for the dump device, defaulting to
  partition 'b' of the root device, if the root device is a disk.
- Else, if dumpspec is set to "none", do not configure a dump device.
- Else, if dumpspec is set by config(8), attempt to use that device.
- Else, dumpspec is wildcarded or unspecified; if the root device is
  a disk, select partition b.  (which was the previous default dump
  partition)

Note, dumps to a local disk now work even if root is on nfs.
1997-06-14 04:17:32 +00:00
perry 9c487327a3 Update for new RAMDISK based install system. 1997-06-14 02:07:08 +00:00
drochner 444a854ad2 Separate access to filesystem and access to raw device, mount
device only if needed. This allows to work on unmounted disks in
securelevel 1.
1997-06-13 22:14:58 +00:00
augustss 86ad297c12 Fix a braino in record source selection and a pasto in detecting
16 bit mode recording.
1997-06-13 19:21:59 +00:00
thorpej 7b3b89d852 Regen: Use compat_12_sys_swapon(). 1997-06-13 19:16:12 +00:00
thorpej 35b5fbf200 Use compat_12_sys_swapon(). 1997-06-13 19:15:18 +00:00
thorpej 896ec49c49 Regen: Use compat_12_sys_swapon(). 1997-06-13 19:12:58 +00:00
thorpej 6f6452cc13 Use compat_12_sys_swapon(). 1997-06-13 19:11:42 +00:00
thorpej 30597f2eed Regen: Use compat_12_sys_swapon(). 1997-06-13 19:10:11 +00:00
thorpej 068d1ad637 Use compat_12_sys_swapon(). 1997-06-13 19:09:12 +00:00
thorpej 41e29be490 Garbage-collect sunos_sys_swapon(); it is not needed. 1997-06-13 19:08:25 +00:00
drochner a0d9d3bc54 Allow to boot from DOS if a XMS manager is installed.
XMS is recognized and used as temporary buffer for the kernel image.
The processor must still be in real mode at program start, so EMM386
or QEMM are not allowed. W*95 is OK.
Written by Martin Husemann (pr port-i386/3336).
Completely separated from other bootloaders for sanity.
1997-06-13 17:49:22 +00:00
thorpej ac4da17507 Regen: Use compat_12_sys_swapon(). 1997-06-13 17:31:37 +00:00
thorpej 454c1df5f3 Use compat_12_sys_swapon(). 1997-06-13 17:30:19 +00:00
thorpej 8671b8f854 Don't #ifdef compat_12_sys_swapon() so that it can be used by other compat
modules.
1997-06-13 17:28:29 +00:00
pk b769cc2fb1 Remove initialization of `swapdev_vp' from mountroot(). 1997-06-13 15:38:58 +00:00
pk e5b0a8820b As long as we actually use `swapdev_vp', initialize it. 1997-06-13 15:37:17 +00:00
ragge 2ab0792e74 Bug fixes to page fault handling system. Many thanks to Johnny Billquist
for hunting down this bug(s).
1997-06-13 15:16:25 +00:00
ragge 5c3a8f6b46 Not-yet-finished console RX01 driver for 11/780. 1997-06-13 14:55:07 +00:00
drochner bc7d1ebcfb Don't #include <string.h>, needed prototypes are in libkern.h. 1997-06-13 14:32:24 +00:00
drochner a0c4d8cb61 Add prototype for strerror(). 1997-06-13 14:30:44 +00:00
drochner 319cc90118 -Wall fixes 1997-06-13 14:29:50 +00:00
drochner 8347a7476f Bring prototypes into scope. 1997-06-13 14:28:52 +00:00
drochner aab2edd1d4 Add prototype for bzero() (since it is implemented here). 1997-06-13 14:27:04 +00:00
drochner 5af5a7c097 Remove strerror() prototype, it goes into stand.h. 1997-06-13 13:48:47 +00:00
drochner d0bb0480b7 Remove bzero() prototype, it goes into libkern.h. 1997-06-13 13:45:50 +00:00
drochner 715639165d Use default media selection from EEPROM. 1997-06-13 13:44:37 +00:00
drochner 7713cd3fb6 Fix misleading comment. 1997-06-13 13:43:05 +00:00
drochner e82115f7f4 Add missing datasize prefix. 1997-06-13 13:42:27 +00:00
drochner e242b6fe17 Reformat comments. (messed up by "indent")
-Wall fixes
1997-06-13 13:41:20 +00:00
drochner d55d9adc84 Reformat comments. (messed up by "indent") 1997-06-13 13:36:04 +00:00
drochner ec191bc613 Fix operand size confusion in 16-bit code. 1997-06-13 13:32:09 +00:00
drochner 2d36b26ee0 The socket descriptor can only be used by one connection at a time.
Simplify the code accordingly.
1997-06-13 13:28:19 +00:00
drochner 44079e2f16 Remove strerror() prototype, it goes into stand.h.
Pass console selection to exec_netbsd().
1997-06-13 13:25:25 +00:00
drochner 906ad4efef Remove strerror() prototype, it goes into stand.h. 1997-06-13 13:22:08 +00:00
drochner 771175f3d8 Remove some relicts from the time before libsa/Makefile got
"SAMISCCPPFLAGS".
Enable -Wall.
1997-06-13 13:17:46 +00:00
drochner 1b787da26a Force inclusion of "diskbuf" into bootsectors.
This allows to build bootsectors containing netboot code
("make netboot.sym" in the netboot directory).
1997-06-13 13:12:29 +00:00
pk 2e8a55e122 TIMESPEC_TO_TIMEVAL => TIMEVAL_TO_TIMESPEC 1997-06-13 08:59:51 +00:00
ragge 9412f1c4fc Some new definitions for different boot devices. 1997-06-13 08:24:09 +00:00
ragge 68a4a97360 Add clock_subr.c. 1997-06-13 08:18:49 +00:00
thorpej dacadc3aff Add the ext2fs file system. 1997-06-13 00:44:13 +00:00
thorpej 9e69444bbd Nuke __VM_PMAP_HACK. 1997-06-12 23:57:26 +00:00
mrg 5321ad5c6f regenerate. 1997-06-12 22:07:47 +00:00
mrg 9cee42ea7c swapon back to compat_12 syscall.. 1997-06-12 22:05:37 +00:00
mrg 00b1926b5b put the front end into libc. 1997-06-12 22:04:50 +00:00
mrg df072ab6f9 make this sys_swapon() for now. 1997-06-12 21:55:47 +00:00
mrg 32d6beee19 regenerate. 1997-06-12 21:47:09 +00:00
mrg abe622f20b for now, leave swapon(8) in place. 1997-06-12 21:41:56 +00:00
pk ddfaeab080 Change `pv_va' entry to a `vm_offset_t' as suggested in PR#3703.
Also, re-arrange pmap_page_protect4_4c() like the 4m variant; add
a more detailed panic message.
1997-06-12 21:02:43 +00:00
mrg 68e8b2b97c we are now 1.2G. 1997-06-12 19:41:10 +00:00
mrg b73df246f5 bring mrg-vm-swap2 onto mainline. 1997-06-12 19:18:15 +00:00
pk 0bf9195444 Erase kernel PTEs in pmap_page_protect4m(). This bug would leave spurious
entries in the kernel address space, eventually leading to panics in
pv_unlink().   This takes care of PRs 3575 & 3703.
1997-06-12 19:14:28 +00:00
mrg aabc4f2396 now need sunos_sys_swapon() as ours is different. 1997-06-12 19:01:02 +00:00
mrg 1258c8d25b remove now obsolete "swap on..." lines. 1997-06-12 18:41:58 +00:00
kleink 8fb48a5db9 Eliminate a superflouus `if' statement: when detaching the TCP protocol from
a socket, just calling tcp_disconnect() on the tcpcb will do the right thing.
From Thorsten Frueauf <frueauf@ira.uka.de> and W. Richard Stevens in PR/3738
resp. TCP/IP Illustrated, Vol. 2.
1997-06-12 18:41:14 +00:00
mrg 7620d5109b remove ex-variables. 1997-06-12 17:59:30 +00:00
mrg 3ab07d1ae2 add M_VMSWAP. 1997-06-12 17:59:13 +00:00
mrg bd8a2cdada bring mrg-vm-swap2 onto mainline. 1997-06-12 17:35:18 +00:00
mrg 295af85e9e remove swap configuration. 1997-06-12 17:12:17 +00:00
ragge 5cfff50811 cpu_switch() should be mi_switch(). Pointed out by Johnny Billquist.
(bqt@update.uu.se)
1997-06-12 16:23:22 +00:00
mrg 552af779d2 bring mrg-vm-swap2 onto mainilne. 1997-06-12 15:46:19 +00:00
mrg dc6a98e92c bring mrg-vm-swap2 onto mainilne. 1997-06-12 15:09:23 +00:00
mrg 21cc3ddfd5 bring mrg-vm-swap2 onto mainilne. 1997-06-12 14:51:20 +00:00
mrg 8986bdf82d regenerate. 1997-06-12 14:49:11 +00:00
mrg c59ed4fd4d add sys_swapctl(), and deprecate, with COMPAT_12, sys_swapon 1997-06-12 14:23:46 +00:00
veego a8536aa57a Use <sys/param.h> and not <machine/param.h> 1997-06-12 09:57:04 +00:00
veego dc2c2bf304 Use '#options<SPACE><TAB>' for EXT2FS_SYSTEM_FLAGS and add the empty line
before '#options GATEWAY'.
1997-06-12 07:05:49 +00:00
perry 08cd1e4c5d clean up the formatting of the ext2fs lines a bit. 1997-06-11 21:05:41 +00:00
jeremy a21d6fc946 Add additional ways to specify a frame address during audio play and seek
ioctl()s.  From Nick Brok <nick@nbrok.iaehv.nl>. [PR/3675]
1997-06-11 18:46:42 +00:00
is 650ce78c8c Make more clear what installbot can't do, and the user must do by hand from
AmigaOS, when installing bootblocks.
1997-06-11 16:01:59 +00:00
bouyer f5aa30a996 Add file-system ext2fs and related options. 1997-06-11 10:54:53 +00:00
bouyer 276676cfbb Support ext2fs. 1997-06-11 10:40:16 +00:00
bouyer 76c414a957 Add support for ext2fs, this needed a few modifications to ufs/ufs/inode.h:
- added an "union inode_ext" to struct inode, for the per-fs extentions.
  For now only ext2fs uses it.
- i_din is now an union:
	union {
		struct  dinode ffs_din; /* 128 bytes of the on-disk dinode. */
		struct ext2fs_dinode e2fs_din; /* 128 bytes of the on-disk dinode. */
	} i_din
  Added a lot of #define i_ffs_* and i_e2fs_* to access the fields.
- Added two macros: FFS_ITIMES and EXT2FS_ITIMES. ITIMES calls the rigth
  macro, depending on the time of the inode. ITIMES is used where necessary,
  FFS_ITIMES and EXT2FS_ITIMES in other places.
1997-06-11 10:09:37 +00:00
kleink 372bfc7c08 Calculate returned timeval correctly when using SO_SNDTIMEO/SO_RCVTIME;
from Koji Imada <koji@math.human.nagoya-u.ac.jp> in PR/3682.
1997-06-11 10:04:09 +00:00
bouyer 9e3c291da4 The ext2fs layer, based on the ffs/ufs one. Uses a few functions from
sys/ufs/ufs/
1997-06-11 09:33:37 +00:00
kleink c41a940888 GC obsolete MDP_AST flag. 1997-06-11 08:58:09 +00:00
kleink f29570aa3a Do not #include the removed <machine/mtpr.h> any more. These definitions are
already living in <machine/cpu.h>.
1997-06-11 08:46:55 +00:00
kleink a10178c21e GC this file. It has been unused for quite a while. 1997-06-11 08:42:31 +00:00
pk cbc17e9dd1 ie2,ie3 and ie4 are 32-bit. 1997-06-10 21:54:21 +00:00
pk 1ab49e584f Avoid "false positives" in match routines. 1997-06-10 20:59:10 +00:00
pk 2851bca951 vme_establishintr: remove SUN4 arch check; this now works on sun4m as well. 1997-06-10 20:57:48 +00:00
veego 61e0a78f37 s/mac68k_btop/m68k_btop/ 1997-06-10 20:29:10 +00:00
veego af1627ce0b The 'Mach derived conversion macros' are now in <m68k/param.h> 1997-06-10 20:20:06 +00:00
veego e32543e434 s/x68k_btop/m68k_btop/ 1997-06-10 20:19:35 +00:00
veego 7cb125a0b0 s/x68k_round_page/m68k_round_page/ s/x68k_trunc_page/m68k_trunc_page/
s/x68k_btop/m68k_btop/ s/x68k_ptob/m68k_ptob/
1997-06-10 20:18:35 +00:00
veego c8863019ed s/x68k_trunc_page/m68k_trunc_page/ s/x68k_btop/m68k_btop/
s/x68k_ptob/m68k_ptob/
1997-06-10 19:51:47 +00:00
veego ba2763943f s/x68k_btop/m68k_btop/ 1997-06-10 19:50:23 +00:00
veego f66de196f8 s/x68k_trunc_page/m68k_trunc_page/ 1997-06-10 19:49:32 +00:00
veego 3aed12bd06 Delete _btos and _stob.
The remaining 'Mach derived conversion macros' are now in <m68k/param.h>
1997-06-10 19:48:33 +00:00
veego 8a19759073 s/_round_page/m68k_round_page/ 1997-06-10 19:47:34 +00:00
veego 6cf26b26ae s/_round_page/m68k_round_page/ s/_trunc_page/m68k_trunc_page/
s/_btop/m68k_btop/ s/_ptob/m68k_ptob/
1997-06-10 19:42:25 +00:00
veego 6dbfc7764b s/_round_page/m68k_round_page/ 1997-06-10 19:37:58 +00:00
veego b1dc6a8603 s/_trunc_page/m68k_trunc_page/ 1997-06-10 19:36:53 +00:00
veego 489e0898d3 Delete _btos and _stob.
The remaining 'Mach derived conversion macros' are now in <m68k/param.h>
1997-06-10 19:35:56 +00:00
veego 05b8948c41 Define NBSG from (1 << SEGSHIFT) and move some variables before
<m68k/param.h>.
1997-06-10 19:32:15 +00:00
veego 6bdd438fca s/_round_page/m68k_round_page/ 1997-06-10 19:27:08 +00:00
veego 4ef51880a6 s/_round_seg/m68k_round_seg/ s/_trunc_seg/m68k_trunc_seg/
s/_round_page/m68k_round_page/ s/_trunc_page/m68k_trunc_page/
1997-06-10 19:25:28 +00:00
veego faa86d39b1 s/_trunc_seg/m68k_trunc_seg/ s/_round_page/m68k_round_page/ 1997-06-10 19:19:01 +00:00
veego 04374fdfc2 s/_round_seg/m68k_round_seg/ s/_round_page/m68k_round_page/ 1997-06-10 19:17:15 +00:00
veego 217706ec40 s/_trunc_page/m68k_trunc_page/ 1997-06-10 19:16:13 +00:00
veego d9f8fea042 The 'Mach derived conversion macros' are now in <m68k/param.h> 1997-06-10 19:15:03 +00:00
veego 6d72d4542c s/mac68k_btop/m68k_btop/ 1997-06-10 19:13:36 +00:00
veego e4b7dd88ce s/mac68k_round_page/m68k_round_page/ s/mac68k_trunc_page/m68k_trunc_page/
s/mac68k_btop/m68k_btop/ s/mac68k_ptob/m68k_ptob/
1997-06-10 19:11:26 +00:00
veego ef9394e96d s/mac68k_trunc_page/m68k_trunc_page/ s/mac68k_btop/m68k_btop/
s/mac68k_ptob/m68k_ptob/
1997-06-10 19:09:05 +00:00
veego f4068b5345 s/mac68k_round_page/m68k_round_page/ s/mac68k_trunc_page/m68k_trunc_page/ 1997-06-10 19:03:38 +00:00
veego 0dc0a3ca5e s/mac68k_btop/m68k_btop/ 1997-06-10 19:02:33 +00:00
veego dd62be796a s/mac68k_trunc_page/m68k_trunc_page/ 1997-06-10 19:01:35 +00:00
veego 0cd13fe0b5 s/mac68k_round_page/m68k_round_page/ s/mac68k_trunc_page/m68k_trunc_page/
s/mac68k_btop/m68k_btop/
1997-06-10 19:01:00 +00:00
veego be611a44d5 The 'Mach derived conversion macros' are now in <m68k/param.h> 1997-06-10 18:59:12 +00:00
veego 323d575e58 s/hp300_btop/m68k_btop/ 1997-06-10 18:58:19 +00:00
veego 3360f97707 s/hp300_round_page/m68k_round_page/ s/hp300_trunc_page/m68k_trunc_page/
s/hp300_btop/m68k_btop/ s/hp300_ptob/m68k_ptob/
1997-06-10 18:56:50 +00:00
veego a969a4b6f6 s/hp300_trunc_page/m68k_trunc_page/ s/hp300_ptob/m68k_ptob/ 1997-06-10 18:52:23 +00:00
veego 6a57e397b7 s/hp300_btop/m68k_btop/ 1997-06-10 18:51:31 +00:00
veego fb53429628 s/hp300_round_page/m68k_round_page/ s/hp300_trunc_page/m68k_trunc_page/ 1997-06-10 18:49:35 +00:00
veego f1d4880cb5 s/hp300_trunc_page/m68k_trunc_page/ 1997-06-10 18:48:47 +00:00
veego 6304388ee4 The 'Mach derived conversion macros' are now in <m68k/param.h> 1997-06-10 18:47:21 +00:00
veego 011ba826e7 s/atari_btop/m68k_btop/ 1997-06-10 18:46:30 +00:00
veego b04f321b06 s/atari_round_page/m68k_round_page/ 1997-06-10 18:45:05 +00:00
veego 48ac6b6866 s/atari_round_page/m68k_round_page/ s/atari_trunc_page/m68k_trunc_page/ 1997-06-10 18:43:46 +00:00
veego a4c1cd0649 s/atari_round_seg/m68k_round_seg/ s/atari_trunc_seg/m68k_trunc_seg/
s/atari_round_page/m68k_round_page/ s/atari_btop/m68k_btop/
s/atari_ptob/m68k_ptob/
1997-06-10 18:41:13 +00:00
veego 0fb1053663 s/atari_trunc_page/m68k_trunc_page/ 1997-06-10 18:39:11 +00:00
veego 337441ce5f s/atari_round_page/m68k_round_page/ 1997-06-10 18:37:50 +00:00
veego 42395ee36b The 'Mach derived conversion macros' are now in <m68k/param.h> 1997-06-10 18:36:32 +00:00
veego d3c01fde2c s/amiga_btop/m68k_btop/ 1997-06-10 18:34:52 +00:00
veego 2e45a6e310 s/amiga_round_page/m68k_round_page/ 1997-06-10 18:30:28 +00:00
veego 7097d0f71e s/amiga_round_page/m68k_round_page/ s/amiga_btop/m68k_btop/
s/amiga_trunc_seg/m68k_trunc_seg/ s/amiga_round_seg/m68k_round_seg/
s/amiga_ptob/m68k_ptob/
1997-06-10 18:26:41 +00:00
veego d35d17a7c0 s/amiga_trunc_page/m68k_trunc_seg/ 1997-06-10 18:24:34 +00:00
veego b62ba16540 s/amiga_round_page/m68k_round_page/ 1997-06-10 18:22:24 +00:00
veego f7d1a9f167 Add the 'Mach derived conversion macros' from <arch>/include/param.h. 1997-06-10 18:21:23 +00:00
veego 931d90fcee Use the MI <m68k/param.h> include. 1997-06-10 07:54:35 +00:00