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
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
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
d681cf055a
configure() prototype is in <sys/device.h>
1998-10-06 20:50:15 +00:00
christos
c0f54daf70
Add em_alpha_exp
1998-10-03 18:17:14 +00:00
erh
b0367216c1
Macros to call a linux syscall.
1998-10-01 16:19:59 +00:00
thorpej
69d81d8df1
Prototype cpu_halt_secondary().
1998-09-29 07:07:36 +00:00
thorpej
2c50ec242f
Add basic interprocessor interrupt sending and receiving code. Current
...
IPI functions: HALT, IMB, TBIA, TBIAP.
XXX HALT is not yet implemented, it's just a stub.
1998-09-26 00:03:51 +00:00
thorpej
e2aa38459c
Implement atomic quadword load-and-latch.
1998-09-25 23:59:42 +00:00
thorpej
01c75223d7
Minor style tweaks.
1998-09-25 22:06:33 +00:00
thorpej
57e656b2ec
The processor unique value in the PCB is used as a backup kernel stack
...
pointer when booting secondary CPUs. Add an alias for it.
1998-09-25 03:21:31 +00:00
thorpej
fcb0203141
First-cut at code to spin up secondary processors on a multiprocessor
...
Alpha system, conditional on MULTIPROCESSOR.
NOTE: This does not yet work completely. The secondary CPU begins the
boot process, but never makes it into the cpu spinup trampoline. This
is merely a snapshot of a work-in-progress.
1998-09-24 23:28:17 +00:00
thorpej
3cde5f5817
Machine-dependent spin lock operations for Alpha, included if MULTIPROCESSOR
...
is specified.
1998-09-24 22:32:35 +00:00
thorpej
91a031471d
Implement atomic test-and-set for longwords (32-bit).
1998-09-24 22:22:07 +00:00
thorpej
1b04ff4897
Make prom_enter() and prom_leave() public.
1998-09-24 21:18:13 +00:00
thorpej
7df5ebc392
"Gee, there was already a function to do that."
1998-09-23 22:02:21 +00:00
thorpej
53d42701b5
Implement a function to recompute the HWRPB checksum.
1998-09-23 21:51:04 +00:00
thorpej
5fa16c668b
Define the inter-console communication buffer portion of the per-cpu
...
info structure.
1998-09-22 08:16:51 +00:00
thorpej
402a9210a2
Implement quadword atomic test-and-set.
1998-09-22 05:56:52 +00:00
thorpej
e10cc7910d
Add some support for multiple processors to the pmap module. Still left
...
to do: TLB shootdown code, but that will be much easier to write once
the code to spin up the additional CPUs is working.
1998-09-22 03:58:10 +00:00
matt
ad921921e4
Add softserial to the alpha port. This significantly improved PPP
...
throughput on com ports.
1998-09-21 00:33:16 +00:00
thorpej
3eaeeb5357
Add definitions for the maximum allowable `whami' procssor ID and the
...
maximum number of processors we'll allow (64, assuming procssor IDs start
at 0).
1998-09-20 18:28:50 +00:00
thorpej
a4a356f9a6
Need 83 longs for a jmp_buf now.
1998-09-14 06:07:29 +00:00
thorpej
3ddf828326
Make signal delivery work again.
1998-09-13 01:51:29 +00:00
cgd
5fa7eee1ff
don't define __BUS_SPACE_COMPAT_OLDDEFS by default. As stated in
...
bus_space(9), if drivers want it (they shouldn't; easy to convert) they
can define it right before including bus.h. There's been a release since
the interfaces were (slightly) changed, and no code in the source tree
uses the old interfaces as far as I can tell.
1998-08-30 23:40:14 +00:00
thorpej
d5df55112a
vm_offset_t -> {paddr_t,vaddr_t}, vm_size_t -> vsize_t
1998-08-14 16:50:00 +00:00
thorpej
97e83f6e0b
Change the "vm_offset_t"s to "u_long"s for now; eventually, we can make
...
them vaddr_t and paddr_t, as appropriate (after scouring the RPB docs
to know which are phys and virt addresses).
1998-08-14 16:46:09 +00:00
eeh
a2dd74ed79
Merge paddr_t changes into the main branch.
1998-08-13 02:10:37 +00:00
kleink
546365a27e
_POSIX_SOURCE -> _POSIX_C_SOURCE
1998-08-06 11:25:04 +00:00
thorpej
bf8f319d0e
Remove some lint.
1998-08-01 21:12:32 +00:00
thorpej
528dab6808
Implement alpha_shared_intr_disestablish(). Simply removes the handler
...
fromthe list, allowing the caller to manipulate the sharing type,
if appropriate.
1998-08-01 18:52:36 +00:00
mycroft
a24dbc8065
(Always) (practice) (safe) (macro expansion).
1998-07-31 15:07:41 +00:00
thorpej
f948e430bb
Provide a hook for bypassing space accounting, needed to support ISA PnP
...
for now.
1998-07-31 04:37:02 +00:00
mycroft
da2e61d160
Delint.
1998-07-27 13:55:32 +00:00
thorpej
2385ee5eca
Provide PMAP_{,UN}MAP_POOLPAGE().
1998-07-24 20:32:07 +00:00
is
6054d626f9
Switching dev/ic/lpt.c to use spllpt() instead of spltty(). It doesn't use
...
tty structures, and on some machines (namely the DraCo internal lpt, and some
multi-i/o boards for Amigas and DraCos), tying spltty to the pretty high printer
interupt level would hurt serial performance.
On all affected ports but Amiga, spllpt() has been defined in machine/intr.h
to be spltty(), thus preserving old behaviour. Portmasters are encouraged to
change is, if they feel something else is better (e.g., one of its own were
possible).
1998-07-18 21:27:25 +00:00
ross
d58ad29b6c
Kill the old extern mchkinfo pointer and prototype cpu_mchkinfo().
...
This file has been collecting prototypes and other things used in the MD
code...that's bad...because this is exported to the MI kernel.
1998-07-13 19:10:14 +00:00
mjacob
6b092524ea
stale beer- place structure in right file
1998-07-08 17:20:42 +00:00
thorpej
a8d2213784
Define a macro that returns the mask of PALcode PTE bits that we care
...
about when determining if a TBI is necessary (i.e. the PALcode bits minus
the FOx bits, since we always track those).
1998-07-08 17:19:46 +00:00
thorpej
0792d7f3db
Define a shorthand macro that represents the mask of PTE bits that the
...
PALcode cares about.
1998-07-08 16:48:49 +00:00
thorpej
3f776dfbe2
Cosmetic change.
1998-07-08 16:46:51 +00:00
thorpej
1ea93eea1c
Define one page free list, and put all pages on it.
1998-07-08 04:35:23 +00:00
mjacob
35ffe8edb3
Add machine check type definitions. Structure the expected/received
...
machine check items.
1998-07-08 00:39:02 +00:00
mjacob
dfe345a444
common logout structure definitions, or a start thereof
1998-07-08 00:36:18 +00:00
thorpej
de83dce0de
On second thought, call that like the rest of the shared intr functions.
1998-07-07 22:24:38 +00:00
thorpej
443d238f70
Define a macro to test if a shared interrupt should be disabled after
...
a stray has occurred.
1998-07-07 21:37:11 +00:00
thorpej
02b767eee5
Take a stab at EB66 support. An EB66 is basically an EB64+ with a
...
21066 LCA instead of a 21064 + APECS.
1998-06-27 10:10:51 +00:00
ross
e5e9adb326
Note ST_DEC_1000 as PCI/EISA.
1998-06-26 21:55:38 +00:00
ross
e31a396c68
Add AlphaServer 1000 interrupts.
1998-06-26 21:55:09 +00:00
ross
92aafa4a46
Identify ST_DEC_1000A as PCI/EISA.
...
New macros:
LOCATE_PCS(struct rpb *hwrpb, int cpu_number)
PCS_PROC_MAJORTYPE(struct pcs *)
PCS_PROC_MINORTYPE(struct pcs *)
Define LOCATE_PCS() to map (hwrpb, cpu_number) -> Per-Cpu-Slot structure.
Replace the PCS_PROC_{MAJOR,MINOR}{,SHIFT} stuff with macros that simply
return the major and minor cpu type codes.
1998-06-24 01:20:43 +00:00
ross
f1cc92f606
Add dec_1000a interrupts.
1998-06-24 01:14:55 +00:00
kleink
1fbd0b3749
GC the unused `physadr' type, which was not able to hold a complete physical
...
address on 2 architectures anyhow. Also, move the definition of the `label_t'
type inside _KERNEL protection, since it is specific to the in-kernel
setjmp()/longjmp() implementations.
1998-06-14 20:09:22 +00:00
cgd
651b44e211
Rework the way kernel include files are installed. In the new method,
...
as with user-land programs, include files are installed by each directory
in the tree that has includes to install. (This allows more flexibility
as to what gets installed, makes 'partial installs' easier, and gives us
more options as to which machines' includes get installed at any given
time.) The old SYS_INCLUDES={symlinks,copies} behaviours are _both_
still supported, though at least one bug in the 'symlinks' case is
fixed by this change. Include files can't be build before installation,
so directories that have includes as targets (e.g. dev/pci) have to move
those targets into a different Makefile.
1998-06-12 23:22:30 +00:00
thorpej
3af0f95d24
Define a macro to test PG_EXEC.
1998-06-11 05:10:41 +00:00
thorpej
55207ad8b4
Define a software PTE bit to track VM_PROT_EXEC.
1998-06-11 05:09:47 +00:00
thorpej
f5cd6a7736
Add debugging support to the bus_space macros. If BUS_SPACE_DEBUG (or DEBUG)
...
is defined, the bus_space macros will check to ensure that the bus address
and the target buffer (if applicable) are aligned properly for the size
of the type being used. If they are not, a message will be displayed on
the console.
Strict alignment is required by the Alpha architecture, and a trap will
occur of unaligned access is performed. These changes will aid debugging
of broken device drivers.
1998-06-08 03:42:19 +00:00
thorpej
1733ad8dc5
Clean up a little, and add a `powerdown' hook in the platform structure.
1998-06-06 20:18:50 +00:00
thorpej
a1c151d56b
Add system variation for Miata 1.5.
1998-06-05 18:18:37 +00:00
thorpej
cbaedc8675
Support for the Digital Personal Workstation [456]xx, a.k.a. Miata (systype
...
DEC_550). Mostly cloned from the EB164 systype, with some modifications
from myself, and a few more from Andrew Gellatin.
1998-06-05 02:13:41 +00:00
thorpej
44605ba506
Define a bunch more system variations.
1998-06-03 23:07:38 +00:00
thorpej
d6041754c2
Allow the DMA tag to specify a boundary contraint. If the device has a
...
more strict boundary, the map will use it, otherwise the map will inherit
the tag's, unless the tag's constraint is 0 (no boundary constraint).
1998-06-03 18:25:53 +00:00
kleink
a97fc2f180
If any of _ANSI_SOURCE, _POSIX_C_SOURCE or _XOPEN_SOURCE are defined, don't
...
provide any identifiers other than sig_atomic_t.
1998-05-25 20:59:01 +00:00
thorpej
085b73d2db
Add "SCSIID" and "SCSIFAST" environment variables present on the
...
DEC 3000 systems.
1998-05-25 04:01:10 +00:00
thorpej
a2f214a443
Add fine-grained locking, using a locking protocol modeled after the i386
...
UVM pmap's locking protocol, written by Chuck Cranor. Not all of the
support for multiple processors is here yet, but the kernel does run
under moderate loads with LOCKDEBUG (all locking operations are no-ops
unless LOCKDEBUG is turned on).
This is by no means complete... there are still some possible snares
to take a look at.
1998-05-20 04:05:50 +00:00
thorpej
ca819f2940
Argh, finish renaming Lev1map to kernel_lev1map.
1998-05-19 18:35:11 +00:00
thorpej
ca12fa7ebe
Make PT page reference counting more generic so it can be used for other
...
special use page types.
1998-05-19 02:04:28 +00:00
thorpej
8fdc16212f
The Alpha architecture has a variable page size; don't hardwire the
...
number of PV entries per page at compile time.
1998-05-19 00:42:16 +00:00
thorpej
b44dc2ecbf
Make the page attribute manifest constant names have similar form to
...
page usage manifest constant names.
1998-05-19 00:29:03 +00:00
thorpej
180f140a85
Keep track of page usage inside the pmap (pvent, l{1,2,3}pt page, "normal").
1998-05-19 00:20:21 +00:00
thorpej
d19fbe1196
Garbage-collect the old confargs stuff that was used in the Early Days.
...
It isn't really appropriate anymore. Replace it with a real mainbus
attach args structure.
1998-05-14 00:01:30 +00:00
thorpej
6a49b0a33e
Clean up some historical artifacts.
1998-05-13 23:38:26 +00:00
thorpej
49aa171ab9
Add support for chaining DMA windows together, for falling back on
...
SGMAPs if a direct-mapped window fails.
1998-05-13 21:21:16 +00:00
thorpej
4665241bf8
Simplify the direct-mapped DMA case somewhat by adding a window base
...
member to the DMA tag, and calling the direct-mapped back-ends directly,
rather than through chipset-specific front-ends which pass the window
base as an additional argument.
1998-05-07 20:09:37 +00:00
thorpej
1686aca01d
Pull in opt_gateway.h as appropriate.
1998-04-29 23:11:00 +00:00
thorpej
371b1a7fb7
Define the DEC 550 Personal Workstation (Miata) systype.
1998-04-29 02:39:24 +00:00
thorpej
a152517daa
Add interrupt counter space for the DEC EB64+, and fix a misplaced
...
counter comment in the kn300 interrupt counters.
1998-04-29 00:34:06 +00:00
thorpej
30188853dc
Increase the efficiency of pmap_l{2,3}pte() somewhat, by allowing the
...
caller to pass an optional 3rd argument, which is the previous level
PTE corresponding the virtual address. If this argument is non-NULL,
the table walk otherwise necessary will be bypassed.
1998-04-27 19:07:03 +00:00
kleink
a53c1863fe
Provide definitions for intptr_t and uintptr_t, signed resp. unsigned integral
...
types large enough to hold any pointer.
1998-04-27 17:39:10 +00:00
drochner
7f77474219
Oops, forgot to delete. It's in dev/pci now.
1998-04-26 11:57:00 +00:00
mjacob
a8d3df00ed
oops- add missing include
1998-04-15 21:42:24 +00:00
drochner
b9d78308c1
tell drivers that this port knows about the mi wscons stuff
1998-04-15 21:12:45 +00:00
mjacob
4fa71d82a5
add Alpha 4100 support
1998-04-15 00:46:57 +00:00
ross
2ce8cda3e5
Get rid of a /* in a comment.
1998-03-27 01:17:18 +00:00
thorpej
6111783e61
if NEW_SCC_DRIVER, 3000/300 and 3000/500 aren't PROM console candidates.
1998-03-26 02:53:21 +00:00
thorpej
456b3df281
Remove the Mach 3 pmap from the tree, replacing it with the contents of
...
pmap.old.<whatever>. To see the history, look at the corresponding
pmap.old.<whatever> file.
1998-03-26 02:18:03 +00:00
thorpej
e6cf334f5c
Keep a few things that reference kernel variables out of the namespace.
...
Add a check to see if libkvm is using this file.
1998-03-25 00:44:34 +00:00
thorpej
ea074f229a
cdev_decl the "zs" device (which is really zstty).
1998-03-24 05:17:14 +00:00
thorpej
ee83014c4d
Initial mostly-working ioasic attachment for the MI 8530 SCC driver. It is
...
enough to use as a console on my DEC 3000/400 (connected to a VT-520
terminal).
XXX The MI SCC driver needs serious changes to handle platforms which
have muliple SCC attachments (e.g. the Alpha port, which has an ioasic
attachment for TurboChannel systems and a gbus attachment for TurboLaser
systems).
XXX The MI SCC driver also needs changes to deal with the wacky (to put
it mildly) way the chips are wired up on the ioasic (on both TC Alphas
and DECstations). These are going to come along later.
1998-03-24 05:12:00 +00:00
thorpej
fcfe2f1539
Implement a set of `atomic' (using load-locked and store-conditional)
...
operations. Initial set includes:
alpha_atomic_setbits_q() set bits in a quad
alpha_atomic_clearbits_q() clear bits in a quad
1998-03-22 07:26:32 +00:00
thorpej
a8d86e5a7c
Replace PMAP_ASNGEN_INVALID with PMAP_ASN_RESERVED.
1998-03-22 05:39:50 +00:00
thorpej
63c73f94e3
Add a few more systypes.
1998-03-20 21:48:03 +00:00
thorpej
b637a998f4
Add ASN housekeeping and a CPU mask to the pmap.
1998-03-18 19:39:23 +00:00
thorpej
961a955498
Move the "are we active" macros out of the header file.
1998-03-18 19:27:46 +00:00
thorpej
56e004c995
Pass the max ASN from the HWRPB to pmap_boostrap().
1998-03-18 19:02:49 +00:00
thorpej
426d2953f5
Add a macro to test if PG_ASM (Address Space Match) is set in a PTE.
1998-03-18 19:00:15 +00:00
thorpej
f8cff5ab23
Add a software PTE bit that indicates that a va -> pa mapping was entered
...
in the physical->virtual list.
1998-03-17 04:53:43 +00:00
thorpej
00452b441f
Move PTE-related constants here, and make them not depend on a hard-coded
...
page size (i.e. use the one initialized from the HWRPB at boot time).
Do a bit of cleanup while here, rendering old inherited constants obsolete.
1998-03-12 07:29:21 +00:00
thorpej
4d8723232d
Garbage-collect a bunch of constants that were inherited, but are no
...
longer necessary or make sense.
1998-03-12 07:28:07 +00:00
thorpej
bd3c0e36cf
Garbage-collect this a bit.
1998-03-12 06:47:11 +00:00
thorpej
152a4bfa60
Increase the maximum userspace address to 4TB. Leave the stack at 8G
...
for now, but make a note that we might want to move it down to 4G later.
1998-03-12 01:25:52 +00:00