Commit Graph

29052 Commits

Author SHA1 Message Date
pk
422c4dbb41 Put back <uvm/uvm.h> 1999-03-25 22:13:40 +00:00
perseant
6b51bdc17c Lock buffers with B_BUSY between data checksum calculation and write, so
some other process doesn't change the data after it was checksummed.
1999-03-25 22:02:36 +00:00
is
b30a4d19c0 Defopting grf_cc configuration parameters 1999-03-25 21:55:17 +00:00
perseant
1cacaa295f Change lfs_sb_cksum to use offsetof() instead of an inlined version.
Fix lfs_vref/lfs_vunredf to ignore VXLOCKed vnodes that are also being
flushed.

Improve the debugging messages somewhat.
1999-03-25 21:54:10 +00:00
perseant
e6ef2d67dd clean up unused/required #ifdefs 1999-03-25 21:39:18 +00:00
simonb
1132034fe8 If the clock speed is less than 15MHz, we're on a 2100, otherwise a 3100. 1999-03-25 19:55:37 +00:00
mjacob
d3fb0e2ad5 roll internal tag level 1999-03-25 19:41:47 +00:00
mrg
a0139bc39d remove now >1 year old pre-release message. 1999-03-25 18:48:49 +00:00
mrg
54ab2e1e54 clean and up make compile 1999-03-25 17:49:43 +00:00
perry
b476609d5f fix typo 1999-03-25 17:06:38 +00:00
mrg
c3b0d25b27 SPARC32->NETBSD32 1999-03-25 16:58:39 +00:00
mrg
8df6f0c629 regen 1999-03-25 16:32:27 +00:00
mrg
6f5ceb781e include the MD header. 1999-03-25 16:27:56 +00:00
mrg
dc011bcec0 move sparc32 MD bits here. 1999-03-25 16:26:19 +00:00
mrg
a5867d9385 move sparc32 to netbsd32; split out MD part (signal handling) (mostly via repository copy, rename and perl -pi :-) 1999-03-25 16:22:49 +00:00
bouyer
1ff88ee466 Avoid busy-waiting when possible if we are not polling (real IRQ or timeout
callback). Shared PCI IRQ should now work (but still untested).
1999-03-25 16:17:36 +00:00
bouyer
d907e1f61e First pass at support of Compaq NetFlex 3/P PCI: this one has
IO and Mem base address register inverted.
Still need some MII hack to get it fully fonctionnal.
1999-03-25 16:15:00 +00:00
mrg
8f32e2fbc8 regen 1999-03-25 15:51:50 +00:00
mrg
7f7d23b4a6 formatting nits 1999-03-25 15:34:37 +00:00
mrg
ad412a0e07 make this match the main syscalls.master a bit better. 1999-03-25 15:33:48 +00:00
bouyer
e045fbf363 We must handle MNT_NODEV at open time, so add an open op for null and union,
and do proper checks in union_open(). Fix to nullfs from OpenBSD, extended
to umap and union by me.
1999-03-25 13:05:41 +00:00
simonb
e432668f46 callvec.c moved in stand again... 1999-03-25 12:56:18 +00:00
simonb
aff677bcae Updates for new bootblocks. 1999-03-25 12:24:56 +00:00
simonb
5010ae76c0 Remove old (not-enabled) local support for loading kernels. 1999-03-25 12:16:04 +00:00
simonb
b295b577e1 Second stage bootblocks based on original single stage blocks. 1999-03-25 12:11:41 +00:00
simonb
2dde1643c2 Makefile for /boot. 1999-03-25 12:10:12 +00:00
simonb
7c060ce391 Version info for bootblocks. 1999-03-25 11:57:41 +00:00
simonb
26098f27a2 Emtpy twiddle() to save space in stage 1 bootblocks 1999-03-25 05:28:36 +00:00
simonb
b9b7830d05 Unused now. 1999-03-25 05:27:00 +00:00
explorer
f388d47b3b put RCS ids in the right place. And yes, this is a SYNC ppp interface,
used for high-speed (T1, HSSI, DS3) interfaces.
1999-03-25 05:25:42 +00:00
simonb
1e80ec96a0 Only include the dec disklabel at the start of BOOTXX is defined. 1999-03-25 05:23:48 +00:00
simonb
fb11e9e236 Remove unused debugging code, and clean up an error message. 1999-03-25 05:22:44 +00:00
simonb
f490a639c9 Not needed at the moment - may be resurrected when netboot comes along. 1999-03-25 05:19:44 +00:00
simonb
a160a47e1b Fix header botch in previous. 1999-03-25 05:17:49 +00:00
simonb
e213504efd Call main instead of _main. 1999-03-25 05:17:27 +00:00
simonb
c80fb4ccb8 Change from loading an a.out kernel to an ELF /boot. 1999-03-25 05:16:06 +00:00
simonb
0e44e536a0 Include <machine/stdarg.h> and not <stdarg.h> - found by adding
-nostdinc to CPPFLAGS.
1999-03-25 05:13:15 +00:00
sommerfe
342750cf1c Move MNT_NODEVMTIME so it no longer duplicates the value of MNT_EXPUBLIC.
Add  #defines for the four unused flag bits to make this sort of error less
likely in the future
1999-03-25 05:06:32 +00:00
sommerfe
ef07055d58 Disallow tracing of processes unless tracer's root directory is at or
above tracee's root directory.
1999-03-25 04:45:56 +00:00
explorer
eb94e6147c define ETHER_CRC_LEN, for if_vr.c 1999-03-25 04:45:37 +00:00
simonb
7607cac7b3 CVS repository copy to bootxx.c 1999-03-25 04:42:06 +00:00
simonb
70bc63765d CVS repositary copied to ../scsiboot. These are small routines and/or
PROM callbacks used only by the first-stage disk bootblocks.  Other
bootloaders use libsa/libkern.
1999-03-25 04:34:03 +00:00
sommerfe
280a842850 commit fix to PR7072: emulate linux non-blocking connect behavior more correctly 1999-03-25 04:26:45 +00:00
simonb
ec6b2370d9 CVS repositary copied to ../lib. 1999-03-25 04:22:04 +00:00
simonb
e6469a71aa Makefile* of pmax specific SA library - based on i386/stand/lib Makefile. 1999-03-25 04:16:15 +00:00
simonb
88eed19213 Oops, forgot RCS header and copyright. 1999-03-25 04:14:03 +00:00
explorer
6b9af88b99 wrap kernel bits in shared kernel/userland files 1999-03-25 04:09:33 +00:00
simonb
50e9ee5706 Assembly routine that takes an entry point, new stack pointer address
and six extra arguments.  Sets up the stack pointer with the arguments
in the right registers/stack positions and calls the entry point.
1999-03-25 04:08:59 +00:00
sommerfe
e94a23c0ef Fix crash reported in PR7116 on shutdown 1999-03-25 04:07:33 +00:00
simonb
c7c8021a29 Basic putchar() implentation in terms of the PROM's printf() callback.
Not really effecient, but there isn't that much printf'ing down by SA
programs and we can use the libsa printf() so things like "%ld" work.
1999-03-25 04:02:57 +00:00
simonb
0f203c7d99 Use "make ... echo ${MACHINE}" to get the machine name so
that this script is MI.  Just need to find the right place
for it now - suggestions welcome...
1999-03-25 03:56:00 +00:00
explorer
7bfd643eab install if_lmc*.h 1999-03-25 03:54:43 +00:00
simonb
246f0aacde Copy of sys/arch/sparc/common/newvers.sh. 1999-03-25 03:52:12 +00:00
simonb
c06d325aaa Copy of sys/arch/i386/lib/loadfile.h with tweaks for the pmax. 1999-03-25 03:41:58 +00:00
explorer
91a9d315ba port FreeBSD's serial ppp layer to NetBSD. The PPP part seems broken still,
but the lmc driver uses the HDLC bits from here anyway.
1999-03-25 03:39:11 +00:00
simonb
6c24c1c864 When loading an a.out kernel and keeping the exec header, if it's OMAGIC
put the exec header below kernel text.
1999-03-25 03:38:53 +00:00
explorer
2a91ea8a57 port FreeBSD's serial ppp layer to NetBSD. The PPP part seems broken still,
but the lmc driver uses the HDLC bits from here anyway.
1999-03-25 03:38:00 +00:00
simonb
4ba6c44ef4 s/BOOTINFO_MAXSIZE/BOOTINFO_SIZE/ 1999-03-25 03:35:39 +00:00
explorer
bdf33ae1f0 add entry for lmc* at pci? 1999-03-25 03:35:26 +00:00
simonb
afc2e41e04 Change multiple spaces to tabs. 1999-03-25 03:34:28 +00:00
simonb
be62523806 Remove trailing whitespace. 1999-03-25 03:33:58 +00:00
explorer
0c2f5ada28 Commit files for the LAN Media Corporation high speed serial/HSSI/DS3 driver 1999-03-25 03:32:43 +00:00
explorer
960c283a65 Add LAN Media Corporation info 1999-03-25 03:28:17 +00:00
simonb
674c1ff8f1 Check KN03_INTR_PROD_JUMPER in the IOASIC INTR register to test if we
are running on a 5000/2x0 or a 5900, and set cpu_model accordingly.
(Test from Tohru Nishimura).
1999-03-25 03:03:59 +00:00
simonb
3a2b42eeca Add KN03_INTR_PROD_JUMPER (from Tohru Nishimura). 1999-03-25 03:00:18 +00:00
nathanw
e8b935d003 Garbage collect a non-useful variable in getcwd_scandir(). 1999-03-25 02:32:18 +00:00
perry
ea0f7990a8 add a (commented out) BROKEN_LPT_DELAY 1999-03-25 02:22:21 +00:00
perry
8ade3b61ba Add two #ifdef BROKEN_LPT_DELAY's in to the central write byte
& strobe cycle. These bracket DELAY()'s of BROKEN_LPT_DELAY
microseconds. This can be used to kludge around mysterious hangs and
reboots some users experience. The cause of these failures is still
not known, but is conjectured to be hardware bug originated failures
in the bus cycle.
1999-03-25 02:17:38 +00:00
simonb
03ca5d05cf Remove trailing whitespace. 1999-03-25 01:17:51 +00:00
tron
bbee1b42b1 Make it possible to set MTU via "ifconfig" at run time. "SLMTU" is now
used to set the initial value.
1999-03-25 00:52:14 +00:00
explorer
77597ecd3e Start commit of Lan Media Corp T1/HSSI/DS3 driver 1999-03-25 00:51:53 +00:00
mrg
7b93dd1117 remove opt_uvm.h 1999-03-25 00:41:46 +00:00
sommerfe
f1a508e354 Prevent deadlock cited in PR4629 from crashing the system. (copyout
and system call now just return EFAULT).  A complete fix will
presumably have to wait for UBC and/or for vnode locking protocols to
be revamped to allow use of shared locks.
1999-03-25 00:20:35 +00:00
simonb
50897b84e0 Direct copy of sys/arch/i386/stand/lib/loadfile.c.
XXX: This should probably be MI in sys/lib/libsa.  After 1.4...
1999-03-24 23:51:26 +00:00
dbj
4717d3e130 fix typo allocating color framebuffer map. 1999-03-24 23:47:46 +00:00
simonb
b4848d6b90 Code to initialise and add bootinfo records. 1999-03-24 23:47:37 +00:00
dbj
a859ba2b23 Applied patches from Matt Debergalis <deberg@mit.edu>.
These patches include:
  Added framebuffer mapping for color framebuffer to support color wscons
    which is coming soon.
  Renamed wskbdmap_mfii[ch] to wskbdmap_next[ch]
  Changed video to be white on black instead of black on white.
  Now handles and discards mouse interrupts.
  Video and keyboard is now working on mono machines.
1999-03-24 23:15:51 +00:00
ender
235abbff06 Garbage collect a bit of old VM missed by the initial pass.
Fix supplied by Dave Huang <khym@bga.com> in PR #7226.
1999-03-24 22:28:49 +00:00
is
35bbdd4cd2 AGA: VGAonly timing (GRF_AGA_VGA), by Adam Ciarcinski 1999-03-24 22:24:42 +00:00
drochner
88a179595a regdef.h is back 1999-03-24 21:15:17 +00:00
thorpej
01ea9a1dd8 Regen. 1999-03-24 21:07:26 +00:00
thorpej
029f0b9d86 Silicon Integrated Systems OUI and the SiS 900 PHY model number. 1999-03-24 21:07:04 +00:00
augustss
0ed038285c Remove leftover definition of AUDIO_DEBUG. 1999-03-24 20:59:21 +00:00
cgd
fe0bb65b38 in general, it's a good idea to make sure you at least have all of the
variables you reference, before you commit something...
1999-03-24 18:47:51 +00:00
minoura
fdd6c4d819 Add function keys mapping. 1999-03-24 14:12:52 +00:00
minoura
b28f2306c9 G/c amiga's key repeat handler. 1999-03-24 14:11:47 +00:00
minoura
a76b0b1bf5 Shut up gcc -Wall. 1999-03-24 14:07:38 +00:00
minoura
ff8cf815a8 Mach VM removal. 1999-03-24 14:01:50 +00:00
simonb
71bb7683db Initiailise to bootinfo pointer to NULL. In lookup_bootinfo(), if the
bootinfo pointer is NULL, just return instead of trying to make use of it.
1999-03-24 12:59:15 +00:00
tron
732f052e13 Don't include "opt_uvm.h" any more. 1999-03-24 12:41:27 +00:00
tron
4cdff58b76 Don't include "opt_uvm.h" any more. 1999-03-24 12:16:50 +00:00
tron
75377e1815 Don't include "opt_uvm.h" any more. 1999-03-24 11:35:30 +00:00
tron
1eb060a0ba Remove remaining "ifdef UVM" checks. 1999-03-24 11:23:45 +00:00
tron
e1d80e2d51 Don't include "opt_uvm.h" any more. 1999-03-24 11:21:47 +00:00
tron
057ae88da9 Don't include "opt_uvm.h" any more. 1999-03-24 11:05:31 +00:00
mrg
ca5f9685bb clean up kernel/config files files for machVM lossage. 1999-03-24 06:06:09 +00:00
sommerfe
b6c36d0fe4 fix union node lock to sleep on something it'll be woken on.. 1999-03-24 05:53:59 +00:00
mrg
d2397ac5f7 completely remove Mach VM support. all that is left is the all the
header files as UVM still uses (most of) these.
1999-03-24 05:50:49 +00:00
cgd
9639d2bb98 modify udv_attach() and its caller (uvm_mmap()) so that it's passed the
offset and size of the requested region to be mapped, so that the
udv_attach() can use the device d_mmap() entry to check mappability
of the requested region.
1999-03-24 03:52:41 +00:00
jonb
a50349ea32 Comment out options that are already the default... (I'm leaving them
around as an example of what to change if needed.)
1999-03-24 03:48:04 +00:00
nisimura
f719570f0a - Restore 'regdef.h' lost since last January. 1999-03-24 03:45:36 +00:00
cgd
37c88c58da after discussion with chuck, nuke pgo_attach from uvm_pagerops 1999-03-24 03:45:27 +00:00
mycroft
006ee23e99 Fix another problem is the modified bit emulation that caused double faults.
We need to set the L2 type preemptively, as it may still be L2_INVAL if the
page had not been previously accessed.
1999-03-24 02:45:27 +00:00
simonb
0ba02670be New bootblock directory structure. 1999-03-24 02:07:22 +00:00
mycroft
11d7efb7ba Forgot a return instruction in the error case. 1999-03-24 01:51:56 +00:00
simonb
0074502b0a o Add bootinfo support by checking the fifth and sixth arguments for a
magic number and a pointer to the bootinfo data.
   XXX: A bootinfo_magic record is not checked for at the moment, even
        though test bootblocks initialise the bootinfo data with one.

 o Use the bootinfo symtab information in preference to searching for a
   valid a.out exec header after _end for initialising DDB.
   XXX: Should retire a.out exec header support altogether.  Loosing the
        ability to load symbols from old bootblocks isn't much of a loss.
        After 1.4?

 o Add "booted kernel" machdep sysctl.
1999-03-24 01:49:10 +00:00
thorpej
3993ee01e4 Don't enable I/O or memory access here! These bits in the PCI CSR are
set up by the firmware, and indicate which mapping types the system
supports.
1999-03-24 01:07:59 +00:00
thorpej
ac0f626cca Make sure bus mastering is enabled. 1999-03-24 01:05:15 +00:00
thorpej
9f85a4a798 Make sure bus mastering is enabled. 1999-03-23 23:18:50 +00:00
jonb
6c6ff861c6 put in compiler options to reduce object size by half 1999-03-23 23:02:14 +00:00
simonb
729eda4324 Define a bootinfo record and initial structures that the pmax will use.
Modeled on i386 and bebox bootinfo.h.
1999-03-23 22:53:02 +00:00
simonb
aca34380db If on entry the stack is within 4kB of _start, don't reset the stack
pointer to just underneath _start.  Allows bootblocks (or other kernel
calling programs) to pass more than 4 arguments if it sets up the stack
properly.

The 4kB figure may be overkill - on the pmax it only needs to be a dozen
of so bytes.
1999-03-23 22:43:18 +00:00
simonb
9913b7202b Revert SA_NOPUTCHAR - the pmax was the only port using it and the new
pmax bootblocks provide a putchar().
1999-03-23 22:25:31 +00:00
simonb
c9e3b47a0f Don't build anything while bootblocks are being updated. 1999-03-23 22:23:11 +00:00
simonb
f93b8168c0 Include <machine/db_machdep.h> instead of <mips/db_machdep.h>. 1999-03-23 22:15:36 +00:00
simonb
41febd3a3c Move DB_{AOUT,ELF}_SYMBOLS (and DB_ELFSIZE) definition to port-specific
db_machdep.h file.
1999-03-23 22:07:06 +00:00
simonb
027594b1eb Add CPU_BOOTED_KERNEL to CTL_MACHDEP definition. 1999-03-23 22:04:01 +00:00
thorpej
86f87d7c5f Add a new shared media option, IFM_FLOW, used to enable link-level
flow control.  IEEE 802.3x is in mind, but this could be generally
useful for different types of media.
1999-03-23 21:46:47 +00:00
drochner
1c99e4196a Use BUS_SPACE_ALIGNED_POINTER() instead of ALIGNED_POINTER() where the pointer
in not just used to access memory but is bassed to bus_space_xxx_n()
methods. For debugging purposes, bus_space can have additional constraints
which will be properly met by BUS_SPACE_ALIGNED_POINTER().
1999-03-23 21:41:07 +00:00
drochner
76fa1751fe Add a macro to check for sufficient pointer alignment in bus.h context,
"BUS_SPACE_ALIGNED_POINTER()".
Equal to the param.h "ALIGNED_POINTER()" normally, but obeys additional
requirements of the bus_space_xxx_n() macros. (BUS_SPACE_DEBUG)
1999-03-23 21:29:03 +00:00
bad
b5348881aa Add tcic PCMCIA controller. 1999-03-23 20:08:55 +00:00
bad
23d89d53f3 config(8) glue for the TCIC PCMCIA backend. 1999-03-23 20:07:39 +00:00
bad
f44fb0d91c A backend for Databook's TCIC family of PCMCIA chips.
Thanks to Andreas Lohrum, O'Reilly Verlag, Terry Moore, and Holger Czukay
for hardware, documentation, and support.
1999-03-23 20:04:14 +00:00
mycroft
1bb64b0636 __SWAP_BROKEN is no longer useful here. 1999-03-23 19:16:03 +00:00
mycroft
6bb727e736 Nuke some more code that was fetching PT_M and PT_H from pv_flags. 1999-03-23 18:39:38 +00:00
thorpej
c939af8267 Oops, some source files use __IDSTRING() directly, so provide one in
the ELF case, as well.
1999-03-23 18:28:12 +00:00
wrstuden
3c8e65b670 Oops. macppc doesn't use PCLK as a baud rate source. 1999-03-23 18:07:19 +00:00
mycroft
5f63cab877 The page and section fault handling paths are essentially identical, so
combine them.  This also fixes a performance issue, in that we always
faulted pages twice in order to write them.
1999-03-23 18:02:02 +00:00
wrstuden
a7678930b4 Oops. mac68k does NOT use PCLK as a clock source, so don't enable it in
the default channel setup.
1999-03-23 17:55:03 +00:00
mycroft
79e56d3237 The ARM has the same copy-on-write bug as the i386 -- the write enable bit in
PTEs is ignored when in kernel mode.  Hack around this just like we do on the
i386, by adding a prepass to copyout() to check for write permission on the
destination pages.
1999-03-23 17:14:34 +00:00
drochner
5575305f99 If no screen got the "focus" (which happens with serial console or if
the current screen is deleted), automatically give focus to the next
screen created. Saves the need to switch to a usable screen manually.
1999-03-23 15:56:56 +00:00
minoura
87c8a7e347 u?vm_page_physload args are in page. 1999-03-23 15:55:43 +00:00
christos
f36829e285 s/DEBUG/LDT_DEBUG/ This got too verbose when running Wine. 1999-03-23 15:48:19 +00:00
kleink
6558e04aea Translate _PC_FILESIZEBITS. 1999-03-23 14:57:00 +00:00
mycroft
8f3d31a32b More cleanup...
* Don't bother pulling PT_M and PT_H bits from pv_flags; they can't ever be
  set there!
* Actually make pmap_clear_reference() do something useful.
* Also set the referenced bit (PT_H) when emulating a write fault.
1999-03-23 13:52:48 +00:00
mycroft
da99fe308e Repeat after me:
If we're doing modified bit emulation, we must revoke write permission in
pmap_clear_modify().  This is non-negotiable.  I will revoke write permission
in pmap_clear_modify(), or suffer the wrath of a thousand bricks.
1999-03-23 13:27:48 +00:00
mycroft
3c8512dbb5 We could not possibly have been updating the pv attributed correctly in
pmap_enter(), so... make the obvious change.
1999-03-23 12:30:45 +00:00
pk
b0de87c45f To clear a chunk of bus memory use bus_space_set_regionN(). 1999-03-23 12:01:45 +00:00
lukem
8a931fcdd8 Ensure that you can only bind a more specific address when it is done by the
same uid or by root.

This code is from FreeBSD. (Whilst it was originally obtained from OpenBSD,
FreeBSD fixed it to work with multicast. To quote the commit message:
    - Don't bother checking for conflicting sockets if we're binding to a
      multicast address.
    - Don't return an error if we're binding to INADDR_ANY, the conflicting
      socket is bound to INADDR_ANY, and the conflicting socket has
      SO_REUSEPORT set.
)
1999-03-23 10:45:37 +00:00
itohy
e4d7e0a023 Update to OSF/1 V4. 1999-03-23 09:19:25 +00:00
dbj
c1824c37af more minor changes, mostly in minor tweaks to debuggin output.
tweaks to handling dmasize != dmalen correctly.
changed minimum dma segment length for tail buffer.
1999-03-23 08:42:39 +00:00
gwr
c19324e6bb Fix prototype mismatch. 1999-03-23 05:54:11 +00:00
minoura
86ecebe5e8 Move high-memory detect routine.
This seems to fix the problem that it hangs up on 040turbo without
high-memory.
1999-03-23 04:18:50 +00:00
thorpej
9d49c8139a Regen; pread(2) and pwrite(2). 1999-03-23 03:01:48 +00:00
thorpej
e8a3256e7f Add support for emulating the Linux pread(2) and pwrite(2) system calls;
just call the native NetBSD versions.

PR #7202, Jaromir Dolecek <dolecek@ics.muni.cz>.
1999-03-23 03:00:51 +00:00
thorpej
845b609f97 Set the high water mark on the mbuf cluster pool to NMBCLUSTERS. 1999-03-23 02:51:27 +00:00
thorpej
9614a68c70 Fix the order of arguments to roundup(). 1999-03-23 02:49:03 +00:00
pk
54ae4d24b8 Call bus_dma_[un]load() at splbio. 1999-03-23 00:38:15 +00:00
pk
c3eb74e089 Check for Sbus slave access errors.
Call bus_dma_load() with elevated priority.
1999-03-23 00:32:27 +00:00
thorpej
63b6321834 VM_MBUF_SIZE is in terms of MCLBYTES, not CLBYTES. 1999-03-23 00:31:59 +00:00