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
sato
59c8220584
DEBUG_FIND_COMPORT code. (by ngc@ff.iij4u.or.jp)
2000-10-16 03:32:44 +00:00
mjacob
7088593e82
Hmm- probably really ought to put ses into sparc GENERIC, since sparc
...
machines are one is very likely to run into SES units (what with all
the D1000's && A1000s out there now). I'll do it in sparc64 as soon
as I get that running for myself.
2000-10-16 01:29:06 +00:00
wiz
c374cadf43
Get RELEASEDIR setting from /etc/mk.conf. Fixes misc/11104 by Markus Kurek.
2000-10-15 22:42:49 +00:00
ragge
7ac8ee6f59
By accident, a previously unused bit in the PTE got used as wired bit.
...
Because of this kvtophys() of wired pages did set the leftmost bit, causing
the pager to hang while swapping. This is now fixed by using another
free bit in the PTE as wired bit instead.
This fixes PR#11121.
Many thanks to Chuck Silvers that found what the problem was!
2000-10-15 11:00:38 +00:00
minoura
7bb188de0c
WSCONS_DEFAULT_TYPE is obsolete; use VGA_CONSOLE_SCREENTYPE instead.
2000-10-15 10:08:00 +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
bjh21
b4ef973eab
IDE hard discs seem to work -- turn them on by default.
2000-10-14 23:46:40 +00:00
bjh21
a449e4af6d
Ensure that the IOC is attached before any other devices, mostly because
...
the UPC driver needs to know whether the system's got an IOEB in it.
The way this is implemented is a mess -- I need to get my mind round
autoconfiguration again.
2000-10-14 23:44:42 +00:00
bjh21
7270db5ec0
Change to semantics of irq_establish: IRQs are now enabled by default, which
...
I think is the same as all other ports.
2000-10-14 23:41:01 +00:00
tsubai
5d6a22ffea
Use VNODE_OP_NOINLINE.
2000-10-14 19:14:06 +00:00
tsutsui
3d26e06673
- Initialize zs chip in zscninit() so that kernel can use
...
serial console even if the PROM uses bitmap console.
- Remove zs_hwflags since news68k does not have keyboard nor mouse at zs;
check zschan address set in zscninit() to detect console device.
- Use BPS_TO_TCONST() to set baudrate in zs_init_reg[].
- Remove zs_get_chan_addr(), which is not needed anymore.
2000-10-14 16:45:49 +00:00
tsutsui
230e4ff333
Clarify some intrnames.
2000-10-14 16:23:33 +00:00
tsutsui
1b5ed35b7a
Re-enable tt0 register temporary to map I/O space.
...
(for framebuffer support)
2000-10-14 07:19:24 +00:00
tsutsui
65d3436a47
Make this compile without "options news5000".
2000-10-13 17:22:52 +00:00
christos
c49fc8469f
void cast for lint.
2000-10-13 03:53:26 +00:00
wrstuden
07a9408ae6
Move ofwboot to 600000 hex. Should make loading better (less likely to
...
run into OF internals).
2000-10-13 00:19:30 +00:00
hpeyerl
87a8c94ed0
Sanity check the cursor position read from the 6845 and if clearly
...
off-screen, set it to 0x0. From dean@huxley.org .
2000-10-12 22:36:30 +00:00
christos
6b7dd5a41a
add sunkbd.c and sunms.c; apparently these are now needed because
...
tty_conf.c brings them in.
2000-10-12 21:27:13 +00:00
christos
6708aee34f
add missing kd_attach_input routine.
...
someone needs to clean this shit up.
2000-10-12 21:26:28 +00:00
tsubai
5fd4c9fe04
Remove a '^G'.
2000-10-12 15:42:47 +00:00
onoe
50159b60f0
Add support to boot on APbus machine (e.g. NWS-5000).
2000-10-12 05:34:29 +00:00
onoe
29780c8cd7
add Tulip (tlp) at apbus
2000-10-12 03:18:41 +00:00
onoe
3c201cca80
change the type of the apbus interrupt handler from void to int
...
for each driver to indicate the interrupt has been handled or not.
2000-10-12 03:17:25 +00:00
onoe
935577e7bc
Tulip driver for NWB-5852A, which is an APbus board with DEC-21140A chip.
...
without MII. It supports 100BaseTX only. Half duplex/Full duplex can
be specified manually, but there are no auto negotiation functionality.
XXX: It takes 34 seconds before sending/receiving packets on the wire
after initial setup. It is obviously a bug because the board
just works fine on NEWS-OS, but I cannot find what's wrong...
Once it starts working, it seems there are no problems.
2000-10-12 03:15:59 +00:00
onoe
31624ad662
use macro to access interrupt mask register.
2000-10-12 03:15:21 +00:00
onoe
f2c3050d29
change the type of the apbus interrupt handler from void to int
...
for each driver to indicate the interrupt has been handled or not.
2000-10-12 03:13:47 +00:00
onoe
be4c939451
change the type of the apbus interrupt handler from void to int
...
for each driver to indicate the interrupt has been handled or not.
add prototype of apbus_dmatag_init() function, which allocates memory
and initialize its member including bus space handle to flush DMA write
cache. Note that the allocated pointer must be freed.
2000-10-12 03:12:01 +00:00
onoe
655ba83924
Allow multiple interrupt handler on same interrupt event.
...
Clear interrupt mask for specified interrupt in apbus_intr_establish().
Add dma stuff; define apbus_dmamap_sync() to flush DMA write cache by
accessing the corresponding I/O port.
2000-10-12 03:11:38 +00:00
onoe
de22372491
Use 1MHz freerun counter for microtime().
...
Show address for bus error, and DMA address error.
should be panic, but only printf for now.
2000-10-12 03:10:37 +00:00
onoe
68f82490a3
Support scsi boot device for NWS-5000.
...
Support NWS-3700, which is very similar with NWS-3400.
Do not depend on modelid of idrom, which is useless in most cases.
2000-10-12 03:10:07 +00:00
onoe
4e2e140f75
Do not access graphic console if probing framebuffer fails for NWS-3400.
...
Use serial console instead regardless the dipsw.
2000-10-12 03:08:58 +00:00
onoe
1383251d9a
Bus I/O and DMA access macros/routines.
2000-10-12 03:07:59 +00:00
onoe
0ff12521fa
Add address for free running 1MHz 1counter.
...
Add registers for APbus I/F gatearray.
2000-10-12 03:07:02 +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
jeffs
bdbb241be6
Fix race between pmap_enter() and pagedaemon. If we are low on memory and
...
pmap_enter() cannot allocate the segmap return failure if PMAP_CANFAIL
instead of sleeping. Otherwise panic. Both alpha and i386 do this. Do
not pmap_enter_pv() until after this is done so the data structures are
not partially allocated. This should prevent pmap_page_protect() from
getting stuck when called from pagedaemon.
2000-10-10 20:39:42 +00:00
he
489b832f9b
Add randomness sampling from hil, sd and rd devices.
2000-10-10 19:58:42 +00:00
ad
e126f09103
Switch to sys/dev/md_root.c.
2000-10-10 10:25:55 +00:00
dbj
15034fe38a
add rnd_source field to mb8796_softc
...
this fixes compile problems with rnd pseudo-device added to GENERIC kernel
patch submitted by greg oster
2000-10-09 10:45:45 +00:00
nisimura
778081cbf4
Add mtc0 insn to load TX3900 config register value to determine Dcache size.
2000-10-09 10:14:23 +00:00
nisimura
89e5c346a4
mips1_ConfigCache() has gone.
2000-10-09 07:33:31 +00:00
leo
c36cc80ceb
Fix a typo that slipped in with the last round of scheduler changes. The
...
register numbers were exchanged.
2000-10-09 06:15:02 +00:00
thorpej
3290ef5fe8
Re-order the TLB operations in pmap_zero_page() and
...
pmap_zero_page_uncached(). This seems to prevent the
lossage with those functions people have seen on Cyrix
CPUs.
2000-10-08 22:59:38 +00:00
thorpej
87a787f7b4
Make sure we use kvtopte() only on kernel addresses. Should
...
fix a panic that occurs when using KGDB repored by Nathan Williams.
2000-10-06 18:37:39 +00:00
tsutsui
fbc8920b4b
variable clock_attached is not needed.
2000-10-05 21:20:48 +00:00
tsutsui
bc0aec12fa
Make leds_intr() __inline.
2000-10-05 19:04:59 +00:00
tsutsui
50570826e7
Remove garbage in comment.
2000-10-05 18:22:41 +00:00
tsutsui
911552b39a
pasto (s/mips/m68k/)
2000-10-05 18:21:10 +00:00
ragge
de4982c7fa
Fix bug that prevented DMA to work on SCSI chain B. This fixes PR#11124
...
but in a different way than suggested by the submitter.
2000-10-05 07:34:49 +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
cgd
b1b364243d
always have to declare cpu_arch and the related constants (since setting
...
it isn't conditionalized). (d'oh!)
2000-10-05 02:13:14 +00:00
cgd
7fefa594f7
add two blank lines
2000-10-05 01:17:20 +00:00
cgd
36123017cb
nuke mips3_clearBEV(). There's really no point in coding a
...
special-purpose assembly routine for things like this.
2000-10-05 01:06:06 +00:00
cgd
3f1d3c3066
tweak cpu_arch. Eliminate all direct checks of it (making them
...
use the macro CPUISMIPS3 -- which is badly misnamed), and set it
from #defines named CPU_ARCH_N (where N is 1..5, 32, 64).
2000-10-05 00:52:59 +00:00
jdolecek
2fa1ccfa6e
bootpath_build(): implement slighly more clever algorith to find boot
...
flags in the bootpath: only treat the rest as boot flags if the '-'
follows whitespace (space or tab)
This should fix the "boot disk4 netbsd-20001004-RFHS8036" lossage
Hubert Feyer pointed out in private e-mail.
Tested by: jdolecek (userland version)
Reviewed by: eeh
2000-10-04 23:05:08 +00:00
cgd
e9e1084ea3
rename mips_read_causereg -> mips_cp0_cause_read. nuke prototype
...
for mips_read_statusreg (which was apparently never implemented).
Provide prototypes and implementations for mips_cp0_cause_write,
mips_cp0_status_read, and mips_cp0_status_write. (Writing can, of
course, be quite dangerous.)
2000-10-04 22:44:01 +00:00
itojun
0c84fad435
more rnd(4).
2000-10-04 22:26:49 +00:00
eeh
6638fc7c06
Fix interrupt lossage problem and some cosmetic changes.
2000-10-04 22:18:25 +00:00
cgd
8b8afc8d07
the generic MIPS code doesn't even play at doing anything useful
...
with a MIPS4 option at this point -- all the code except for one single
spot is conditionalized with MIPS3. So, don't even pretend about
MIPS4 for now, until it all gets cleaned up.
2000-10-04 21:41:47 +00:00
cgd
13eb329ef1
provide indicators of a few more things that might go in opt_cputype.h
2000-10-04 21:31:06 +00:00
is
b0ee22422c
Regenerate from INSTALL.
2000-10-04 20:44:53 +00:00
is
6458912fb4
regenerate: INSTALL changes as implemented in GENERIC and Makefile.
2000-10-04 20:40:06 +00:00
is
986619df97
Reimplement the INSTALL changes in GENERIC and Makefile.
2000-10-04 20:38:11 +00:00
is
1c9bb33fcb
resync, mostly for the rnd addition.
2000-10-04 20:13:42 +00:00
itojun
779fc41d88
enable rnd(4)
2000-10-04 18:14:35 +00:00
tsutsui
39787038e9
Switch to MI mk48txx driver.
...
XXX All config files should be updated since now clock address does not
XXX contain clock register offset in NVRAM.
2000-10-04 16:35:43 +00:00
tsutsui
3f1232147d
Initial bus_space(9) support for news68k. From hp300.
2000-10-04 16:26:43 +00:00
uch
478ab76ca3
experimental power management support for TX3912/TX3922 based model.
2000-10-04 13:53:54 +00:00
nisimura
8d263719b9
Merge exception return path of SystemCall and UserGenException into
...
proc_trampoline.
2000-10-04 08:46:21 +00:00
tsubai
9fa9ef4716
Add rnd.
2000-10-04 08:26:42 +00:00
itojun
9e47af8814
enable rnd device. they are now mandatory for ssh/sshd support,
...
so it makes more sense to enable it.
please disable them if there's any issues, but in that case, in-tree
ssh/sshd won't work.
2000-10-04 03:35:53 +00:00
sato
832204750a
fix mistake of sigmarion cmdmap.
2000-10-04 03:31:14 +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
cgd
11e8e89dd4
add some additional info re: MIPS32 PRID encoding, derived from
...
the ``MIPS32 4K Processor Core Family Software User's Manual
Revision 01.07 June 19, 2000", available on the web from:
http://www.mips.com/declassified/Declassified_2000/MD00016-2B-4K-SUM-01.07.pdf
2000-10-03 23:15:58 +00:00
tsutsui
2f6ed1a331
Reorganize news68k clock device configuration and
...
prepare to switch to MI mk48txx driver.
XXX news68k does not have bus_space(9) support yet.
2000-10-03 13:49:24 +00:00
wdk
6b207c8f05
Add netbsd.ecoff to list of files to cleanup. Forgot in previous commit.
2000-10-03 10:09:12 +00:00
wdk
ff5d9dc3a7
Change default kernel format from ECOFF to ELF now we can boot ELF using
...
libsa based bootstraps. This is now the prefered format.
ECOFF format kernel renamed to netbsd.ecoff - still required for network
booting.
2000-10-03 09:46:39 +00:00
wdk
e705396abb
Switch to MI md_root.c
2000-10-03 09:38:20 +00:00
sato
af1dcf13da
flash led when intrrupt.
2000-10-03 03:16:16 +00:00
sato
c419b94c00
vr41xx LED unit driver.
2000-10-03 03:13:04 +00:00
sato
ca7374c959
add POWERCONTROL_LED.
...
add PMEVENT_AC, PMEVENT_BATTERY.
2000-10-03 03:08:33 +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
cgd
8dbc5c0c51
provide mips3_ld() and mips3_sd(), functions which provide safe wrappers
...
for mips3 (and later) 'ld' and 'sd' instructions. These currently
only are properly implemented for the _MIPS_BSD_API_LP32 and
_MIPS_BSD_API_LP32_64CLEAN 'API's. They're pretty messy, but when you
need them, you really need them.
2000-10-02 22:13:38 +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
tsutsui
c29947d800
Switch to MI md_root.c.
2000-10-02 15:24:09 +00:00
fvdl
654c1d3603
Adjust after some comments from Noriyuki Soda:
...
apm was enabled in the wrong file, it's not needed in INSTALL_LAPTOP,
but should be there in GENERIC_LAPTOP.
wss0 at isa irq 10 may cause conflicts on some laptops; remove it.
Despite its name, PCIBIOS_INTR_GUESS is safe option, so enable it.
2000-10-02 12:54:39 +00:00
fvdl
32a995f65b
Oops, remove test leftover setting of REALEXTMEM.
2000-10-02 12:22:53 +00:00
fvdl
09440c52d2
Squeeze some more. Do what it has been advertising all along: no SCSI. Use
...
-Os. Remove NFSSERVER.
2000-10-02 08:12:04 +00:00
wdk
2bc18c0ead
Add parenthesis to TICKS_TO_USECS macro avoiding side-effects.
...
Fixes glitch where microtime goes backward. KNF rules!
2000-10-02 07:58:26 +00:00
wdk
d7ff540d90
Boot to multiuser by default.
2000-10-02 07:57:29 +00:00
wdk
68e8ad5120
Fixup missing entries in chrtoblktbl
2000-10-02 07:56:31 +00:00
wdk
77c68f1f9c
downsized kernels for installation & recovery
2000-10-02 07:54:34 +00:00
sato
ee8000c4ad
check NBIVIDEO.
2000-10-02 04:15:51 +00:00
sato
3c83f44fa3
experimental ite8181 video driver for hpcfb.
...
- just copy from bivideo.
- erase WindowsCE hardware cursor initialy.
- LCD power management codes exist, but currently disabled.
Because some devices(include ite8181) confuse after LCD power turn on.
WorkPad z50 power unit seem to be very weak
2000-10-02 04:14:59 +00:00
sato
59de160368
- DPRINTF -> VPRINTF for verbose.
...
- don't attach other video driver under hpcfb.
2000-10-02 04:03:06 +00:00
sato
938b01e688
experimental ite8181 video driver for hpcfb.
...
- just copy from bivideo.
- erase WindowsCE hardware cursor initialy.
- LCD power management codes exist, but currently disabled.
Because some devices(include ite8181) confuse after LCD power turn on.
WorkPad z50 power unit seem to be very weak,
2000-10-02 03:57:53 +00:00
sato
a50307118c
add sigmarion cmdmap and use it.
2000-10-02 03:45:10 +00:00
thorpej
7ca3fb9ef0
Move the check for "promisc + unicast + not for us" into ether_input(),
...
and change Ethernet drivers to always pass all received frames to
ether_input() (with a few exceptions, which are documented in the
code).
2000-10-01 23:32:39 +00:00
pk
d26132e2be
cpu_initialize: global registers aren't preserved across calls to
...
prom_printf(), so replace %g3 with %l7 (which isn't used despite
the `usage' comment).
Also, clean up white-space turds.
2000-10-01 19:13:16 +00:00