pk
14a3acbd47
srmmu_cache_flush(): handle small (< NBPG) ranges more efficiently.
1998-10-13 13:34:06 +00:00
tsubai
7d9356dcca
Fix cut-and-paste miss...
1998-10-13 13:15:29 +00:00
pk
1e0064d5d6
EINTSTACK => EINTSTACKP
1998-10-13 12:05:44 +00:00
bouyer
10788ef1be
Add a CPURESET_DELAY options which specifies the delay (in milliseconds)
...
between the "rebooting" message and the hardware reset. If set to 0, the call
to delay() is disabled. Default is 2s.
1998-10-13 11:43:50 +00:00
kleink
cee25f5a9c
Since libc is not ready for enabling weak symbol support yet, disable the
...
WEAK_ALIAS() macro for now (like cdefs.h).
1998-10-13 11:39:26 +00:00
pk
d5e94d4fb2
Add missing `return'.
1998-10-13 11:33:36 +00:00
tsubai
ffb3220169
Don't panic when pmap_remove_pv even if pa is not managed.
...
(i.e. I/O device. framebuffer etc.)
1998-10-13 11:30:47 +00:00
tsubai
b373c846b4
ADB change.
1998-10-13 11:25:26 +00:00
tsubai
7756c05cc4
Split ADB driver to aed (ADB event device), akbd (ADB keyboard),
...
and ams (ADB mouse). adb is a bus now. (from Colin Wood)
1998-10-13 11:21:20 +00:00
enami
470c2f6696
Remove space at the end of line.
1998-10-13 03:57:27 +00:00
pk
8511a94f26
Oops, USPACE does not in 13 bits.. repair and save one instruction
...
in a non-SMP kernel.
1998-10-12 22:05:17 +00:00
is
4e322893fa
Make the data pointer of the write_multi, write_region and write_stream
...
methods const *.
1998-10-12 22:02:43 +00:00
pk
c27a8760b7
In switchexit(), switch to the current CPU's idle u.area.
1998-10-12 21:51:54 +00:00
pk
dff4866141
Add offset of `cpuinfo.idle_u'.
1998-10-12 21:50:22 +00:00
pk
5d124ce774
Move around a few PTE-manipulating macros.
1998-10-12 21:17:28 +00:00
is
842fbdf4d2
- add bus_space_{copy,set}_region_{1,2} support and implementation for
...
_1 and for _2 in the contiguous and interleaved case.
- while we're here, reorganize bus.h into sections, and use the defined
convenience functions everywhere.
1998-10-12 21:15:54 +00:00
pk
83b671e23d
Make `cpcb' (current u.area) a per-CPU variable.
...
Brace some MP-only code with `#ifdef MULTIPROCESSOR'.
1998-10-12 20:56:48 +00:00
perry
d6748769a5
Cut down slightly by reducing md size and commenting out ext2fs
...
support.
(From Havard.Eidnes@runit.sintef.no )
1998-10-12 16:37:44 +00:00
perry
6b858b9573
kernels for 4Mbyte main memory machines (from Havard.Eidnes@runit.sintef.no)
1998-10-12 16:36:18 +00:00
bouyer
aaa8f8b183
Patch from Mark Brinicombe for arm32 config with the new ide system.
1998-10-12 16:13:03 +00:00
bouyer
19fddaeeb5
Merge bouyer-ide
1998-10-12 16:09:10 +00:00
perry
37cb095897
1) Change "dectohexdec" and "hexdectodec" to "bintobcd" and
...
"bcdtobin". The old names were bogus.
2) Make the code grok the NVRAM's century field. This code is, to say
the least, poorly tested. It should make NetBSD play nicer with other
OSes that care about the century field, however.
1998-10-12 15:41:11 +00:00
pk
6791d7f713
Make `_cpcb' (pointer to current user area) a per-CPU variable.
...
This cpuinfo field is initialized here in locore before calling bootstrap(),
since it must be valid before entering the window overflow/underflow handlers.
Fix miscalculation in the MULTIPROCESSOR version of INTR_SETUP().
1998-10-12 14:39:10 +00:00
pk
523892012a
`cpcb' (pointer to current u.area) is now a per-CPU variable.
1998-10-12 14:32:14 +00:00
pk
fbbc2eeedd
`cpuinfo' is now cleared in locore.
1998-10-12 14:15:13 +00:00
pk
6fc7a5b45a
Define `sizeof(struct cpu_info)'.
1998-10-12 14:03:22 +00:00
pk
1fb4827a72
Take care of a MID not present when matching timer register sets.
1998-10-12 12:28:26 +00:00
veego
a5eda011ab
Include <sys/device.h> for the configure prototype.
1998-10-12 03:51:59 +00:00
mark
c70acc4a87
Add console initialisation for wscons via VGA.
...
Use the boot options console=xxx to select the console where xxx is
vga, fcom or com.
1998-10-12 03:32:51 +00:00
mark
91a04b5d0c
Define __HAVE_NWSCONS
1998-10-12 03:12:37 +00:00
chuck
8bef431273
remove unused share map code from UVM:
...
- update calls to uvm_unmap_remove/uvm_unmap (mainonly boolean arg
has been removed)
1998-10-11 23:20:59 +00:00
pk
b9d844a520
Allocate a private PCB, kernel stack and interrupt stack for each processor.
...
As a result, the stack setup code in locore.s changes slightly in
the MULTIPROCESSOR case. Also, make the stack redzone barrier (for
debugging only) a per-CPU entity.
1998-10-11 14:46:45 +00:00
thorpej
be326c54fe
Add pcmcom driver and com slaves.
1998-10-10 21:58:22 +00:00
scw
260d2c97a9
Make 'configure()' agree with the prototype in <sys/device.h>.
...
(Returns 'void').
1998-10-10 19:46:29 +00:00
scw
bdf8d911fc
Clear 'cold' to zero at the end of configure(), where it belongs.
...
(This used to be done in machdep.c, but thorpej recently zapped
that one ;-)
1998-10-10 19:15:32 +00:00
drochner
ff455e77b6
Match pchb by class/subclass, like pcib.
...
Add a note about this strange Pequr host bridge in Compaq machines.
1998-10-10 14:12:21 +00:00
matt
1163f713bb
Make DBL_MIN and DBL_MAX makes limits.h (otherwise CPP complains when
...
building xlint).
1998-10-10 02:13:55 +00:00
thorpej
908cdfe4e3
Add scsibus entry points to the cdevsw[].
1998-10-10 02:00:49 +00:00
thorpej
29d472f53d
Garbage-collect the open_target_lu and close_target_lu entry points from
...
struct scsipi_adapter; they were not used.
Add a scsipi_ioctl entry point to struct scsipi_adapter. This will be
used to issue ioctl commands to the host adapters.
Inspired by PR #6090 , from Matt Jacob.
1998-10-10 00:28:28 +00:00
pk
5422d07da0
Construct a `flush_cache_all()' for Cypress CPUs.
1998-10-09 10:48:14 +00:00
pk
024e5f4c9a
More `#if defined(MULTIPROCESSOR)'s.
1998-10-09 10:08:52 +00:00
pk
57a688f81e
Init a variable.
1998-10-09 08:01:33 +00:00
matt
832a061bca
Fix some old mistakes when I originally committed this.
1998-10-09 06:20:06 +00:00
matt
c4ece7cdcb
Commit out include of "../include/macros.h" since its bcopy conflict with
...
the one in "lib/libsa/stand.h".
1998-10-09 06:15:33 +00:00
matt
71364ebea6
Workaround problem with le driver forgetting its address
1998-10-09 06:14:22 +00:00
matt
3d8c929799
Remove define for SUPPORT_BOOTPARAMS and put in the Makefile instead.
...
Fix DHCP code so it works.
1998-10-09 06:13:30 +00:00
matt
7d79b82d33
include <bsd.prog.mk> and make changes so that "make obj" works.
...
Make it easy to build an boot which uses BOOTP/DHCP instead
RARP/BOOTPARAMS.
1998-10-09 06:12:31 +00:00
matt
bbf29cff44
Add strncpy (needed for bootp/dhcp). Tighten up some of the assembly.
1998-10-09 06:09:48 +00:00
mark
45a8df778f
Remove some unnecessary includes.
1998-10-09 00:17:20 +00:00
pk
312385da0a
Define SMP versions of some cache flush methods.
1998-10-08 22:27:32 +00:00
pk
41d031837e
Define a message structure of inter-processor communication.
1998-10-08 22:25:42 +00:00
pk
f3c4a67a7f
Adapt to changes to the cpus[] array.
1998-10-08 22:23:44 +00:00
pk
34ad8e5fb7
Find out about the number of CPUs in the system before starting device
...
configuration, so we can build a cpus[] array without "holes".
1998-10-08 22:14:44 +00:00
pk
a61ee50b27
Move [gs]etcontext and [gs]etpte() to pte.h
1998-10-08 21:49:12 +00:00
pk
e6bbfcc58a
Move [gs]etcontext() and [gs]etpte() to pte.h
1998-10-08 21:47:34 +00:00
is
6662b5ed74
- define framework for >8bit transfers
...
- implement 16 bit contiguous and 16 bit interleaved, both big-endian
1998-10-08 21:46:39 +00:00
thorpej
67b94a13ed
Add the Intel 82443BX PCI host bus adapter. From Soren S. Jorvang, PR #6250 .
1998-10-08 20:04:32 +00:00
ws
3e28defef4
No point in making the fake partition that large.
...
This smaller one will (hopefully) make 0-start
installations work on more machines.
1998-10-08 14:25:42 +00:00
eeh
b6fd7187e0
Fix more syscall32 and signal breakage.
1998-10-08 02:31:39 +00:00
mark
8d41878215
Add pckbc device, keyboard and mouse and wskbd and wsmouse via pckbc.
1998-10-08 01:59:22 +00:00
mark
d21eb4802d
Rename the pckbd attribute to avoid clashing with the pckbd device
...
from dev/pckbc/*
Include files.pckbc
1998-10-08 01:50:28 +00:00
thorpej
010b1e5215
Erg, frame -> trapframe in last. (thanks to john kohl)
1998-10-07 21:25:35 +00:00
ross
b6553585ab
g/c leftover `{' in #if notdef; it confuses ctags(1)
1998-10-07 19:09:53 +00:00
thorpej
b38544d99e
Oops, back out a buglet I didn't intend to commit in the last change.
1998-10-07 18:29:26 +00:00
matthias
4b23112e21
Add empty definition of __warn_references for lint.
1998-10-07 08:54:59 +00:00
leo
d833f66c0c
Copyright stuff.
1998-10-07 07:22:32 +00:00
tsubai
d976f73513
Enable interrupt AFTER autoconfiguration.
1998-10-07 06:24:58 +00:00
scottr
8c9bf4e881
Use the size field to distinguish between ADDX and ADDA. Fixes a problem
...
pointed out by Paul Goyette.
1998-10-07 06:08:47 +00:00
scottr
651280426e
Fix a problem pointed out by Paul Goyette: print_reglist() forgets that
...
it had a range of registers to print if A7 is among them.
1998-10-07 05:27:13 +00:00
tsubai
31314a2d26
Mask clock interrupt properly if >= splclock.
1998-10-07 04:58:23 +00:00
tron
8362affa14
Add a few "nop" instructions to make the memory size probe more reliable.
1998-10-06 22:26:42 +00:00
thorpej
d374462dfc
Move the code that does the deferred (post-autoconfiguration) buffer
...
cache allocation to its own function, and call it at the end of configure().
1998-10-06 21:42:08 +00:00
thorpej
abaeca8063
Move the calls to hwrpb_restart_setup() and cpu_run_spinup_queue() to the
...
end of configure().
1998-10-06 21:19:05 +00:00
thorpej
2038eb830c
Split hwrpb_restart_setup(), putting the code that initializes the vtpb
...
and primary hwpcb into hwrpb_primary_init(). Call the latter before
performing autoconfiguration().
1998-10-06 21:10:46 +00:00
thorpej
5a687aeb55
cold is already set to false at the end of configure().
1998-10-06 20:55:38 +00:00
thorpej
d681cf055a
configure() prototype is in <sys/device.h>
1998-10-06 20:50:15 +00:00
thorpej
fedd39b57d
Provide configure(), rather than open-coding it in cpu_startup().
1998-10-06 20:46:01 +00:00
pk
2727683a09
more DIAGNOSTIC sanity checks
1998-10-06 19:24:03 +00:00
thorpej
0729240c88
Move the "XXX re-zero proc0 user area" to the end of configure(), before
...
interrupts are enabled.
1998-10-06 18:58:09 +00:00
leo
3e8b7d3139
Only return COMPLETE when polling.
1998-10-06 09:32:44 +00:00
leo
05ebc10205
Disable SCSI interrupts while polling for the transfer to finish. This
...
fixes spurious panics while booting my Hades. This bug could also occur
on a TT030.
1998-10-06 09:29:44 +00:00
leo
8a20859c2e
Some DEBUG fixups
1998-10-06 09:22:01 +00:00
leo
e3704a8e0b
Fix DEBUG printf
1998-10-06 09:19:36 +00:00
perry
e7340f0ed3
Fix a potential Y2K bug on some clock chips: we were loading invalid
...
BCD into the year field of the RTC in years > 1999. It seems to have
worked just fine on my old broken down test machine, but apparently
some others actually get hurt. Suckage. We now make sure that we load
valid BCD.
Other ports should check for variations on this theme.
1998-10-06 05:52:23 +00:00
eeh
cd0dd24713
It seems taht 64-bit kernels need bigger stacks.
1998-10-06 05:18:55 +00:00
eeh
d0d18d5a83
Fix PIC code initialization.
1998-10-06 05:16:34 +00:00
matt
75f5ffdf21
Change backplace0 to mainbus0 (for consistency with other ports).
...
Remove unused function protocols from ka410.h and ka43.h
Fix some ka46 missing references
1998-10-06 04:04:30 +00:00
sakamoto
72e565d9b1
Fix unassigned minaddr for uvm_km_suballoc.
...
Eliminate space at end of line, and so on.
1998-10-06 03:48:12 +00:00
mark
6465aead84
Use braces instead of brackets to surround the SET_ICUS macro.
1998-10-06 02:43:26 +00:00
mark
de39833622
Add wsdisplay, wsmouse and wskbd devices.
1998-10-06 02:41:22 +00:00
mark
2bcc60adc6
Add declarations for wsdisplay, wsmouse and wskbd.
1998-10-06 02:40:13 +00:00
mark
edbbf502ab
Add wscons devices and options.
1998-10-06 02:39:00 +00:00
mark
8a012b843b
Include files.wscons
...
Add files.pckbc (commented out, pending fixing SHARK configs).
1998-10-06 02:37:59 +00:00
matt
af8a94ec80
Code references should use movab, not moval. Fix gas-2.9.1 complaints
...
with intvec.s
1998-10-06 02:07:30 +00:00
mark
08fbcdd506
Fix bug with the return value in filecore_label_locate(). This bug caused
...
an assertion to fail in disksubr.c if a label was written to a disk with
a filecore partition at the start of the disk.
1998-10-06 01:47:53 +00:00
rvb
71a653d388
Add Coda
1998-10-06 01:44:11 +00:00
thorpej
5006dbf868
cpu_set_kpc() prototype is already in <sys/systm.h>.
1998-10-05 22:11:15 +00:00
pk
40beab6ad6
If a lock is held do not spin in a read/write loop but just read the lock
...
until it is released. This is easier on the bus cache coherency logic.
1998-10-05 19:58:19 +00:00
mark
b4dba57069
Footbridge based kernels do not need constab.
1998-10-05 16:03:04 +00:00
mark
e605a01dce
Footbridge based kernels don't use dev/cninit.c
1998-10-05 15:41:19 +00:00