jonathan
339aa91097
Update the old (4.4bsd/pmax) miniroot build scripts to put mount_ffs
...
on a miniroot, until the new miniroot tools work on a pmax.
1995-12-22 08:08:14 +00:00
jonathan
2852152043
Reserve a number in the machine-dependent range for PT_STEP, in
...
case the kernel-debugger implementation of single-stepping ever works
with user code.
1995-12-21 09:28:36 +00:00
jonathan
c0f958f6be
Add support for ptrace PT_GETREGS and PT_SETREGS for NetBSD/pmax:
...
* define PT_GETREGS and PT_SETREGS in pmax/include/ptrace.h
* Flesh out the stubs in pmax/pmax/process_machdep.c to handle
those requests.
* Now that "struct reg" is actually used, remove the bogus
#ifdef LANGUAGE_C around its definition, and redo pmax/include/reg.h
so that the definitions needed by locore.S are in a separate file,
pmax/include/regnum.h.
* update locore.S to match.
1995-12-20 02:00:23 +00:00
jonathan
d7d2ba5ac3
Fix cross-compilation bug: native architecture is "pmax", not "mips".
1995-12-17 09:09:42 +00:00
jonathan
ea863ea59f
Remove LENITR_UNIT and supporting code that allowed passing a unit
...
number, instead of a softc pointer, to leintr(). Pmaxes don't need it anymore.
1995-12-17 04:46:00 +00:00
jonathan
00b821d6c2
Change mips __warn_references() macro to use the ELF warning features
...
in binutils 2.6 and (patched) gcc 2.7.2. Only works with gcc in ANSI C
mode, for now.
1995-12-15 01:17:04 +00:00
jonathan
28db87de35
Change pixel type from u_long to u_int32_t, to match rcons.
1995-12-14 16:27:33 +00:00
mycroft
292120bf63
Define __FORK_BRAINDAMAGE.
1995-12-09 04:41:41 +00:00
jtc
0cd793449e
merge in changes from 1.1 release branch
1995-11-30 00:56:23 +00:00
mellon
55980119ec
Remove some cruft
1995-11-25 10:39:57 +00:00
mellon
8b29652e06
Fix colormap initialization for monochrome pmax framebuffer
1995-11-25 10:38:42 +00:00
mellon
db99c1a30b
Provide compiler tool definitions for cross compilation.
1995-11-25 05:55:38 +00:00
cgd
0f7f390b49
allow bus-specific lance drivers to use machine-independent buffer/descriptor
...
copy functions, and convert isa and pmax drivers to do so.
1995-11-25 01:23:51 +00:00
jonathan
cf5cff6ce5
Change PROM callback from "strcmp" to "_strcmp", which is what
...
dec_prom.h uses.
1995-10-26 01:39:49 +00:00
jonathan
d3d55dedb5
Macro definitions of ntohs() and ntohl() for pmax bootblocks.
1995-10-26 01:31:09 +00:00
jonathan
8e3a40d820
Commit missing modified copy of (old) sparc filesystem.c, that has
...
a comple-time option to support a subset of UFS operations, to build
small bootblocks.
1995-10-26 01:29:34 +00:00
jonathan
3b8faec21d
Initialize pointer to the fb method table. Not initializing the
...
method table for the 2100/3100 fb caused a panic when an X server started.
1995-10-16 22:28:36 +00:00
jonathan
0736074d04
Fix bugs in the turbochannel config table for MAXINE (personal decstation).
1995-10-09 01:45:26 +00:00
mycroft
245f292fed
Prefix names of system call implementation functions with `sys_'.
1995-10-07 06:25:19 +00:00
jonathan
37d37e0791
Change the pmax framebuffer driver to reflect the rcons changes as negotiated
...
with pk:
Use dev/rcons/files.rcons in the pmax config file.
Use "rasterconsole" as the tag in pmax/conf, and modify the pmax
framebuffer pseudo-device drivers (fb and rcons) to us rasterconsole.h and
RASTERCONSOLE for compile-time configuration of the rcons pseudo-device.
Modify the pmax rcons pseudo-device driver to initialize a little-endian,
QVSS-compatible font (set its ascent, and set the rconsole structure to
point to that font) before calling rcons_connect().
Tested on a cfb. The ascent may be wrong (or at least, not be aligned with
the hw cursor sprite) on a 3100.
1995-10-05 01:52:44 +00:00
jonathan
8945da0c58
Add speed entries for 7200 and multiples.
...
Add as-yet-unused speed entries for a 1x SCC clock, up to 200 Kbits.
Remove old top-bit-means-delay code, since nothing seems to need it,
and it apparently partially broke lk-201 initialization anyway.
1995-09-29 21:55:19 +00:00
jonathan
ae1b64d888
Fix btoc()/ctob() typo in reading physical memory that stopped ps
...
from reading process argument lists.
Allow kernel-virtual memory reads to read the message buffer, since
dmesg needs it.
1995-09-29 21:53:29 +00:00
jonathan
b543578236
Add a missing "nop" in a delay slot in the floating-point exception
...
handler. Gradual underflow and fp emulation now work correctly.
Proper denorms also fix strtod() inaccuracies and Gcc's "enquire" program.
1995-09-28 20:02:50 +00:00
jonathan
f28ebc66ca
Fix SCC bug that broke getty on pmax SCC lines: if RAW and LITOUT were
...
both off, haracters with their top bit clear were interpreted as a delay.
This (strange) behaviour is still available if SCC_PARITY_MEANS_DELAY
is defined.
1995-09-25 22:10:56 +00:00
jonathan
95a27d405b
Update pmax kernel to compile with -Werror:
...
update MAXINE desktop bus driver to pass a softc to interrupt
handler. The softc is still statically allocated.
1995-09-25 21:12:33 +00:00
jonathan
ed4d846a84
Update pmax kernel to compile with -Werror:
...
Add prototypes to the driver switch for old-style 4.4bsd/pmax device drivers
(i.e., the old pmax SCSI drivers).
1995-09-25 21:10:03 +00:00
jonathan
51d59ca152
Update pmax kernel to compile with -Werror:
...
Fix the initializer of the prom bootinit() function, to take a char* that's
(presumably) the name of the file to boot -- even though it's not used.
1995-09-25 21:06:29 +00:00
jonathan
cd887a9930
Add "kvtophys()", which maps MIPS R2000 kernel-virtual addresses to physical addresses,
...
so they can (e.g.) be written to DMA mapping registers.
1995-09-25 20:36:23 +00:00
jonathan
06bd2712e9
Update pmax kernel to compile with -Werror:
...
Update TURBOChannel and ioasic interrupt-establish routines to pass on their
device argument as a "void *", since that's how all the pmax interrupt handlers
are declared.
1995-09-25 20:33:26 +00:00
jonathan
27361456c5
Force a delay after calling SCC_WRITE_DATA() to give the chip
...
registers time to settle. DELAY(2) is reportedly enough. Without the
delay, output characters are occasionally doubled.
1995-09-25 04:30:43 +00:00
jonathan
7bb66692c0
Add fine-grain clock code which uses the 25 MHz TURBOChannel bus-cycle
...
counter on 5k/240s to interpolate to microsecond-resolution clock
in microtime(). Only the "rev B" ASIC in 5k/240s is known to have
this counter; other models may or may not. This gives microsecond
resolution at user-level, and up to 40ns resolution (modulo the
nominal 5(?) 40MHz cpu cycles for reads to complete) in the kernel.
Change the IOASIC reset function to set up the DMA mapping for the
53c94. Allocate 16 Kbytes of DMA buffer for 53c94 ASCs under an IOASIC,
as the 3MAX baseboard and TC options have 128 Kbytes of static
bounce buffer, and the drivers really _should_ support 16Kbyte
I/O requests. (They don't always.)
Give the LANCE a hard reset on 5k/240s, just to be on the safe side.
(the 5k/240 I use sometimes reported errors at boot time.)
1995-09-25 04:21:01 +00:00
jonathan
462ef77234
Use the new "struct rconsole"; changes I apparently forgot to commit with
...
pmax/dev/fb.c.
1995-09-24 23:13:00 +00:00
jonathan
21f7aa38f6
Update the pmax rcons pseudo-device driver to work with the sys/dev/rcons
...
version of rconsole.
1995-09-22 23:48:20 +00:00
jonathan
d1234038d4
Rename the force-all-pending-writes to memory function to wbflush().
...
Keep the old Mach-derived name "MachEmptyWriteBuffer()" as an alternate
entry point.
1995-09-21 23:28:31 +00:00
jonathan
0641f09bfb
Include <sys/mount.h>, as the new <sys/syscallargs.h> won't compile without it.
1995-09-20 23:33:25 +00:00
jonathan
2991316b06
Remove unecessary references to arch/sparc/rcons/raster.h, and some other lint.
1995-09-20 05:36:13 +00:00
jonathan
3589d052f0
Add gory debugging, because I don't have access to a MAXINE to test
...
the baseboard framebuffer driver with rcons and it reportedly didn't work.
1995-09-20 05:19:54 +00:00
jonathan
d0c0f7f738
Fix initialization of MAXINE xcfb as console.
1995-09-20 05:13:06 +00:00
jonathan
df58dc7d89
Change the signature of interrupt-handlers to take a void *
...
(a pointer to the softc) and return an int (indicating spurious
interrupts or other conditions.)
1995-09-20 04:33:00 +00:00
thorpej
3253873a9e
Use `files.ultrix'
1995-09-20 00:25:44 +00:00
thorpej
065ee11549
Compile the kernel with -Werror and -fno-builtin.
1995-09-19 23:30:54 +00:00
thorpej
7d7396c414
Make system calls conform to a standard prototype and bring those
...
prototypes into scope.
1995-09-19 22:53:47 +00:00
jonathan
c8a3bfd5ed
Update files.pmax to use Ted Lemon's port of the sparc rcons glass-tty fb
...
driver, the "generic" fb pseudo-device driver, and dev/cons.c.
Update an example new-config file (NEWCONF) to use them.
1995-09-18 03:09:03 +00:00
jonathan
9e925a1b42
Add cdevsw and bdevsw entries for the machine-independent sd and st drivers.
...
Add cdevsw and bdevsw entries for the old-pmax tz SCSI tape driver, and
add a do-nothing definition of the requisite tzdump().
1995-09-18 03:04:53 +00:00
jonathan
e18d468a1a
move DEC qvss/pm - compatible (kernel tracks mouse) mouse-input parser
...
to qvss_compat.c Move low-level mouse initialization to lk201.c.
1995-09-18 03:01:22 +00:00
jonathan
6d9de6f768
Fix qvss/pm compatible ioctl to set colormap entry.
1995-09-18 02:57:31 +00:00
jonathan
008afe8e46
Replace the old 4.4bsd/pmax framebuffer glass-tty font with one
...
suitable for the NetBSD/sparc-derived "rcons" framebuffer glass-tty.
1995-09-16 02:05:11 +00:00
jonathan
d7b9b56e07
Rename the old pmax SCSI driver's "struct scsi_device" to
...
"struct pmax_scsi_device", to avoid name conflicts with the sys/dev/scsi
SCSI driver.
1995-09-13 19:35:53 +00:00
jonathan
a0b0b167c1
Include the new fbio.h, fbvar.h, and lk201.h header files introduced
...
with rcons, as dtop.c supplies keyboard and mouse input from the desktop
bus, even though it hasn't itself changed.
1995-09-13 07:46:03 +00:00
jonathan
d69221cacc
Delete the definition of struct VDACregs (the registers of a Brooktree
...
bt478 vdac); it's now in bt478.h.
1995-09-13 05:46:02 +00:00