kleink
a83174b856
Update to reflect that unlike in m68k a.out environments, where the .align
...
directive is given a log2 argument, .align is given a linear argument in
m68k ELF environments.
2001-11-28 09:49:51 +00:00
nisimura
9f8ca586ad
Fix a small typo in comment.
2001-11-28 08:49:19 +00:00
lukem
71376e0797
use #ifdef MEMORY_DISK_DYNAMIC (for consistency with the rest of the kernel)
2001-11-28 05:55:34 +00:00
lukem
9cd50b3b95
use #if defined(x) instead of #if defined x
2001-11-28 05:47:37 +00:00
lukem
9f42ccc795
use #ifdef DDB (for consistency with the rest of the kernel)
2001-11-28 05:45:27 +00:00
lukem
e336250e74
use #ifdef INET instead of #if INET (for consistency with the rest of the kernel)
2001-11-28 05:22:48 +00:00
thorpej
a9b25a66fa
When processing ASTs:
...
- Loop until astpending is clear upon return from ast().
- Clear astpending *before* re-enabling interrupts.
2001-11-28 01:31:59 +00:00
thorpej
379948c31f
- Garbage-collect some unused cruft.
...
- When processing ASTs, restore interrupts *after* clearing astpending.
2001-11-28 01:06:19 +00:00
thorpej
b9caa4cbc7
Don't grovel interrupt-related info here; if a platform wants to
...
do that, let it do that in a way it can control.
2001-11-28 00:19:53 +00:00
thorpej
a2fa0b1029
Add prototypes for new XScale write-through cache routines.
2001-11-28 00:18:46 +00:00
thorpej
8e96318c12
Don't define interrupt handler-related offsets here.
2001-11-28 00:18:13 +00:00
thorpej
28466919a2
Use <machine/intr.h> rather than <machine/irqhandler.h>
2001-11-27 01:03:52 +00:00
thorpej
ce1401fe6e
Use <machine/intr.h>, not <machine/irqhandler.h>
2001-11-27 00:53:11 +00:00
thorpej
7184ed949e
Update copyright notice.
2001-11-27 00:35:34 +00:00
thorpej
34ce8c531b
Don't need to include <machine/irqhandler.h>
2001-11-27 00:34:48 +00:00
thorpej
0a6ce2ccf5
Use the generic 32-bit ARM genassym.cf
2001-11-27 00:25:32 +00:00
thorpej
8d636bc825
Blah, hpcarm also has its own intr.c
2001-11-27 00:24:44 +00:00
thorpej
8cd82ab7b7
Move interrupt-related stuff out of the generic 32-bit ARM genassym.cf
...
and into platform-specific genassym.cf files.
2001-11-27 00:15:58 +00:00
thorpej
37677ca786
Allow port-specific Makefile fragments to specify a list of additional
...
genassym.cf fragments, if desired.
2001-11-26 23:54:49 +00:00
thorpej
2c47b0a10f
Pasto in last.
2001-11-26 23:52:58 +00:00
thorpej
ed112809c9
Allow port-specific Makefile fragments to specify a list of additional
...
genassym.cf fragments, if desired.
2001-11-26 23:44:58 +00:00
thorpej
9d58f1fcb2
Rename NOCACHE -> PPC_4XX_NOCACHE to avoid conflict with the namei
...
flag of the same name.
From Frank van der Linden <fvdl@wasabisystems.com>.
2001-11-26 23:31:56 +00:00
fredette
f0002ba642
Added macros for the bits in the SYSBUS byte, and macros
...
for the i82596 PORT access interface, from the documentation
for that chip. These help clarify writes to the SYSBUS
part of the SCP, and PORT usage by i82596-aware drivers.
2001-11-26 23:30:59 +00:00
thorpej
9235283af1
Rename NOCACHE -> PPC_4XX_NOCACHE to avoid conflict with the namei
...
flag of the same name.
From Frank van der Linden <fvdl@wasabisystems.com>.
2001-11-26 23:26:33 +00:00
thorpej
77fdde7f2c
Reset the unused RPN bits in a TLBLO to 0, as specified by the PPC401B3
...
user's manual, page 8-40.
From Frank van der Linden <fvdl@wasabisystems.com>.
2001-11-26 23:24:20 +00:00
thorpej
2d89f9075b
Move interrupt-related stuff out of stubs.c into intr.c.
2001-11-26 23:19:04 +00:00
thorpej
bb706190b3
Add code to run the XScale cache in write-though mode, and do so
...
for now...
2001-11-26 22:26:44 +00:00
manu
12c949a188
Added COMPAT_IRIX (being developped, not functionnal at that time)
2001-11-26 21:38:41 +00:00
fredette
708a12fced
A new config file for VME-only machines
2001-11-26 21:20:35 +00:00
fredette
7bed926c6e
COMPAT_SUNOS requires the 1.3 sigreturn code, so include it
...
even if COMPAT_13 isn't defined.
2001-11-26 21:10:32 +00:00
thorpej
0ca43a5fde
Use <arm/arm32/psl.h>, not <machine/psl.h>.
2001-11-26 20:51:57 +00:00
thorpej
87f09650f1
Oops, don't use the generic spl.S; hpcarm provides its own.
2001-11-26 20:49:52 +00:00
thorpej
c8c624e4aa
Don't include <machine/psl.h> directly.
2001-11-26 20:49:04 +00:00
thorpej
e0c4ce6999
Use <arm/arm32/psl.h> rather than <machine/psl.h>.
2001-11-26 20:43:46 +00:00
thorpej
87cab44e4e
Delete <machine/psl.h> from the ARM ports. It's not a header that
...
we need to provide to MI code or to userland, and it's also not a
header that generic ARM code should be including directly.
2001-11-26 20:41:42 +00:00
thorpej
534b950d29
Move the interrupt-related file declarations into port-specific
...
config descriptions so that each port choose whether or not to
use it.
2001-11-26 20:33:43 +00:00
thorpej
7b3d7b3072
Remove the NEWINTR stuff; it's not used, incomplete, and I'm trying
...
to detangle the ARM interrupt code.
2001-11-26 20:26:20 +00:00
thorpej
8ec81cf263
Sprinkle CPWAIT around to enforce some barriers. Also deal with some
...
pre-B-step errata: must clean-dcache-line to an address before
invalidate-dcache-line to that address, or the dirty bits will not
get cleanred in the dcache array for that line.
2001-11-26 18:09:08 +00:00
fredette
3de224080a
trap1 also needs to be handled under COMPAT_SUNOS.
2001-11-26 18:08:37 +00:00
fredette
877ea05895
Only declare the console keyboard on zs if it's a Sun-2
...
or later keyboard.
2001-11-26 18:06:36 +00:00
thorpej
d8415403ba
Fix brain'o in handling of schedhz and profhz. Also, make sure to
...
compute tickfix after computing tick (not that tickfix should ever
be non-zero, but there for completeness).
2001-11-26 18:01:05 +00:00
fredette
6aa55077e7
Disabled some more things that lighter kernels don't need,
...
and picked up some formatting fixes from GENERIC.
2001-11-26 17:51:08 +00:00
shin
3dfc0ff3ab
fix pasteo.
2001-11-26 13:16:17 +00:00
itojun
8391ace8b7
in_cksum.s is needed for inet6 too
2001-11-26 02:55:39 +00:00
thorpej
3b97bd4996
Remove dummy includes.
2001-11-26 01:03:58 +00:00
thorpej
da03707c2f
Moved to <sys/disklabel_acorn.h>
2001-11-26 01:03:23 +00:00
thorpej
e4b45721eb
Remove Shark-specific header file.
2001-11-26 01:03:00 +00:00
thorpej
dc19fe137e
Don't install includes which userland doesn't need.
2001-11-26 01:02:28 +00:00
thorpej
013b705fdc
G/c the unused (and #if 0'd) bits of cpu_disklabel. Fetch disklabel_acorn.h
...
from the correct place.
2001-11-25 19:02:03 +00:00
thorpej
1b71762f33
Move disklabel_acorn.h to <sys/disklabel_acorn.h>, much like we did
...
with disklabel_mbr.h. More cleanup yet to come.
2001-11-25 16:22:47 +00:00
minoura
090189cb5a
Surround a conditionally used varable with #if.
2001-11-25 16:11:56 +00:00
minoura
bbfb453233
Remove unused variables.
...
Correct printf format strings.
2001-11-25 16:00:05 +00:00
thorpej
2b74082b7b
End the "new ARM includes strategy" experiment. The new strategy
...
broke too many assumptions makde by other parts of the source tree,
and the strategy and how it was supposed to work was never discussed
on tech-userlevel, nor was it applied consistently (to all ARM ports
and to other ports which have common MACHINE_ARCH code, such as MIPS,
m68k, powerpc).
Verified to complete a full "make build" on cats, dnard, evbarm,
and netwinder.
2001-11-25 15:55:53 +00:00
minoura
fe68996902
Previous commit was incomplete.
2001-11-25 15:45:26 +00:00
minoura
e8ac9084a2
Make this file compile again.
2001-11-25 15:43:06 +00:00
minoura
bc2457e5a5
Delete unused variables.
2001-11-25 15:42:23 +00:00
soren
bf7d9c855e
Adjust for dsclock name change.
2001-11-25 15:26:03 +00:00
soren
07992b8797
Forgot pooka's license header.
2001-11-25 15:13:53 +00:00
soren
45192487a5
O2 RTC attachment, based on code from Antti Kantee.
2001-11-25 15:05:04 +00:00
takemura
21006d2057
Added SigmarionII entry.
2001-11-25 14:39:50 +00:00
takemura
365ab4ac40
Deleted unused include files.
2001-11-25 14:39:20 +00:00
isaki
9803619f9a
Sync with GENERIC 1.67
2001-11-25 05:21:12 +00:00
isaki
adf7d48092
Add an ethernet part of Nereid.
2001-11-25 05:10:03 +00:00
minoura
9011251c05
Sync. with GENERIC plus others.
2001-11-25 01:27:49 +00:00
minoura
67b7ba9580
se0 is dead.
2001-11-25 01:23:45 +00:00
minoura
fb3e999db8
One more floppy fix.
2001-11-25 00:42:11 +00:00
minoura
f7b4b90acd
Avoid using array chaining mode of DMAC.
2001-11-25 00:38:50 +00:00
lukem
73191c8c28
comment out CRYPTO_MD_DES_ENC & CRYPTO_MD_BF_ENC; they're not used
...
anywhere in the kernel, they're not defopt-ed, and config(8) -v
complains about them
2001-11-25 00:02:12 +00:00
thorpej
a3a8490ca2
Sanitize hpcarm includes somewhat, make them more like other ARM ports.
2001-11-24 17:39:31 +00:00
minoura
c5979593b7
Remove debug messages.
...
Fix bogus floppy check.
2001-11-24 16:38:16 +00:00
minoura
6018e68205
C version of installboot(8).
...
Shell script version required sed, od, etc. which were too big for install
media.
2001-11-24 16:26:56 +00:00
minoura
12c8367914
boot_ufs can now used as the disk primary boot.
2001-11-24 16:22:54 +00:00
minoura
a8f7d98ad9
Emit the binaries directly from the loader.
2001-11-24 16:18:44 +00:00
minoura
c957ecf172
Support BSD style disklabel on harddisks.
...
XXX need consistency check between the native label and the BSD label.
2001-11-24 16:08:25 +00:00
isaki
26b511b905
fix typo s/68551/68851/ in a comment.
2001-11-24 06:53:16 +00:00
thorpej
525c88a3c4
Cleanup, don't install headers that userland doesn't need.
2001-11-24 03:56:48 +00:00
thorpej
ccbcd042c1
Clean this up, don't install files that userland doens't need.
2001-11-24 03:54:52 +00:00
thorpej
ce8333e910
This is a Shark-specific file; don't need it here.
2001-11-24 03:52:34 +00:00
thorpej
c5269c1608
Make the ARM, Ltd. floating point emulator work w/ ELF.
2001-11-24 03:39:17 +00:00
thorpej
372f11b657
The ARM, Ltd. floating point emulator has moved to arch/arm.
2001-11-24 01:43:20 +00:00
thorpej
fc2c469259
The ARM, Ltd. floating point emulator has moved to arch/arm.
2001-11-24 01:27:11 +00:00
thorpej
87fe867c21
Move the ARM, Ltd. floating point emulator to arch/arm.
2001-11-24 01:26:23 +00:00
thorpej
598f003e0a
More G/C.
2001-11-24 01:16:54 +00:00
thorpej
1cfe216e3b
Garbage-collect more acorn32-specific stuff.
2001-11-24 01:15:36 +00:00
thorpej
99ae803762
Gerbage-collect a lot of stuff long since moved to arch/acorn32.
2001-11-24 01:11:51 +00:00
thorpej
1a60d78375
These files are no longer used; the Acorn RiscPC port is now
...
NetBSD/acorn32.
2001-11-24 01:02:21 +00:00
thorpej
ef9741def9
No need to install bootconfig.h
2001-11-24 00:57:43 +00:00
thorpej
2e546f76dd
Don't need "options PROG32" anymore.
2001-11-24 00:11:00 +00:00
soren
2e3553d407
Make sure to hook into DDB/KGDB if so requested.
2001-11-23 23:48:07 +00:00
thorpej
49592e9870
No need to install irqhandler.h
2001-11-23 23:34:48 +00:00
jdolecek
90fac765da
add 'drive' locator to mca edc
2001-11-23 22:35:46 +00:00
chs
9b6f5a226b
macos partition tables appear to use 512 bytes per record rather than
...
1 sector per record. change the label code to use the same layout
so that CDs with macos partition tables work.
2001-11-23 22:31:22 +00:00
jdolecek
851fb345aa
add mca_dmamap_create() prototype for MI code
2001-11-23 22:29:16 +00:00
jdolecek
ed11067c01
Properly glue in the MCA DMA controller support, using bus_dma
...
interface, using the code from dev/mca/edc_mca.c:edc_setup_dma()
as a base. Use ISA routines for dmamap/dmamem functions, primarily
to get the buffer bouncing for >16MB RAM machines. The MCA DMA
channel is stored in unused upper 4 bits of ISA DMA cookie's
id_flags, hopefully that's not too disgusting :)
Export mca_dmamap_create(), which returns map suitable for further DMA
operations using MCA DMA controller.
mca_busprobe(): also report if machine has 32bit DMA (feature byte 2
bit 1)
Use symbolic names for DMA controller commands - I've finally got
info what they mean from Tymm Twillman's Linux include/asm/mca_dma.h.
No more magic constants! Also fix bug in the way DMA counter has been
setup - for 16bit DMA, it's necessary to tell the controller _half_
the byte count. This was wrong in the former code.
2001-11-23 22:24:36 +00:00
thorpej
b8ed19b4ef
No longer need <machine/undefined.h>.
2001-11-23 21:23:30 +00:00
thorpej
fc019be5fd
Use <arm/undefined.h> instead of <machine/undefined.h>.
2001-11-23 21:18:29 +00:00
thorpej
597c20c6d6
Don't need a <machine/profileio.h> on these platforms.
2001-11-23 20:56:27 +00:00
thorpej
dbbad6df48
profileio.h is a Shark-specific header, so don't reference an
...
ARM-generic verion (it's going away).
2001-11-23 20:47:17 +00:00
thorpej
0a824f32cb
No longer need <machine/pte.h>.
2001-11-23 20:43:03 +00:00
thorpej
a41a73c44a
No longer need <machine/cpus.h>
2001-11-23 19:51:32 +00:00
thorpej
889b84bdfc
Use <arm/cpus.h>, not <machine/cpus.h>
2001-11-23 19:46:35 +00:00
thorpej
0ab1aedd0d
No longer need <machine/cpufunc.h>
2001-11-23 19:40:45 +00:00
thorpej
969599022a
Use <arm/cpufunc.h>, not <machine/cpufunc.h>.
2001-11-23 19:36:48 +00:00
thorpej
0c57d87232
Use <arm/cpufunc.h>, not <machine/cpufunc.h>.
2001-11-23 19:21:47 +00:00
thorpej
d60ef922be
Disable the BTB by default on the XScale again; there's some early
...
stepping errata to deal with before we can safely do this.
2001-11-23 19:17:04 +00:00
thorpej
5101f01dff
Move even more constants into the shared 32-bit vmparam.h header.
...
Cleanup elsewhere will have to be done before we can sanitize this
header any further.
2001-11-23 18:16:10 +00:00
thorpej
15c76e3c84
- Move more contents of various <machine/vmparam.h> files into
...
<arm/arm32/vmparam.h> (mostly the stuff that's tied to the pmap
implementation).
- Since the MMU definitions in pte.h are specific to ARM processors
that support 32-bit mode, move pte.h to <arm/arm32/pte.h>.
- Make the Netwinder startup file build again (use PT_B|PT_C, rather
than PT_CACHEABLE, since the latter expands to a variable these days).
2001-11-23 17:39:03 +00:00
thorpej
0ec8fbad4d
Extra whitespace removal.
2001-11-23 17:29:00 +00:00
thorpej
fec02f1259
No need to pull in <machine/pte.h> directly.
2001-11-23 17:23:40 +00:00
thorpej
299362f0ff
Pull in assym.h for __PROG32 (needed for IRQenable/IRQdisable macros,
...
which should probably be pulled out of cpu.h anyway...)
2001-11-23 16:53:07 +00:00
thorpej
926df47ec4
Provide __PROG32 to assembly code.
2001-11-23 16:50:48 +00:00
uch
0dff65d9f9
add missing simple_lock_init.
2001-11-23 16:21:31 +00:00
uch
4c8f0c8ea9
Update for the new cache code.
2001-11-23 16:09:11 +00:00
uch
9d6cd691b6
integrate BUILTIN_KERNEL_LOADER and KERNE_PATH into KLOADER_KERNEL_PATH.
2001-11-23 16:08:45 +00:00
uch
6bd02d8e33
add #ifndef _LOCORE.
2001-11-23 15:48:40 +00:00
atatat
f4c8a80b47
Oops. Add in missing entry point settings.
2001-11-23 15:44:15 +00:00
bjh21
c8dbbf25b2
all -> realall, so that "make dependall" works correctly.
2001-11-23 12:58:03 +00:00
tsutsui
d8879382cf
Add 32B/l L1 D/I-cache ops for newer ARC machines.
2001-11-23 06:21:49 +00:00
atatat
155e541aa2
Instead of checking for previous usage, just append to some make
...
variables. Tweak some variables to provide for more uniform defaults.
Minor adaption to makefiles for already converted ports.
2001-11-23 05:18:59 +00:00
atatat
2bf2c362fb
The bridge(4) pseudo-device no longer requires the port to
...
__HAVE_GENERIC_SOFT_INTERRUPTS, so add it back to all GENERIC configs.
2001-11-23 05:00:22 +00:00
simonb
1b1e4bd3d1
Remove hardcoded values for HZ (under different names!) from mcclock.c
...
and clock_machdep.h, so that now HZ can be any supported frequency of
the mc146818a/ds1287a RTCs.
Tested at 256Hz and 2048Hz.
2001-11-23 01:04:11 +00:00
thorpej
5278f1771c
Remove kerndebug.h from non-Shark code (it's a Shark-specific header
...
file, and probably should be done away with anyway).
2001-11-22 19:19:48 +00:00
thorpej
b9d3276c2e
No need for <machine/rtc.h> here.
2001-11-22 18:40:12 +00:00
thorpej
b393d0d3f7
Kill <machine/katelib.h>. Any place that still uses it should just
...
reference <arm/arm32/katelib.h> until such time as all use of this
file has been purged from the face of the earth.
2001-11-22 18:34:30 +00:00
thorpej
88bba2e5a4
Add cpu_cpwait() calls after TLB updates that are not expected to
...
be followed up by a pmap_update().
2001-11-22 18:24:43 +00:00
thorpej
67fd41ddbf
Add 26-bit and 32-bit types.h files, which indicate the programming
...
model in use for a given platform (__PROG26 vs __PROG32), then pulls
in <arm/types.h>. Change each ARM port to pull in <arm/arm26/types.h>
or <arm/arm32/types.h> as appropriate. Change all references to PROG26
and PROG32 to __PROG26 and __PROG32. Eliminate the opt_progmode.h
header file.
2001-11-22 17:59:57 +00:00
takemura
5815e5f567
Fixed bus stuff to compile vrpciu.c (VR4131 CPU).
2001-11-22 14:22:30 +00:00
tsutsui
e7fb452657
Fix some debug code in bios_configure_memory().
2001-11-22 12:17:00 +00:00
simonb
944346b889
KNF, ANSIfy.
...
Change print_addr() to take an db_addr_t argument instead of a long.
2001-11-22 06:58:03 +00:00
simonb
973ad566f7
Update the CP0 register names.
...
Make some tables line up nicely.
Make print_addr() static.
2001-11-22 06:00:31 +00:00
soren
7e84b9e1db
Add wscons devices.
2001-11-22 04:50:04 +00:00
uwe
1eebb3fde3
Add patches for Mr.Coffee with OBP2.
...
Miscellaneous cosmetic changes.
2001-11-22 04:18:28 +00:00
rafal
85cae1f6d1
If we already have a boot device set, don't reset the slot/unit/partition.
...
Now my Challenge S boots multiuser with the new bootloader without stopping
to ask for boot/root devices.
2001-11-22 03:15:35 +00:00
simonb
b9f67baecf
<sys/sysctl.h> doesn't need to be after <uvm/uvm_extern.h> anymore, put
...
it with the other <sys/_foo_.h> include files.
2001-11-22 03:08:01 +00:00
soren
6c3e025b46
Nuke cleandir target override.
2001-11-22 02:18:24 +00:00
soren
6e9ab4848f
Respect OSLoadPartition even if it doesn't come before SystemPartition in argv.
...
Add a few comments about the above.
2001-11-22 02:06:32 +00:00
soren
b63ced481c
Note kernel load adress change.
2001-11-22 01:30:03 +00:00
soren
60ae71115a
Change the kernel load address offset from 512K to 420K, the Irix
...
convention for debugging kernels.
2001-11-22 01:11:51 +00:00
thorpej
b2fe046c8c
Move the kernel forward in memory, starting it 512K in from the
...
bottom of RAM. The bootloader is now loaded 2K in from the bottom
of RAM, so we need to make space for it.
2001-11-22 00:59:23 +00:00
thorpej
aabfa72384
- Clean up the bootloader Makefiles somewhat.
...
- Build an ECOFF version of the bootloader as "boot". As a temporary
measure (due to a bug in libbfd which has not yet been fixed, but
for which a work-around exists as a patch), install and ELF version
of the bootload as well as "boot.elf". "boot.elf" will go away once
the toolchain issue is resolved.
2001-11-22 00:58:07 +00:00
jmc
5ac54229c9
Don't make the symlinks on clean rules as well as obj rules. Breaks r/o source
...
trees that haven't gotten to the make obj recursion part of make build
otherwise.
2001-11-22 00:14:20 +00:00
dillo
3bad9b1f33
Repeat James Chacon's fix from sys/lib/lib{kern,sa,z}:
...
Don't make clean and cleandir depend on the lib subdir.
Just check for it's existance before running the submake.
This makes it possible to run a make build (which runs
cleandir before make obj) in a r/o source tree.
2001-11-22 00:04:55 +00:00
thorpej
3975cecee7
- Adjust bootinfo to work sanely in an ARCS world, and pass some
...
info along to the kernel (currently just the symbol table info).
- Don't bother with the startprog dance; we don't need to do anything
special, here, so just call the entry point directly.
- A bunch of random cleanup.
2001-11-21 23:33:17 +00:00
thorpej
38afb59582
- Check for provided bootinfo from the bootloader. If we find it,
...
save off DDB symbol table information.
- Make loading of memory work reliably with the bootloader; for each
candidate memory type from ARCS (which now includes LoadedProgram),
check to see if the kernel is within that chunk, and load the pages
around it if it is.
2001-11-21 23:27:20 +00:00
thorpej
741c7a2997
sbic -> wd33c93, in preparation for the core driver going into
...
sys/dev/ic.
2001-11-21 23:22:25 +00:00
soren
07c4b937eb
prep has no special dependencies on pccons; remove.
2001-11-21 22:40:45 +00:00
soren
482d429ddc
Install loader in /usr/mdec.
2001-11-21 22:14:51 +00:00
soren
57bd30a92c
s/pmax/sgimips/ in comments.
2001-11-21 22:13:55 +00:00
uwe
8390d1903a
Skip relocation if OpenFirmware already loaded us at the right address.
2001-11-21 21:38:00 +00:00
thorpej
e2397b7f93
Change symtab info to unsigned longs.
2001-11-21 20:31:49 +00:00
thorpej
4b1d2d4ce9
Add bootinfo stuff for NetBSD/sgimips. Changes to kernel and bootloader
...
forthcoming.
2001-11-21 20:29:31 +00:00
wiz
1fd7eeefcd
"than" instead of "then".
2001-11-21 19:14:19 +00:00
thorpej
4e63f44f6c
Initial cut at a bootloader for NetBSD/sgimips, by Michael Hitch.
2001-11-21 19:09:06 +00:00
wiz
1f1e26bd6d
Presence looks better with a 'c' instead of an 's'.
2001-11-21 19:01:31 +00:00
wiz
55e6492076
Explicitly write explicitly without a second e.
2001-11-21 17:33:26 +00:00
augustss
9c6275fe9e
Add a commented out ehci driver (for the adventurous).
2001-11-21 17:11:02 +00:00
uch
df2b478d48
increase the value of maxusers to 16.
2001-11-21 11:28:09 +00:00
soren
0cbd8ee484
pccons is not used by acorn32.
2001-11-21 03:43:13 +00:00
thorpej
bcc50e9703
Use strncmp() when looking up volume files.
2001-11-20 23:09:45 +00:00
thorpej
c8f26da0bd
- General code cleanup (and enable warnings).
...
- It's perfectly legal to have an 8 byte volume filename; the trailing
NUL is not required in this case.
- Default the partition type to "4.2BSD", not "EFS".
2001-11-20 23:07:16 +00:00
manu
675946fd1c
Fixed the Linux signal trampoline and linux_sys_sigreturn(). Linux signal
...
delivery now seems fully functionnal.
2001-11-20 21:37:50 +00:00
rafal
52f4b0490c
Stylistic fix to last.
2001-11-20 21:21:03 +00:00
soren
3f54e2c74f
Add stand to SUBDIR.
2001-11-20 18:37:00 +00:00
soren
0f71151d6e
stand Makefile.
2001-11-20 18:36:31 +00:00
soren
1e6da897d3
Michael Hitch's volume header tool.
2001-11-20 18:35:22 +00:00
soren
5ecc88dc2f
Correct previous, pointed out by mhitch:
...
makebootdev() sets not booted_device but booted_protocol, so test for that.
2001-11-20 18:06:40 +00:00
thorpej
f934d91c74
The 2nd SCSI controller is now supported; remove it from the TODO list.
2001-11-20 17:38:31 +00:00
rafal
6c04d91bae
Post Jason's autoconfig cleanup, the DMA tags are actually passed in from
...
the parent, so we don't need to look at the innards of bus_dma anymore.
Also, remove the Todo item pertaining to autoconfig cleanup from the list
in the comments.
2001-11-20 16:10:49 +00:00
rafal
c4596a56c0
Fix up Jason's last cleanup (thanks for that, btw!!)... Don't attach
...
hpc child devices that don't match our systype. Attempting to attach
a wdsc1 on my Challenge S locks the box hard.
2001-11-20 16:09:00 +00:00
lukem
0fa231134c
- replace "defopt" with "defparam" for options which must take a value,
...
as config(8) will warn for value-less defparam options
- minor whitespace/formatting cleanup
- consolidate opt_tcp_recvspace.h and opt_tcp_sendspace.h into opt_tcp_space.h
2001-11-20 14:34:18 +00:00
lukem
03aef4723c
cleanup:
...
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
2001-11-20 12:56:17 +00:00
lukem
fac48ee4de
whitespace cleanup
...
add (commented out) RAID_AUTOCONFIG below raidframe entry
2001-11-20 12:46:15 +00:00
lukem
26930db20a
regenerate for whitespace cleanup
2001-11-20 11:30:44 +00:00
lukem
fdd071b188
cleanup whitespace
2001-11-20 11:29:41 +00:00
lukem
5997b30883
remove trailing whitespace (including in generated files)
2001-11-20 11:26:10 +00:00
lukem
99bccc3cab
- pull in opt_kgdb.h where necessary
...
- replace opt_kgdb_machdep.h with opt_kgdb.h
- defparam opt_kgdb.h:
KGDB_DEV KGDB_DEVNAME KGDB_DEVADDR KGDB_DEVRATE KGDB_DEVMODE
- move from opt_ddbparam.h to opt_ddb.h:
DDB_FROMCONSOLE DDB_ONPANIC DDB_HISTORY_SIZE DDB_BREAK_CHAR SYMTAB_SPACE
- replace KGDBDEV with KGDB_DEV
- replace KGDBADDR with KGDB_DEVADDR
- replace KGDBMODE with KGDB_DEVMODE
- replace KGDBRATE with KGDB_DEVRATE
- use `9600' instead of `0x2580' for 9600 baud rate
- use correct quotes for options KGDB_DEVNAME="\"com\""
- use correct quotes for options KGDB_DEV="17*256+0"
- remove unnecessary dependancy on Makefile for kgdb_stub.o
- minor whitespace cleanup
2001-11-20 08:43:19 +00:00
chs
7305fb6b53
include COMPAT_AOUT_M68K stuff.
2001-11-20 07:48:31 +00:00
chs
77b6c48c4c
support both ELF and a.out symbols for DDB.
2001-11-20 07:45:04 +00:00
enami
d4813d9d45
Just test if DEBUG_MEMLOAD is defined or not instead of testing its value.
2001-11-20 07:44:17 +00:00
enami
78bcf7e362
Cosmetic changes to previous commit.
2001-11-20 07:42:33 +00:00
shin
07356ec733
improve r4k_sdcache_XXX_generic().
2001-11-20 06:32:21 +00:00
lukem
399b58be96
whitespace cleanup
2001-11-20 06:00:09 +00:00
chs
8f0070db30
prepare for ELF:
...
- add "%" prefix to register names in assembly code.
- use _C_LABEL() where necessary.
- use packed structures where necessary to match the old ABI.
2001-11-20 03:19:41 +00:00
chris
04d6054972
Correct comment to avoid confusion, it really means 32 bits not 32 bites.
2001-11-20 00:22:33 +00:00
matt
77ab725cbb
Enable DOZE mode for the 604ev.
2001-11-19 23:30:07 +00:00
matt
3ae5a183aa
Fix boot device selection when booting from an alias. If the bootpath
...
isn't an OFW device, look it up in /aliases and substitute the bootpath
found into the string. This allow device_register to do it's thing.
Key off the drive number, not the channel, in autoconf.c. Closes PR#13756.
2001-11-19 23:22:48 +00:00
chris
165b023373
Give the idle loop a non-profiled entry, means it appears in profile info correctly (rather than all it's time being under remrunqueue)
...
switch_exit only needs to take 1 parameter, it loads the value of proc0 into R1 itself
Fixup some comments to reflect the real state of things.
Tweak a couple of bits of asm to avoid a load delay.
remove excess code for setting curpcb and curproc.
2001-11-19 20:38:58 +00:00
thorpej
ba9581a345
Reorder the device table to make the UART at J9 attach before the
...
UART at J10 (this is the same ordering the RedBoot uses, and also
is intuitive).
2001-11-19 19:08:33 +00:00
thorpej
2d7fd0a8b8
Implement pmap_update(). Currently it just calls cpu_cpwait(),
...
which ensures that TLB/cache operations have completed.
2001-11-19 18:41:32 +00:00
thorpej
887bcc078e
Add a "cpwait" cpufunc, currently a nullop on all but XScale.
...
"cpwait" ensures that all coprocessor operations have completed
before returning.
2001-11-19 18:40:15 +00:00
soren
f270ebd294
Remove obsolete comment.
2001-11-19 17:39:54 +00:00
soren
b76c8dbfc9
Remove netbsd.high Ind* load address hack and use a separate
...
distribution GENERIC instead.
2001-11-19 17:39:31 +00:00
soren
db0828bda0
Remove driver options that don't belong in std.sgimips.
2001-11-19 17:38:24 +00:00
soren
3fe377a8b9
s/sgi/sgimips/
...
Remove __NO_SOFT_SERIAL_INTERRUPT.
2001-11-19 17:36:41 +00:00
soren
a36dfe843b
Since we can get boot device information from both the boot loader
...
and the firmware, we allow it to be set only once, so the boot
loader is given highest priority.
2001-11-19 17:35:15 +00:00
soren
6413de2df4
Get L2 cache line size from ARCS.
...
Remove hack to disable (standard) L2 caches.
2001-11-19 17:33:02 +00:00
soren
ce57fc2bba
Also check SystemPartition when finding boot device. Especially
...
when netbooting, it is practical to load the kernel directly.
2001-11-19 17:29:53 +00:00
soren
77a301e0e8
s/sgi/sgimips/
2001-11-19 17:28:23 +00:00
chs
621a9ec9ea
allocate and free page table pages explicitly instead of abusing
...
uvm_fault_wire(). this allows us to make pt_map non-pageable,
but we need to be careful in pmap_remove() not to attempt to
reference PTEs after the PTP has been freed.
2001-11-19 06:40:11 +00:00
tls
b8b40ad95c
Who are we kidding? Nobody installs over a DS-3, and I seriously doubt
...
that anyone installs over HIPPI either. On the other hand, lots of people
would like to be able to install over their wireless networks or with their
Tigon Gig-E cards: so, let's synchronize this file's contents with the
modern world (at least a little bit).
Note that we really need to decide whether, as they used to be, the INSTALL
config files will be GENERIC with some lines *deleted* or whether they will
be GENERIC with some lines commented out. Using both styles is bad, but I
haven't fixed it in this commit.
2001-11-19 02:17:18 +00:00
thorpej
6e69c4e62c
Add mips_dcache_align and mips_dcache_align_mask variables that
...
contain information suitable for allowing other parts of the kernel
to determine if a memory region is aligned to the largest data cache
line size present in the system.
Add a mips_dcache_compute_align() function which must be called whenever
one of the data cache line size variables is changed, in order to
compute mips_dcache_align and mips_dcache_align_mask.
2001-11-19 01:28:07 +00:00
chs
14b5abfd92
allocate and free memory explicitly rather than abusing uvm_map_pageable().
2001-11-18 19:28:34 +00:00
thorpej
4609c9fbb4
r4k_sdcache_wbinv_range_index_32(): fix a typo (16 -> 32).
2001-11-18 18:48:55 +00:00
thorpej
e6cab2e799
Add 128b/l L2 cache ops.
2001-11-18 18:46:20 +00:00
bjh21
5fbb068685
Remove printf from pmap_clear_modify; it triggers too often.
2001-11-18 15:57:23 +00:00
bjh21
b5dff60f89
Several changes (sorry!):
...
Refuse to clear the modified bit on a page if it has a writeable kernel
mapping. I'm not sure this is the right thing to do, but since further
writes to the page won't set the bit again, it's safer than clearing it,
and makes NFS writes work properly.
Add debugging code for modified-bit emulation, which checksums
allegedly-unmodified pages to see if they're _really_ unmodified.
Disabled by default because it's slow.
In the process, fix a bug in pv_release whereby the modified bit for a
page got cleared when its last mapping was removed. This seems to finish
the NFS write fixes started by the first change above.
2001-11-18 15:47:36 +00:00
kleink
81611660e5
Fix printf format in DEBUG case.
2001-11-18 15:30:43 +00:00
jdolecek
1dae310858
fix typo
2001-11-18 13:48:00 +00:00
bjh21
0d20115da8
Match multiple-include-protection macros to name of file.
2001-11-18 13:10:57 +00:00
bjh21
306ca6424a
Roll back last change. Acorn32, being a major port, shouldn't switch to ELF
...
until the ABI is finalized.
2001-11-18 13:09:27 +00:00
thorpej
38b076b60c
zsc does not needs-count
2001-11-18 08:24:33 +00:00
thorpej
431af33735
Tweak for HPC autoconfig changes.
2001-11-18 08:21:38 +00:00
takemura
1d1d5c87af
Rewrite bus stuff with method table in the bus tags.
2001-11-18 08:19:39 +00:00
thorpej
be010c72ef
* Clean up HPC autoconfiguration a little. Pass device register and
...
DMA register offsets, as well as IRQ, to children. Use direct
config. Use machine type/subtype to determine which devices are
present.
* Add support for the second SCSI controller on the Indigo2.
2001-11-18 08:16:15 +00:00
briggs
fd5f7080b3
Correct operation of non-pseudo-DMA mode. Used on 660 & 840 AV models.
...
From Takeshi Shibagaki<ie9t-sbgk@asahi-net.or.jp>.
2001-11-18 05:22:32 +00:00
thorpej
8edf2c6d98
* Add a callback to the front-end for the 33c93 driver to reset
...
the controller/SCSI bus.
* Implement controller/SCSI bus reset on SGI HPC3 SCSI using the
"channel reset" bit in the SCSI DMA channel control register.
2001-11-18 05:14:38 +00:00
simonb
0f3507ed9c
White space nit.
2001-11-18 03:47:53 +00:00
someya
9c13958025
add autri (Trident 4DWAVE based AC'97 audio)
2001-11-18 03:24:38 +00:00
gmcgarry
2cabf5a2e2
Update for new RTC and HIL attachments.
2001-11-17 23:56:21 +00:00
gmcgarry
8efcc1d46b
Convert hil to standard device attachment.
2001-11-17 23:53:37 +00:00
gmcgarry
4d380420ae
Use new RTC attachment.
2001-11-17 23:51:03 +00:00
gmcgarry
d9b1140ca5
Merge some fixes from clock.c, revision 1.23.
2001-11-17 23:48:15 +00:00
gmcgarry
257f825d26
Device attachment for the real-time clock.
2001-11-17 23:38:32 +00:00
gmcgarry
3cf284349d
Update for new intio parent interface.
2001-11-17 23:35:31 +00:00
gmcgarry
224cd45a75
Overhaul the intio device attachment. Devices are direct connected and
...
attached based on machine id.
2001-11-17 23:33:22 +00:00
gmcgarry
3acacb5fc1
Make hil interrupts come through the standard dispatch mechanism rather
...
than its custom handler.
2001-11-17 23:29:08 +00:00
gmcgarry
40aa97f8b1
For INTIO space, use an offset for the mapping rather than the physical
...
address.
2001-11-17 23:26:55 +00:00
gmcgarry
4b62b5b023
Don't try to mmap the framebuffer as executable. Fixes MMU faults
...
when executing the X server.
2001-11-17 23:25:04 +00:00
kleink
852f87fe13
i386_memio_mmap(): return -1 to indicate failure, not EOPNOTSUP.
2001-11-17 19:32:03 +00:00
kleink
4a41ec8583
In fdopen():
...
* Defer deref'ing of `un' until it's been initialized.
* Kludge around a false-positive uninitialized warning.
Brought to you by the graces of GCC 2.95.3.
2001-11-17 19:00:25 +00:00
kleink
117651c65e
Can't pass temporary storage to an inline assembly statement as input
...
operand; debunked by GCC 2.95.3 as uninitialized.
2001-11-17 18:55:57 +00:00
christos
e36e7f175a
Add transmeta crusoe cpu support from toshi.
2001-11-17 08:21:43 +00:00
christos
79f74a0b0f
Add transmeta crusoe cpu support from toshi's fiva patches.
2001-11-17 08:20:58 +00:00
thorpej
21c0578357
Walk the ARCS device tree to find the L2 cache size.
2001-11-17 01:19:58 +00:00
bjh21
04e005d19a
Don't bother setting lint flags. arm26 doesn't pass lint anyway, so we may
...
as well use the defaults.
2001-11-16 14:53:47 +00:00
bjh21
eff0c97bb0
Use the exciting new MI kernel building machinery on arm26.
2001-11-16 14:46:16 +00:00
bjh21
294f95152f
db_interface.c:
...
Include <ddb/db_access.h> for db_read_bytes etc prototypes.
Add prototype for db_trapper().
Move prototypes for "machine" subcommands to db_machdep.h.
db_machdep.h:
Add prototypes for "machine" subcommands.
2001-11-16 14:39:30 +00:00
bjh21
73dd1b11c1
Include <uvm/uvm_extern.h> for pagemove() prototype.
2001-11-16 13:48:33 +00:00
bjh21
4244e4f4ce
Add a prototype for pmap_dump(). Since this function is only called from
...
DDB, there's no suitable header file.
2001-11-16 13:47:06 +00:00
junyoung
12b82871db
Add pseudo-device wsfont, which is necessary to make wsfontload(8)
...
work.
2001-11-16 13:46:31 +00:00
bjh21
aacfb7f42c
Include <sys/sysctl.h> for cpu_sysctl() prototype.
2001-11-16 13:41:58 +00:00
bjh21
77c5245c8f
Fix names of bus_space_copy_region_1() and bus_space_copy_region_2().
2001-11-16 13:34:03 +00:00
bjh21
6b12ec55b2
Add prototypes for undefinedinstruction() and resethandler().
2001-11-16 13:12:06 +00:00
gmcgarry
e9ec95622b
Remove unnecessary trailing argument. Now compiles with new toolchain.
2001-11-16 08:14:05 +00:00
atatat
d5de3c2fb2
Abstract out a large chunk of the kernel build machinery so that new
...
build features (such as ross's DEBUGLIST) can easily be applied to all
ports. This should reduce the complexity of each port's kernel
Makefile considerably. Line counts:
227 arch/i386/conf/Makefile.i386.orig
98 arch/i386/conf/Makefile.i386
227 arch/alpha/conf/Makefile.alpha.orig
99 arch/alpha/conf/Makefile.alpha
219 arch/sparc/conf/Makefile.sparc.orig
102 arch/sparc/conf/Makefile.sparc
215 arch/vax/conf/Makefile.vax.orig
102 arch/vax/conf/Makefile.vax
253 conf/Makefile.kern.inc
Roll i386, alpha, sparc, and vax over to the new build machinery.
2001-11-16 00:23:02 +00:00
thorpej
6b842c44f3
MACHINE_ARCH == arm on hpcarm.
2001-11-15 19:35:31 +00:00
thorpej
0b6370bfee
Implement __cpu_simple_lock*() primitives using the SWP insn. Note
...
this insn is available only on ARM arch v3 and later (and 2a). We
don't expect to be using these ops in the kernel on processors too
old to have SWP, and for userland uses (in e.g. a pthread library),
the kernel will simply have to trap and emulate the insn (it needs
to be "atomic", so a kernel trap of some sort will be necessary on
such platforms anyway).
2001-11-15 19:22:32 +00:00
soren
662f877587
MAXSLP is defined to be a machine-independent scheduling parameter,
...
so move it into sys/param.h.
2001-11-15 18:06:11 +00:00
lukem
95c969f245
add RCSID
2001-11-15 07:03:28 +00:00
chs
a69c43b997
fix pmap_extract() to handle addresses with a PTP but an invalid PTE.
2001-11-15 05:16:41 +00:00