Commit Graph

30828 Commits

Author SHA1 Message Date
scw f179ae8cce Get in sync with include files. 2002-02-27 21:55:44 +00:00
scw 509f6019ae Add entry for mvmeppc. 2002-02-27 21:33:46 +00:00
scw 4c447e5383 New port: NetBSD/mvmeppc
Based mostly on NetBSD/prep at this time since the earlier mvme160x
boards are pretty much PReP compliant. Later boards in the range
diverge somewhat from the reference platform, hence the separate port.

Still needs *lots* of bashing into shape, but at this time it will
boot to multi-user over ethernet on an MVME1603-051.
2002-02-27 21:02:12 +00:00
leo f70bec2792 Also visit the file2swp subdir. 2002-02-27 20:29:14 +00:00
leo 927df39940 copy a file to a 'SWP' partition 2002-02-27 20:14:39 +00:00
pk f478419a29 Calling pmap_zero_page() (in #if DEBUG section) from pmap_bootstrap() hangs
an E250; comment it out.
2002-02-27 16:09:51 +00:00
simonb 06b7c00543 s/DEL_ZERO/DEV_ZERO/ 2002-02-27 06:51:57 +00:00
kleink 39a685458d Fix pastos & typoe. 2002-02-27 04:13:10 +00:00
matt 178af24f65 Add a comment to where we increment intr_depth to show that intstk+INTSTK
== intr_depth. (gag)
2002-02-27 03:27:14 +00:00
kleink ebb0f83c31 Sort. 2002-02-27 02:21:22 +00:00
rafal 929d489997 In _bus_dmamap_sync, only invalidate as much data as there is in the current
segment rather than invalidating the total map length for each segment.
2002-02-27 01:51:48 +00:00
christos e8116a8f5b - Use DEV_ constants, instead of documenting the numbers!
- Delete cdev_decl(mm); where appropriate, and other hand-crufting [hi powerpc!]
2002-02-27 01:20:51 +00:00
christos 6b030ee036 - define other DEV_ constants that the local port uses.
- delete cdev_decl(mm) since <sys/conf.h> does it.
2002-02-27 01:19:03 +00:00
jmcneill f876e538ae Add options (commented out) for disabling power hooks on the pms and pmsi
PS/2 mouse drivers.
2002-02-27 00:31:12 +00:00
kleink 5424a781c8 Upon reflection, use hexadecimal values for previous, which make the
segment/block/battable relationship far more obvious.
2002-02-26 23:56:52 +00:00
kleink 4218adb6c2 Move battable entries for I/O to their correct pseudo-segment offsets;
while BAT spills currently don't happen, it should be possible for the
handlers to find them at the expected address anyway.

XXX Why the PCI I/O and Memory spaces are being installed in the iBAT
XXX registers is beyond me.
2002-02-26 23:45:54 +00:00
eeh 1eb3484425 Fix PR# port-sparc64/13811: PCITAG_SETNODE() is defined using `x' insted of `t'.
from URA Hiroshi
2002-02-26 22:39:14 +00:00
tv b2ec8a78fc NEW_PIPE is no longer a configurable option (there's only PIPE_SOCKETPAIR,
inverted logic).
2002-02-26 21:44:29 +00:00
kleink 5e6a2be4e0 For the time being, add a wrapper around GENERIC causing the tlp driver
to match the on-board 21040, which the de driver has issues with.
2002-02-26 19:02:50 +00:00
kleink 9fcf8c7e63 Add platform support for the Motorola Ultra Plus and Ultra 60x boards.
Note that this currently matches only the boards built into Bull Estrella
systems, as Bull chose to change the board identification string whose
original content is not known at this time.
2002-02-26 16:09:14 +00:00
kleink 5eb5b37d22 Add the same probe fig leaf as in the mk48txx attachment to prevent
false positives.
2002-02-26 15:28:38 +00:00
simonb d9ab16ba2f Purge CLSIZE, CLSIZELOG2 and MCLOFSET.
Be consistant in the way that MSIZE, MCLSHIFT, MCLBYTES and NMBCLUSTERS
  are defined.
Remove old VM constants from cesfic port.
Bump MSIZE to 256 on mipsco (the only one that wasn't already 256).
2002-02-26 15:13:19 +00:00
simonb 9f5c966439 We are not a DECstation. 2002-02-26 12:45:24 +00:00
kleink f7a55f56d3 PIR is the same on 601. 2002-02-26 00:48:58 +00:00
kleink 326c1b225d Move the ext_intr() variant using the board interrupt vector register
into common code; it is not specific to the 6050, and in fact not even
specific to IBM-built hardware.
2002-02-26 00:30:10 +00:00
kleink 03cae416f5 Add an attachment for the MK48T18 RTC/NVRAM found on some Motorola boards. 2002-02-25 19:09:43 +00:00
ad 3f78ffdeca Argh, dont reference any wscons parts in files.dec yet. 2002-02-25 17:11:17 +00:00
kleink bc2fec2880 Typo in comments. 2002-02-25 16:18:19 +00:00
ad f89bb3064e Move the dz driver to dev/dec, since it can be shared with pmax. 2002-02-25 14:58:06 +00:00
kleink d5fe2ac32f Declare the id argument to pci_conf_hook(9) as pcireg_t, which is more
appropriate.
2002-02-25 00:34:13 +00:00
kleink 6805e97fff Make the logic for wildcarding the I/O address actually achieve its purpose. 2002-02-25 00:04:49 +00:00
thorpej c92241b420 Correct a comment. 2002-02-24 20:51:56 +00:00
leo fa1cc12897 Move some disk I/O and disklabel functions into the library. The code
mostly originated from aptck. Need an extra pass over aptck to cut out all
functionality now moved to the library...
2002-02-24 20:51:07 +00:00
thorpej 4af7d26f26 Fix a couple of comments. 2002-02-24 20:44:28 +00:00
thorpej 0a4bc3ccd5 This file is obsolete. 2002-02-24 20:32:40 +00:00
thorpej 39c165f331 Add support for relocating gzboot's .text out of flash and into
RAM (while still decompressing the image directly from flash).

This makes gzboot run a LOT faster.
2002-02-24 20:29:44 +00:00
dbj 5f15cedc89 solve polled adb keyboard problems with dropped keys and unsynced caps lock
by queueing polled keys.
2002-02-24 20:20:20 +00:00
uch 31ae0ac1e9 clean up Makefiles 2002-02-24 20:10:53 +00:00
uch 6bda0e36c3 use sh_clock_get_pclock() instead of PCLOCK. 2002-02-24 19:35:42 +00:00
thorpej d819468d64 Improve zlib error reporting. 2002-02-24 18:36:29 +00:00
uch 3c3da7bf57 _start -> start. 2002-02-24 18:24:15 +00:00
uch 693be1956c Move common exception vector and scheduler code to
sh3/sh3/exception_vector.S and sh3/sh3/locore_subr.S. exception
vectors are installed by sh_cpu_init().  machine/locore.S contains
kernel entry, interrupt handler, and some MD code.
2002-02-24 18:19:40 +00:00
uch 72589177e0 remove obsolete file. 2002-02-24 18:13:06 +00:00
is 3763cdd026 remove unused prototype (a duplicate with a typing error) 2002-02-24 15:20:05 +00:00
kleink 5410bbdb16 In order to support both indirect PCI configuration space access as well
as direct-mapped PCI configuration space access (such as implemented on
the IBM 27-82650 PCI Host Bridge), switch to a function vector based
PCI configuration space access implementation.  The appropriate PCI
chipset tag is provided by platform-specific code.
2002-02-24 13:19:06 +00:00
kleink 73cdf7f537 Get rid of cf_unit misuse. 2002-02-24 11:22:00 +00:00
kleink 5b6184e81b Upon reflection, really choose the right pseudo-segment for PCI memory space. 2002-02-24 10:58:41 +00:00
kleink 50838c01e1 Move battable entries for I/O to their correct pseudo-segment offsets;
while BAT spills currently don't happen, it should be possible for the
handlers to find them at the expected address anyway.
2002-02-24 10:56:54 +00:00
takemura 6df64c4e5e Make it compilable even if PCI wasn't configured. 2002-02-24 09:16:07 +00:00
thorpej ca1294612c Remove some globals defined in libsa. 2002-02-24 01:51:04 +00:00
matt 28b1aa2b30 Move .s files to .S files. (and .s.o rules in boot/Makefile.inc)
Put in register prefixes everywhere.
2002-02-24 01:04:23 +00:00
ad fab93c4a60 Reserve majors 101 and 102 for wsmux and wsfont. 2002-02-24 00:39:36 +00:00
matt 17a0652faf Change the default entry for ELF. 2002-02-24 00:17:42 +00:00
matt 6cad4b795d Upon further reflection, move udiv/urem to libkern and out of vax/vax. 2002-02-24 00:08:19 +00:00
matt 87806a826d Rename VAX kernel assembly source from .s to .S (the NetBSD standard) 2002-02-23 23:48:00 +00:00
gmcgarry 0166df69f5 Implement DIOCGDEFLABEL ioctl. 2002-02-23 21:55:25 +00:00
gmcgarry 49fd989e9b Unnecessary to cast splx() to void. 2002-02-23 21:54:31 +00:00
gmcgarry 562fb80d45 Make the keyboard attach printf a little less cryptic. 2002-02-23 21:53:25 +00:00
gmcgarry 5382848ec7 Recognise md as a valid root device. And since md disks don't get
device_register()'d, don't go looking on our device list for them.
Ramdisk kernel now boot.
2002-02-23 21:52:25 +00:00
gmcgarry 42abedb038 Trim down to 1.2MB ramdisk for booting on 4MB machines. 2002-02-23 21:48:08 +00:00
gmcgarry 19f1fd96ca Don't need printer support during installation. 2002-02-23 21:47:07 +00:00
gmcgarry 6a45dcbe5d Cleanup options for binary compatibility. HPUX and SUNOS are known to work. 2002-02-23 21:46:24 +00:00
gmcgarry feb0773e27 Support two-stage netboot. Is known to work on maxine, but problems
have been reported on 3min.
2002-02-23 21:43:57 +00:00
thorpej 0780eaaa32 Use bcopy() and bzero(), since the rest of libsa does. This means
we don't have to pull in memset() and memcpy() from libsa.
2002-02-23 20:48:14 +00:00
leo c3de71f0bf Fixup icu-code. It now works for both ISA and PCI. 2002-02-23 20:44:45 +00:00
thorpej 59f1dfe1c2 Don't need to provide zcalloc() and zcfree(); there are such routines
in libz.
2002-02-23 20:34:41 +00:00
thorpej 524d248b59 Fix the -DRELOC=... CPP flag. Add -DDYNAMIC_CRC_TABLE to shrink
the text (and, thus, the space taken up in flash) a bit.
2002-02-23 20:19:52 +00:00
briggs caaef6d0d0 Implement obio_bs_rr_1. 2002-02-23 19:55:34 +00:00
thorpej a91d5a1a99 Example Makefile and linker script for building a run-from-flash
gzboot image for the IQ80310 with room for 2M of compressed data.
2002-02-23 19:16:54 +00:00
thorpej c39065eb62 Add support for running directly out of flash:
* Require that the builder Makefile provide a linker script.
* After making sure the MMU is disabled, check to see if
  _etext == __data_start.  If not, then copy the .data contents
  into RAM.
* Put the stack in .bss.
2002-02-23 18:19:09 +00:00
thorpej 87de164ab4 Fix a silly bug in the propellor spinning code. 2002-02-23 17:25:32 +00:00
scw c4dbe1a160 Allow MD code to provide functions for reading/writing NVRAM/RTC
locations. If passed NULL, the old behaviour using bus_space_{read,write}_1()
is used. Otherwise, all access to the chip goes via the MD functions.

This is necessary for mvmeppc boards where the mk48txx NVRAM/RTC is not
directly addressable.
2002-02-23 17:18:54 +00:00
toshii 3676484136 Make KERNEL_VM_SIZE a little larger so that ubc_init doesn't fail from
ENOMEM.
2002-02-23 14:02:48 +00:00
toshii 5e0f2080c8 Remove a bogus pmap_map_entry call. 2002-02-23 13:58:10 +00:00
dbj c467951c58 turn on polling using cnpollc 2002-02-23 10:51:50 +00:00
dbj b97918f553 In adb_soft_intr, remove the packet from the queue before calling the
completion routine so that the completion routine can reentrantly
process the queue.  This happens, for example. when polling is turned
on by entering the debugger by keystroke.
2002-02-23 10:47:16 +00:00
thorpej d114b32f24 Add some nops after we enable the MMU, for good measure (enough for
the nops to be the prefetch'd insns when the MMU switch occurs).
2002-02-23 05:58:46 +00:00
thorpej f31f6affa9 Make sure the MMU is enabled after we switch to the new kernel
page tables (gzboot disables the MMU before it does its work).
2002-02-23 05:55:26 +00:00
thorpej 0fac1c42e9 gzboot -- boot a gzip'd kernel image. This is useful for booting
compressed kernel images from flash.

This needs more work, but is a good first-pass.
2002-02-23 05:41:14 +00:00
thorpej 1152fa21da Add some simple standalone device drivers for IOP310-based boards. 2002-02-23 05:12:01 +00:00
uch 43eee13717 fix comment. 2002-02-22 19:56:27 +00:00
uch b1b1f1117b NetBSD/sh3 common part of clock routine. 2002-02-22 19:55:33 +00:00
uch f3b1882035 print MMU infomation. 2002-02-22 19:46:34 +00:00
uch 45407e955f setjmp,longjmp are moved to sh3/locore_subr.S 2002-02-22 19:45:31 +00:00
uch f694c9fdd7 New NetBSD/sh3 clock framework.
+ hardclock source is moved from TMU1 to TMU0.
 + SH3/SH4 common kernel support.
 + PCLOCK estimation.
 + remove duplicated code.
2002-02-22 19:43:58 +00:00
kleink 67678b7c54 Handle the 601's Run Mode/Trace Exception. 2002-02-22 18:50:45 +00:00
thorpej 9d157337f4 Fix the "va" argument to pmap_map_entry() when mapping kernel_ptpt. 2002-02-22 18:25:08 +00:00
thorpej ac5d6ab89f Fix the "va" argument to pmap_map_entry() when mapping kernel_ptpt. 2002-02-22 17:26:36 +00:00
thorpej 37595cfcf8 Fix the "va" argument to pmap_map_entry() when mapping kernel_ptpt.
This happened to work in the IOP310 because the kernel runs VA==PA.
2002-02-22 17:23:13 +00:00
skrll 25133dd770 Pass the VA for kernel_ptpt as the VA to pmap_map_entry 2002-02-22 17:11:59 +00:00
simonb e19a9be04b Note that "addu $x, $y, $0" is a "move" only in 32-bit mode.
XXX: need to revisit this.
2002-02-22 16:18:36 +00:00
ad f5ba8920cf Note that INSECURE is needed for X with a px or pxg. 2002-02-22 16:17:23 +00:00
skrll 7590561ee1 Make sure the kernel_pt_table has the right physical to virtual address
mapping.
2002-02-22 15:57:38 +00:00
kleink 543f1e7a2d Handle the 601's Run Mode/Trace Exception as well. 2002-02-22 13:51:40 +00:00
briggs c31c5df13c Bumb NMBCLUSTER defaults to 2048 for GATEWAY and 1024 otherwise. These
match current powerpc defaults and are more reasonable for the current era.
2002-02-22 06:41:48 +00:00
thorpej 5164bca298 Also generate flat binary kernels for the IQ80310. 2002-02-22 05:07:46 +00:00
thorpej bb84e85802 Change pmap_map_entry() to work like pmap_map_chunk(): take a pointer
to the L1 table and a virtual address, and no pointer to the L2 table.
The L2 table will be looked up by pmap_map_entry(), which will panic
if the there is no L2 table for the requested VA.

NOTE: IT IS EXTREMELY IMPORTANT THAT THE CORRECT VIRTUAL ADDRESS
BE PROVIDED TO pmap_map_entry()!  Notably, the code that mapped
the kernel L2 tables into the kernel PT mapping L2 table were not
passing actual virtual addresses, but rather offsets into the range
mapped by the L2 table.  I have fixed up all of these call sites,
and tested the resulting kernel on both an IQ80310 and a Shark.
Other portmasters should examine their pmap_map_entry() calls if
their new kernels fail.
2002-02-22 04:49:19 +00:00
thorpej 77e3a89912 When reporting there is no VM map for a fault, also report the
faulting address.
2002-02-22 03:24:09 +00:00
thorpej 79738a99e9 Keep track of which kernel PTs are available during bootstrap,
and let pmap_map_chunk() lookup the correct one to use for the
current VA.  Eliminate the "l2table" argument to pmap_map_chunk().

Add a second L2 table for mapping kernel text/data/bss on the
IQ80310 (fixes booting kernels with ramdisks).
2002-02-21 21:58:00 +00:00
enami 60dccae121 Add RCS Id. 2002-02-21 08:23:31 +00:00
thorpej 6d35f61035 In pmap_map_chunk(), if we can't use a section mapping, then
make sure that the L1 slot for the current VA points to an L2
table, and panic if it doesn't.
2002-02-21 06:36:11 +00:00
thorpej d96b0a83af Delete some unneeded comments. 2002-02-21 06:33:05 +00:00
thorpej 15e0450397 Always pass the L1 table to pmap_map_chunk(). This allows pmap_map_chunk()
to perform some error checking.
2002-02-21 05:25:23 +00:00
thorpej 454e106a48 map_chunk() -> pmap_map_chunk(), and move it to pmap.c 2002-02-21 02:52:19 +00:00
thorpej 5aa173cc6b Update for death of arm32. 2002-02-21 02:43:57 +00:00
eeh 93ead6c5e0 Fix pr sparc64/15633: datafault at tlp_start causes panic
Also clean up some additional 32-bit kernel printf issues.
2002-02-21 02:42:27 +00:00
skrll e187e66235 Remove a whole load of non-CATS stuff. 2002-02-20 22:32:10 +00:00
skrll f9d21f3995 Use shell arithmetic as much as possible and reduce the number of times
that awk is used to one.

No functional change.
2002-02-20 21:54:08 +00:00
skrll 2de2e35201 Fix typo in comment. 2002-02-20 20:47:40 +00:00
thorpej 425011f621 map_pagetable() -> pmap_link_l2pt(), and move it to pmap.c 2002-02-20 20:41:15 +00:00
thorpej 75533175a2 Rename to NET4501. 2002-02-20 07:19:50 +00:00
thorpej 889d3fedd3 Sample kernel configuration for a Soekris Engineering net4501
single board computer.
2002-02-20 03:15:35 +00:00
thorpej f777763ab3 * Rename the pxeboot binary from "pxeboot" to "pxeboot_ia32", since
there are other architectures (e.g. IA64) which also use PXE.
* Get the console right in pxeboot, from Andreas Gustafsson.
* Add a "com0" version of pxeboot, to address the same issue that
  biosboot_com0 addresses.
2002-02-20 03:00:27 +00:00
thorpej c44b9117f0 Collapse map_entry{,ro,nc}() into a single pmap_map_entry() that
takes a prot and a "cacheable" indicator.
2002-02-20 02:32:56 +00:00
simonb e0787bd639 Fix a tyop in a comment. 2002-02-20 01:34:19 +00:00
thorpej 9c31f51c34 Rename map_section() to pmap_map_section(), move it to pmap.c, and give it
an extra argument (prot - specifies protection of the mapping).
2002-02-20 00:10:15 +00:00
thorpej 9d6e94072b Bump the default data limit to 32M and the max data limit to 64M.
These are the same values that the hp300 port uses (lesser hp300s
have roughly the same memory constraints as "lesser" vaxen), and
bumping them allows us to run a statically linked ELF groff(1).
2002-02-19 22:44:35 +00:00
thorpej 825d4ec152 Increase the reset delay in ex_reset() as per dev/ic/elinkxl.c
Pointed out by Love <lha@stacken.kth.se>
2002-02-19 20:38:28 +00:00
thorpej dfeaa108c4 Add some comments to make some #if/#else/#endif's more clear. 2002-02-19 20:18:36 +00:00
thorpej 8545d4115b Put the netif driver name in the version banner. 2002-02-19 19:55:01 +00:00
thorpej 1ecb20dd3b Move the individual NIC ROM Makefiles into a subdirectories of
netboot.  Requested by Christos.
2002-02-19 19:49:37 +00:00
briggs acf12a854d Use the MI md_root 2002-02-19 17:41:15 +00:00
uch 5f5cce9adc Clean up function declaration. 2002-02-19 17:22:34 +00:00
uch 1bdc7cc5ca Clean up functions
disable_intr, enable_intr, disable_interrupt, enable_interrupt,
disable_ext_intr, enable_ext_intr.
New functions:
for external interrupt:
_cpu_intr_suspend and _cpu_intr_resume.
for exception:
_cpu_exception_suspend and _cpu_exception_resume.
2002-02-19 17:21:18 +00:00
wiz 37e458fa45 strategy should have an 'r'. Inspired by similar change in OpenBSD. 2002-02-19 17:09:40 +00:00
uch a3757d3ba3 fix LCD byte-order setting. 2002-02-19 14:21:47 +00:00
simonb 2d8577fb83 Clean up some rampant code duplication wrt ieee number handling:
- Add alignment-safe double and float unions.
 - Use the above for the __infinity and __nan constants on all
   architectures that use the standard ieee754 representation of
   those constants.
 - Add a single copy of various ieee754 math functions (frexp, isinf,
   isnan, ldexp and modf) that had numerous duplicates among the
   arch-specific directories.
 - Use the above functions on all architectures where the generic C
   versions where used.  Architectures that had local assembly
   routines are untouched (for those functions only).
2002-02-19 13:08:12 +00:00
matt ae8db582d5 Add code to pass symbol table from loadfile to kernel. 2002-02-18 23:06:14 +00:00
bjh21 984f6cdf94 Revert my last change: GENERIC has more bogons than I'd hoped. 2002-02-18 20:55:55 +00:00
bjh21 ea3b1622e8 Internal prototypes for loads of functions.
Casts in calls to sc_setup_dma and sc_need_bump to match implementations.
__RCSID() while I'm here.
2002-02-18 19:57:09 +00:00
bjh21 c44fd75edb Add prototypes for function pointers in struct esc_softc. 2002-02-18 19:55:01 +00:00
bjh21 432b398217 Add internal prototypes for lots of functions.
Add __RCSID() while I'm here.
2002-02-18 19:22:14 +00:00
bjh21 ff94cc2ad5 Add prototype for getkey_polled(). 2002-02-18 19:05:35 +00:00
bjh21 d4d3aa6468 Add internal prototype for cmd_mouse().
Also __RCSID() while I'm here.
2002-02-18 18:58:47 +00:00
bjh21 eb821c3860 Add a prototype for qms_console_freeze(). 2002-02-18 18:43:55 +00:00
thorpej bf6823b1b5 Don't ask bootp() to put a "PXEClient" Vendor Class Identifier option
in the DHCP request.
2002-02-18 17:01:46 +00:00
bjh21 23b31cf96e My acorn32 kernels now compile successfully without LOOSE_PROTOTYPES. 2002-02-18 16:34:13 +00:00
bjh21 1e6835687e Rename prototype from sysbeep_vidc() to sysbeep() to match definition.
Pull in beepvar.h and vidcaudiovar.h for beep_generate() and
vidcaudio_beep_generate() prototypes.
__RCSID().
2002-02-18 16:23:54 +00:00
simonb b5e0d320af Fix a null pointer dereference if curproc == NULL.
Fixes PR port-i386/15638.
2002-02-18 15:58:02 +00:00
bjh21 2712a10c7c Add a prototype for vidcvideo_config_wscons(). 2002-02-18 14:30:20 +00:00
bjh21 468fff80ed Pull in <arm/arm32/machdep.h> for initarm() prototype.
Change signature of initarm() to match the prototype.
Add prototype for canonicalose_bootconfig().
__RCSID() while I'm here.
2002-02-18 13:53:29 +00:00
bjh21 03357551c5 Add a prototype for asc_dump().
Delete asc_dmaintr(): it's unused.
__RCSID().
2002-02-18 13:19:54 +00:00
bjh21 77046b2b48 Add prototype for sbicdumpstate().
Add in-core RCSID.
2002-02-18 13:15:15 +00:00
bjh21 8a8c12cfc9 Add prototypes for podulebusmatch(), podulebusattach(), podulebusprint(),
podulebussubmatch(), podulechunkdirectory() and podulesncan().
Fix argument types of podulebussubmatch().
Remove podloader_read_region(), since it's not used externally.
2002-02-18 13:11:07 +00:00
bjh21 761157905a Add prototypes to all declarations of function pointers.
Include <arch/arm/iomd/vidcaudiovar.h> for vidcaudio_beep_generate() prototype.
Add in-core RCSID.
2002-02-18 12:55:47 +00:00
bjh21 a06b71e864 Add a vidcaudiovar.h to contain a prototype for vidcaudio_beep_generate(). 2002-02-18 12:52:09 +00:00
bjh21 2aa99b4f12 Include <arch/arm/iomd/beepvar.h> for beep_generate() prototype.
Include <machine/conf.h> for cdevsw function prototypes.
Correct argument types of beepioctl().
Add in-core RCSID.
2002-02-18 12:36:27 +00:00
bjh21 668fc0d2b7 Add beepvar.h, to hold a prototype for beep_generate(). 2002-02-18 12:34:11 +00:00
bjh21 c1f8e3aa21 Comment out vidcvideo_setbase() (it's unused).
Remove vidcvideo_mmap() (it's redundant).
Add in-core RCSID.
2002-02-18 12:23:24 +00:00
bjh21 1a140d2090 Add prototypes for clockhandler() and statclockhandler(), and adjust their
argument types to match other interrupt handlers.
Also minor KNF (add in-core RCSID).
2002-02-18 12:18:26 +00:00
bjh21 40933bf05e Add prototype for yeartoday(). 2002-02-18 12:03:38 +00:00
bjh21 57a6aecd77 Include <machine/conf.h> for cdevsw function prototypes.
Add internal prototypes for hexdectodec(), dectohexdec() and twodigits().
Correct signature of rtcioctl().
2002-02-18 11:59:16 +00:00
bjh21 b5c13de9bf Pull in <machine/conf.h> to get prototypes for cdevsw functions, and correct
the signature of iicioctl() appropriately.
2002-02-18 11:51:57 +00:00
bjh21 216b4f1c81 Add prototypes for dma_reset(), dma_setup(), dma_isactive(), dma_isintr() and
dma_intr().
2002-02-18 11:41:18 +00:00
bjh21 dbc5effbc8 Change signature of dma_intr() to match other interrupt handlers. 2002-02-18 11:40:42 +00:00
uwe b7a9ca77f2 We are using shared headers from dev/ebus now. 2002-02-18 04:55:00 +00:00
uwe e158bed889 Switch to shared EBus headers in dev/ebus. 2002-02-18 04:52:26 +00:00
uwe 8598481f3c Convert to use shared headers in dev/ebus. Move ebus_softc definition here.
Normalize bar field of EBus children PROM "reg" property to be the BAR
offset in PCI config space like on sparc64 when building ebus_attach_args.
2002-02-18 04:50:57 +00:00
bjh21 943c65af59 Add prototype for stray_irqhandler(). 2002-02-17 23:58:35 +00:00
bjh21 490dd78bcc cons_decl(com), to get prototypes. 2002-02-17 23:53:18 +00:00
bjh21 8eb5175b46 Add __RCSID(). 2002-02-17 23:47:56 +00:00
bjh21 63dc353d42 Add prototypes for lpt_port_test() and lptprobe(). 2002-02-17 23:45:29 +00:00
bjh21 ca677d0d06 Add a prototype for linux_syscall(). It should be in a header file, but
other files that refer to it don't know its argument types anyway.
2002-02-17 23:37:18 +00:00
uch f0c9c394ec fix #ifdef condition 2002-02-17 21:02:16 +00:00
uch 000bb38949 SH3/SH4 common kernel support. 2002-02-17 21:01:15 +00:00
uch 6e0794b560 To determine CPU architecture and product, add cpu_arch and cpu_prduct variables.
these are initialized by sh_cpu_init()@sh3/sh3_machdep.c
(see sh3/include/cputypes.h for detail.)
add "options SH3" for SH3 kernel config file.
2002-02-17 20:59:33 +00:00
uch 14bcf8c92a add cache dump 2002-02-17 20:58:35 +00:00
uch a96c1d0e8f change register naming. 2002-02-17 20:58:02 +00:00
uch 70826aa2cd sh_cpu_init() is added. its initialize cache, MMU ops appropriately.
machine locore code call this at first.
2002-02-17 20:57:09 +00:00
uch 780de330ba Add new MMU API. for detail, see sh3/mmu.h's comment. 2002-02-17 20:55:50 +00:00
uch 779bf563f4 ANSIfy. remove #if 0 ... #endif. 2002-02-17 20:53:40 +00:00
uch 615800d782 Fix calling convention. r0-r7 are caller saved. 2002-02-17 20:53:01 +00:00
bjh21 e6e848ef6d Our assembler handles FPA instructions fine, so don't use .word for them. 2002-02-17 20:41:02 +00:00
thorpej 77fa5a7974 Pay attention to the file name provided by the DHCP server, using
it rather than the default of "netbsd" if it's in the reply.
2002-02-17 20:14:08 +00:00
thorpej 76ea45942b Cleanup of i386 bootloader building:
* Add separate directories for the individual netboot ROMs and
  always build them.
* Each bootloader Makefile explicitly specifies the start file
  and link address it wishes to use.
* genprom becomes a proper host program.
* Make sure all generated files get cleaned up.
* Set BINDIR in Makefile.inc
* Add compressed image support to pxeboot.
* Make pxeboot use the default serial console speed (9600).
2002-02-17 20:03:05 +00:00
bjh21 cb7a3d0674 ANSIfy, and othe KNF cleanup. 2002-02-17 19:53:44 +00:00
thorpej 45f23105c2 Make this compile again (update for changes to register bit names). 2002-02-17 19:49:58 +00:00
thorpej bb1c9c42fa Update for new location of the WD80x3 register description. 2002-02-17 19:47:41 +00:00
veego f12a3476e0 Add a missing ) from an 6 year old cleanup commit (rev 1.10):
s/sizeof(struct mfcp_softc,/sizeof(struct mfcp_softc),/
Noticed by Nagilum on irc.
2002-02-17 19:26:37 +00:00
thorpej 49cec2b141 * Remove a debug-breakpoint that is no longer needed.
* Move the pxe_init() call to when we open the virtual netif.
* Make sure to call pxe_fini() when we close the virtual netif.
2002-02-16 16:52:10 +00:00
thorpej 0aec9f6508 Need private copies of these files for now. 2002-02-16 16:26:23 +00:00
christos c8e246669c save cr2 for the benefit of linux emulation, and normalize use of pcb
in trap(), i.e. always initialize *pcb and use it instead of doing it
sometimes.
2002-02-16 16:22:03 +00:00
skrll 9e98a7e93d Enable ep* at pci here also. 2002-02-16 15:47:10 +00:00
mycroft 22d8cbc4f9 Make this build without akbd (again). 2002-02-16 08:30:27 +00:00
shin febef53a9c run cached and move fast.
before	5 seconds
	after	sub second
2002-02-16 05:26:02 +00:00
christos a7986989e7 Improve on fault signal translation. Inspired largely by Robert V. Baron's
wabi patch.
2002-02-16 05:19:26 +00:00
thorpej 8bb2be2987 Add a PXE boot loader. PXE interface code is derived by code
written by Alfred Perlstein, Paul Saab, John Baldwin for FreeBSD.

Still needs some work, but this will load a kernel on a Soekris net4501.

Many thanks to Frank van der Linden and his simulator wizardry for
helping me debug the low-level startup code.
2002-02-16 03:37:39 +00:00
nathanw 382c2e0513 Add a bunch of PNP ID strings that are apparantly for the ESS chips.
Snarfed from a Microsoft document.
2002-02-15 22:06:50 +00:00
reinoud 309c1facde Create a .zip file next to the .tar file special for those Acorn folks who
can download a free unzipper but dont have access to a .tar.gz file.
2002-02-15 21:49:40 +00:00
is 92a181b637 Move Amiga PORT to ELF and new toolchain. Still missing:
support in UPGRADE to move old shared libs to /emul/aout
2002-02-15 21:28:03 +00:00
skrll 45a18d6ff2 Remove redundant mov instruction.
OK'd by Matt Thomas <matt@netbsd.org>
2002-02-15 17:05:20 +00:00
simonb 4a188395df Make the ddb_regs declaration an extern in db_machdep.h and declare it on
db_interface.c.
2002-02-15 07:32:34 +00:00
bjh21 561984015b Undo part of rev 1.8: SWP intructions really do both read and write
the referenced address.
2002-02-14 11:59:26 +00:00
bjh21 44aa53a31d Undo part of rev 1.42:
SWP instructions really do both read and write the referenced address.
2002-02-14 11:54:16 +00:00
bjh21 2470f8172a Since core dumps are useful on arm26 now, don't bother dropping into DDB on
user-mode faults, even in DEBUG kernels.
2002-02-14 11:49:15 +00:00
chs b744097a5f allow writing to write-only mappings. fixes PR 3493. 2002-02-14 07:08:02 +00:00
briggs b72d845476 Actually set the i80312_softc global. 2002-02-14 02:38:22 +00:00
rjs 9134bf2610 Add Cotulla CPU IDs. 2002-02-14 01:37:20 +00:00
wrstuden 3a971f756f Make this work with the dependall target.
Pointed out by Christian Groessle on port-macppc, and patch suggested bu
Izumi Tsutsui.
2002-02-13 17:52:08 +00:00
is 5673052159 Add missing register prefix. 2002-02-13 16:34:05 +00:00
uch c0a13ed2e4 add LCD debug routines. 2002-02-13 16:25:32 +00:00
is 3372ef2e8e move ELF32 to std.amiga 2002-02-13 12:08:57 +00:00
shin 3b759dd825 initialize stack pointer. 2002-02-13 12:02:49 +00:00
gmcgarry 4c43f7cf1a Bump ramdisk to 2MB. 2002-02-13 06:02:46 +00:00
martin 1b4393c5db Cast/format fix to make this build on 32bit kernels. 2002-02-12 20:50:47 +00:00
scw 5bd17a1271 Separate out devices common to many Motorola mvme boards (68k, 88k and ppc)
in preparation for future mvmeppc and mvme88k ports.

This needs a bit if tidying up to make it trully shareable, which will
happen as the new mvme ports are added.
2002-02-12 20:38:09 +00:00
reinoud 6dc9bb6c37 Forgot to remove the include file for the COMPAT_OLD_BOOTLOADER option i
removed.
2002-02-12 19:21:36 +00:00
uch b3f7b11fe7 ANSIfy KNF. 2002-02-12 15:26:45 +00:00
reinoud c68fc4c05d Get rid of the verbose flag ... this only clobbers the output. 2002-02-12 13:03:43 +00:00
skrll 1857cb5f00 Enable ep* at pci?
OK'd by Chris Gilbert <chris@netbsd.org>
2002-02-12 09:11:45 +00:00
thorpej cd98cbf7fb * For platforms which are already ELF, remove the definition of
MACHINE_ARCH since <arm/param.h> already sets it correctly to "arm".
* For platforms which are not yet ELF, defined MACHINE_ARCH to "arm32"
  if __ELF__ is not defined by the C preprocessor.
* In <arm/param.h>, clarify the rules about when MACHINE and
  MACHINE_ARCH are defined, and to what.  Also, for ELF platforms,
  int the non-_KERNEL case, force both MACHINE and MACHINE_ARCH to "arm",
  rather than allowing platform-specifc code to define either.
2002-02-12 06:58:18 +00:00
thorpej b55703254f Use sys/dev/md_root.c 2002-02-12 00:50:12 +00:00
thorpej dbb80edc9d Trim some fat:
* COPTS get -Os
* Comment out all COMPAT_* options
* Comment out System V IPC options
* Comment out KTRACE, IRQSTATS, KMEMSTATS, DIAGNOSTIC
* Comment out unneeded devices (audio, joystick, vnd, sequencer)

...and bump the ramdisk size to 3.5M (ELF binaries are somewhat
larger on-disk due to the way the linker pads out the .data program
section).
2002-02-12 00:49:40 +00:00
reinoud bff769a5fc The 4Mb sure was too little to boot the installation sets.... 2002-02-12 00:29:55 +00:00
kleink 02530a3ece When enabling hardware interrupts at the end of cpu_startup(), splhigh()
cannot be used to mask them off for deferred processing as autoconfiguration
hasn't even started and thus the IPL_HIGH mask hasn't been calculated yet.

Instead, set the current mask manually to all-masked using splraise().
2002-02-11 23:01:37 +00:00
reinoud 8a3a4890b3 Update the bootloader extraction program to be more friendly and to provide
a way to include the bootloader in the release structure

XXX it needs to honour DESTDIR one day
2002-02-11 22:12:22 +00:00
reinoud 9ca7566eb9 The COMPAT_OLD_BOOTLOADER flag can go now since BtRiscBSD is no longer
suported due to ELF transition.
2002-02-11 21:48:46 +00:00
reinoud 6dae5d0659 Cleanup the settype script and dont forget the `howto' files for UnixFS 2002-02-11 19:32:02 +00:00
uch 06d80c8f0f change kernel start address 0x80030000 to 0x80001000 2002-02-11 19:10:29 +00:00
reinoud f4bbd8d351 Remove old BtNetBSD.old bootloader... its obsolete and might be accidentaly
pulled in one time.
2002-02-11 19:02:37 +00:00
reinoud f80d729bf3 Commit of BtNetBSD version 0.99 : new bootconfig implemented in the
bootloader that also allows ELF symbols to be read correctly as well as
still having the posibility to boot older kernels with the `oldkernel'
option.

There is now support for upto 32 blocks of DRAM and a 16 blocks of VRAM.
Also preliminary support for specifying Mode Defintion Files (MDF) to the
kernel.
2002-02-11 19:00:07 +00:00
uch 7f6769e315 wrap #ifdef SH4 2002-02-11 18:55:16 +00:00
reinoud 11982f07b9 _important_ : the old BtRiscBSD compatibility has been put to rest... this
means that kernels from now on are not bootable by !BtRiscBSD but only with
!BtNetBSD.

Big initial commit for a new cleaned up and extended bootblock style. This
patch also allows ELF symbol tables to be read when the patches on the
bootloader are commit but will work fine with the older bootloader.

An extra option `oldkernel' will be provided in the newer bootloader to
pass out old style bootconfig's thus enabling old style kernels to load and
function.

Tested on a.out and ELF (preliminary) kernels with both older and new style
bootconfig blocks.
2002-02-11 18:47:36 +00:00
uch 26c1382e72 sync with PTE bit change. 2002-02-11 18:06:34 +00:00
uch 9487e1d731 change PTE PG_* bit define to support SH4 PCMCIA space attribute fully.
for detail, see pte.h.
2002-02-11 18:06:06 +00:00
uch 32f2c6e61f clean up redundant PTE PG_* defines.
PG_RO     -> PG_KR
PG_RW     -> PG_KW
PG_u      -> PG_URKR
PG_PROT   -> PG_UW
PG_AVAIL1 -> PG_PVLIST
2002-02-11 18:05:17 +00:00
uch 6a86080d84 add useful macro for running P2, P1 area. 2002-02-11 18:04:24 +00:00
uch de4d07e475 add defines 2002-02-11 18:03:48 +00:00
uch e63a9777b2 add new cache routine. 2002-02-11 18:03:05 +00:00
uch 03487ed5cb machine tlb command print PFN with AREA number. 2002-02-11 17:50:17 +00:00
uch 54dd82020c recompile 2002-02-11 17:45:53 +00:00
uch 4dff96d2d9 SH4 support. my target is HITACHI PERSONA HPW650PA 2002-02-11 17:32:35 +00:00
uch dca6104509 hpcsh spcific console defines are moved to console.h 2002-02-11 17:30:44 +00:00
uch b67fd34c0f HD64465 interrupt, uart, pcmcia modules 2002-02-11 17:27:15 +00:00
uch d310eb6303 MQ100 (HD64464) register, framebuffer offset define. 2002-02-11 17:25:00 +00:00
kleink 4691174484 Move the declaration of pci_conf_hook down to <machine/pci_machdep.h>;
a port may choose to implement it not as a function but i.e. as a
pci_chipset_tag_t function vector.
2002-02-11 17:24:00 +00:00
uch 400b507277 add more debug message 2002-02-11 17:22:39 +00:00
uch f27eb3ee07 add primitive serial console debug routine. 2002-02-11 17:21:48 +00:00
uch 12d7b235bc {} -> do {} (0) 2002-02-11 17:20:18 +00:00
uch c8a89ad160 KNF 2002-02-11 17:19:04 +00:00
uch c06011471e enable KLOADER, PIPE_SOCKETPAIR 2002-02-11 17:18:35 +00:00
uch 3cde195353 add reset method. 2002-02-11 17:13:28 +00:00
uch f8bc44a14f add dbg_bit_print_msg define 2002-02-11 17:11:48 +00:00
uch acb09f9887 totaly clean up SH3/SH4 related code 2002-02-11 17:08:54 +00:00
uch 984e019350 fix memory size estimation. add error check code. 2002-02-11 17:05:45 +00:00
uch 587d245cb8 change debug printf method. 2002-02-11 17:01:09 +00:00
takemura 47c249a13d Added Vr4122 and Vr4131 support to GENERIC configuration. 2002-02-11 11:44:36 +00:00
wiz 9baadd8ee5 "doesn't" should have an 's'. 2002-02-11 11:19:26 +00:00
wiz f78eb76cbe achive is not a good word. 2002-02-11 10:57:57 +00:00
wiz 66df0333a1 s/seperate/separate/ 2002-02-11 10:44:38 +00:00
takemura 38e509404e Added vr4122ip. 2002-02-11 09:21:46 +00:00
skrll 88279a037a We're not arm32 we're acorn32. 2002-02-11 08:28:16 +00:00
takemura c9d2bee505 Removed vr4102ip_probe to reduce kernel size. 2002-02-11 08:15:41 +00:00
takemura 9f66659cfb Added vr4102ip. 2002-02-11 07:55:49 +00:00
thorpej ea83097308 Sync the commented-out subdir list with reality. 2002-02-11 06:51:27 +00:00
takemura 9396668add Tweaked register access without register offset macro. 2002-02-11 04:56:27 +00:00
takemura 3ef102554d Fixed dma register sizes. 2002-02-11 04:35:54 +00:00
takemura 9f2314954a Added DMA Address unit and DMA Control unit. (not tested) 2002-02-11 04:33:22 +00:00
thorpej c71d1b0307 Don't pass -mno-pic if we're using ELF. 2002-02-11 00:25:19 +00:00
reinoud 4ec25a3335 Use `booted_kernel' instead of the `boot_file' variable. 2002-02-10 23:01:45 +00:00
thorpej f7d5e6da06 Remove blkclr() and blkcpy(); similar routines have been added to
libkern.
2002-02-10 22:06:45 +00:00
thorpej 30bdf5c12e * Add __unused__ attribute to inline functions.
* Call __blkclr() and __blkset() as appropriate.
2002-02-10 22:06:12 +00:00
is 725d029d19 Remove INSTWDCPCM, because for a while now, GENERIC (and INSTALL) have
included both pcmcia support, and wdc instead of idesc as the driver for
the Amiga internal ATA connector.
2002-02-10 20:43:33 +00:00
wiz f7d9c1c5ff s/dnard/shark/ 2002-02-10 18:28:12 +00:00
chs 1bd3ec1b86 add "-m68030" for sun3x, addresses PR 15312. 2002-02-10 18:22:31 +00:00
wiz 3cc2ef9997 Update description for icsphy. 2002-02-10 17:36:52 +00:00
mrg bf06edf092 give splode 8 raid devices 2002-02-10 15:49:39 +00:00
takemura 836a4742ac Fixed locater id -> platform. 2002-02-10 15:17:24 +00:00
takemura 3b60ef2391 Fixed locater id -> platform. 2002-02-10 15:17:20 +00:00
sato 88b86c9804 fix ONLY_4122_4131 2002-02-10 15:09:32 +00:00
takemura b38c963272 Made vr.c compilable without SINGLE_VRIP_BASE macro. 2002-02-10 14:38:57 +00:00
sato 24db74be12 fix miss changing. 2002-02-10 14:36:52 +00:00
takemura 90888496a2 Made rtc.c compilable without SINGLE_VRIP_BASE macro. 2002-02-10 14:15:32 +00:00
takemura d5cf5c95e8 Made vrgiu.c combilable without SINGLE_VRIP_BASE macro. 2002-02-10 13:47:06 +00:00
takemura 85e0e861bf Added base address table to compile without SINGLE_VRIP_BASE macro. 2002-02-10 13:23:55 +00:00
reinoud a74d22be50 Add some extra comments for the `booted_kernel' variable. 2002-02-10 13:20:26 +00:00
chris 882addcbd3 Fix a potential boot failure, we need to make sure that the pt's used for the kernel mapping are contiguous otherwise map_chunk etc could overwrite the L1 table. 2002-02-10 13:19:27 +00:00
chris a73dabb4b1 Following the demise of arch/arm32 update cats, and restore the isa files to a more sane location.
Also fix build break on GENERIC cats kernel, seems that conf.h should have been including arm/conf.h.

This completes the removal of arch/arm32.
2002-02-10 12:26:00 +00:00
chris 851adbbffd Change reference from arm32 to cats in printf, pointed out by wiz. 2002-02-10 11:31:47 +00:00
tsutsui 16ef83d9ba Use MI md_root.c. CATS port does not support fdc (yet) anyway. 2002-02-10 10:41:34 +00:00
tsutsui 8393f637ec Remove unused defflags. 2002-02-10 10:37:52 +00:00
kleink 618dddf12f Fix RCS Id. 2002-02-10 09:29:19 +00:00
thorpej 18c88948c1 Bring over a couple of files from arch/dnard that will be useful in
the future.
2002-02-10 07:07:07 +00:00
thorpej d24d4e6e80 This directory is obsolete (and will probably be deleted from the
CVS repostory altogether).
2002-02-10 02:11:13 +00:00
thorpej 9e2f34c62e Add an entry for:
Digital Network Appliance Reference Design (pronoucned "Shark")
2002-02-10 02:09:45 +00:00
thorpej fa2f3c9fee Forgot to add this file. 2002-02-10 01:59:34 +00:00
thorpej 8067595564 Kill arch/arm32. The last platform supported there, Shark, is now
in arch/shark.

(NOTE: arch/dnard, a premature move to split out the Shark support
code, is going to be deleted.  It has bit-rotted.)
2002-02-10 01:53:06 +00:00
gmcgarry 9be34a7e49 Up-to-date kernels for installation media. 2002-02-10 01:07:55 +00:00
gmcgarry 839f3d5b8f Don't need these. 2002-02-10 01:06:32 +00:00
kleink db6b1776e2 prep_intr_reg is mapped in kva space, so make it vaddr_t. 2002-02-10 00:54:39 +00:00
reinoud 8843d04234 Please only return errno values !!! ... also doing a bit of KNF'ing 2002-02-10 00:53:28 +00:00
gmcgarry d934377152 Implement DIOCGDEFLABEL ioctl. 2002-02-10 00:49:57 +00:00
gmcgarry 0b0cdf630f Some assemblers will optimise addresses within .text into pc-relative
references.  Bogus for our MMU trampoline code which is relocated to
the last physical page before being invoked.  This hack enforces all
addresses wrt the MMU trampoline code not to be pc-relative.
2002-02-10 00:47:59 +00:00
gmcgarry 70d5890284 Use LIST_INSERT_HEAD() to access the head on the interrupt list. 2002-02-10 00:42:15 +00:00
gmcgarry 25a639e366 Also don't print \n without DIAGNOSTIC. 2002-02-10 00:41:21 +00:00
reinoud 2082d60338 We don't need to include "footbridge.h" 2002-02-09 23:58:30 +00:00
chs 63e29ad187 in LKM context, skip a bunch of unnecessary stuff that doesn't compile there. 2002-02-09 20:01:34 +00:00
chs 679d8cbfdc define the sun3-only bits all the time, helps when building LKMs. 2002-02-09 19:42:31 +00:00
sato fad7e32235 add vr4181 giu unit register definitions. 2002-02-09 18:08:44 +00:00
kleink 11402be7a5 Header for the 601's I/O Controller Interface Address Translation
segment register format.
2002-02-09 17:44:40 +00:00
sato 86f2021f79 access GIUIOSEL_REG and GIUINTEN_REG
only if these registers are not GIU_NO_REG_W.
2002-02-09 15:00:40 +00:00
sato a96c83ebbb change NO_REG_W to ICU_NO_REG_W. 2002-02-09 14:54:05 +00:00
sato f13492fb26 RTC_NO_REG_W unsigned 2002-02-09 14:47:57 +00:00
chris 0a162278aa Move the arm32/pci files into the cats dir. AFAIK these files are only used by cats. 2002-02-09 12:14:01 +00:00
chris 2ba81d8c9c Update elf2aout to cope with infile and outfile being the same.
Make the cats a.out kernel be called netbsd.  This means that make install installs the correct kernel
2002-02-09 11:53:58 +00:00
chris 551471e419 Restore the other files needed for cats build, should really move these elsewhere. 2002-02-09 11:43:27 +00:00
skrll 3f587bd84e Bring this file back as it is needed by CATS, atm. 2002-02-09 11:03:55 +00:00
lukem 971861de37 use ${INSTALL_FILE} as appropriate 2002-02-09 09:35:59 +00:00
eeh 48198ba7ca Fix microsecond calculation in microtime. 2002-02-09 05:01:39 +00:00
eeh c068b28bac Increase NMBCLUSTERS. 2002-02-09 04:58:53 +00:00
eeh c42bdc6b14 Correctly take into account the satck bias in CLKF_INTR(). 2002-02-09 04:50:13 +00:00
thorpej e01bd95698 * The Npwr only has 5 interrupt sources, all in XINT3, so don't bother
reading XINT0 (which isn't even implemented by the CPLD on Npwr).
* Adjust the mask of valid IRQ bits for the Npwr.
2002-02-09 03:52:31 +00:00
thorpej 727b4699ce The Npwr has a 19-bit timer. Make sure values programmed into
the counter fit.
2002-02-08 23:50:53 +00:00
eeh 424177d21b Provide more info in psycho_ue. 2002-02-08 20:04:14 +00:00
eeh bfba946595 Handle the case where a DMA operation wraps from the end of a page to the
beginning of the same page properly by double-mapping that page.
2002-02-08 20:03:45 +00:00
uwe 7948c19410 Cosmetic changes: clean up debugging ifdefs and use consistent wording
in panic messages.
2002-02-08 13:10:42 +00:00
chris fbc89911ed Fix location of some headers, IPAQ kernel now manages to make depend. 2002-02-08 10:37:16 +00:00
gmcgarry 787dd8e0e3 Enter DDB on break if console. 2002-02-08 07:26:16 +00:00
gmcgarry dad6eb472b Remove old, custom files. 2002-02-08 06:17:03 +00:00
uch b3308f4d3d TLB dump command added to DDB 2002-02-08 06:12:00 +00:00
uch da20ab3589 add SH3/SH4 namespace free defines. 2002-02-08 06:11:38 +00:00
uch 66510b76a9 add SH-internal memory mapped register access method. 2002-02-08 06:11:16 +00:00
thorpej 9716a068b6 * No need to specify the console speed anymore; it defaults to the
correct speed if IOP310_TEAMASA_NPWR is defined.
* Just wildcard the "wm" and "siop" devices.
* Comment out raid and ccd for now.
2002-02-08 03:43:41 +00:00
thorpej 66c81951ae Default the console to the correct speed on the Npwr (so that
it doesn't have to be set in the kernel config file).
2002-02-08 03:41:56 +00:00
briggs efca4d520d Wire the internal devices to the right interrupts on NPWR. 2002-02-08 03:28:24 +00:00
thorpej 987cb42a95 No point in setting the ATU Subsys vendor/dev ID on boards that
can't plug into a PCI host.
2002-02-08 02:31:12 +00:00
thorpej 367a9543a7 The Npwr doesn't have the board_rev/cpld_rev/backplane_det registers,
do don't bother reading them.
2002-02-08 02:30:12 +00:00
jmcneill a7ff227011 Wups, forgot to add it to some other kernel configs as well. 2002-02-08 01:49:33 +00:00
jmcneill f7c49dc7e6 Add another pcic at isa attachment. This enables the top PCMCIA slot on
my AST Ascentia 910N, and closes port-i386/11797
2002-02-08 01:47:59 +00:00
briggs 6331bb5b24 Let this compile with the IOP310_TEAMASA_NPWR option. 2002-02-08 01:42:41 +00:00
briggs 07ec97aeba finish conversion from TEAMASA_NPWR to IOP310_TEAMASA_NPWR 2002-02-08 01:41:48 +00:00
eeh 4daea20c93 Move a brace so this will compile w/o DEBUG. 2002-02-08 00:47:04 +00:00
thorpej 140c8fe847 Don't hard-code the console address in error messages. 2002-02-07 23:53:01 +00:00
tv e716d57285 Don't spew so much to the console without DEBUG. 2002-02-07 23:23:29 +00:00
eeh d3d818a6f4 Fix register allocation in microtime(). 2002-02-07 22:23:01 +00:00
eeh 6390142ec0 Make bus_space_barrier() an inline instead of a function vector. 2002-02-07 21:36:54 +00:00
eeh 92ef550481 Overhaul iommu_dvmamap_load_raw(). 2002-02-07 21:35:26 +00:00
thorpej 2b9837b4d9 Add support for the Team ASA Npwr IOP310-based server appliance. 2002-02-07 21:34:23 +00:00
uch b4156f9314 fix # of page directory entry. 2002-02-07 17:06:00 +00:00
uch 6b71166f4e add missing cache flush code. 2002-02-07 17:05:22 +00:00
briggs 9827f27b9f Update from thorpej:
* Define type and size of _mcount stub to make PIC code happy.
* Rename mcount to __mcount to get it out of the user namespace.
2002-02-07 05:13:35 +00:00
ross 5014982b5b add ess0 2002-02-07 02:16:04 +00:00
jdolecek 104f7c34d6 joyvar.h is now at <dev/ic/joyvar.h> 2002-02-06 21:32:16 +00:00
thorpej d17cc4f043 * Move some generic ARM OpenFirmware stuff into arch/arm/ofw (still
more can move, but not yet).
* Garbage-collect some cruft from arch/arm32 in preparation for
  renaming to arch/shark.
2002-02-06 21:30:25 +00:00
kleink 3b7a9506f7 Printf the 601's HID0. 2002-02-06 20:00:48 +00:00
thorpej 690f10fea7 Use arm/conf/Makefile.arm, and add support for building ELF kernels
and converting them to a.out.
2002-02-06 19:59:41 +00:00
kleink 69e30815cf Add a printf bitmask for HID0. 2002-02-06 19:59:30 +00:00
thorpej c9a1155bcf Adjust for new location of elf2aout.sh, and echo the command before
executing it (like we do for other commands).
2002-02-06 19:59:01 +00:00
wiz 2e56fbc7e0 Another <tab> -> <sp><tab> noted by Patrick Welche. 2002-02-06 19:58:02 +00:00
thorpej 5113cbfb17 A slightly cleaned up version of chris/nick's elf2aout.sh for ARM
platforms.
2002-02-06 19:54:47 +00:00
thorpej da13cb2fb5 Back out all the vm_page_md changes. They are causing some
mysterious problems (a similar change to the i386 pmap causes
mysterious problems there, as well), and the issue needs to
be investigated more.
2002-02-06 17:41:42 +00:00
thorpej 4611193917 Efficiency tweaks, some made possible by vm_page_md. 2002-02-06 17:32:35 +00:00
kleink 8785df9eae Oops, typo in previous, too. 2002-02-06 12:26:02 +00:00
kleink ec9a0b843e * Fix typos and misusage !PMAP_MAP_POOLPAGE mb_map allocation.
* Use pmap_kenter_pa() for mapiodev().
2002-02-06 12:24:48 +00:00
chris ffd3311a48 LINKADDRESS != LOADADDRESS, so fix that typo.
Also move the elf2aout conversion to be last in the build sequence, this means that strip is run on the elf kernel.
Also have dbsym run on the kernel, this should allow us to have symbols in the kernel.
This now means kernels boot and run, and can also have ddb symbols.
2002-02-06 00:55:56 +00:00
fredb 554e7c4e9d Forgot one -- `options COMPAT_15'. 2002-02-06 00:48:53 +00:00
fredb 69538a48bf Update the GENERIC and GENERICSBC kernels to conform to current fashion:
- - Disable `options DIAGNOSTIC' by default, as the checks are reported to
    be not really cheap.
- - Add `options COMPAT_AOUT_M68K', commented out, in preparation for ELF.
- - Remove `options EXEC_ELF32' from the kernel config. You can't just
    build an ELF kernel -- you need to update your toolchain, and then,
    once you go ELF, it's not an option, so it needs to go in std.mac68k,
    as on the other m68k ports.
- - Comment out `options COMPAT_SUNOS'. This hasn't been reported to work
    for a long time, so it's not very useful in GENERIC.
- - Enable `options IPFILTER_LOG', to go along with the `options GATEWAY'
    and `pseudo-device ipfilter' motif.
2002-02-06 00:45:53 +00:00
thorpej 58eebd58b3 Use vm_page_md rather than pmap_physseg. Saves lots of cycles in
common operations.
2002-02-05 21:14:36 +00:00
kleink cd6a8bc27c Add MPC601 MQ and RTCU/RTCL SPRs. 2002-02-05 19:49:17 +00:00
thorpej 9485327397 Allow platforms to use an extra level of indirection for FIQs,
enabled by definining __ARM_FIQ_INDIRECT in <machine/types.h>.
This is needed for OpenFirmware systems (like the Shark), where
the OFW vector page is used, and kernel entries merely patched
into it.
2002-02-05 18:26:07 +00:00
reinoud fe0ecbaede At last enable the real time clock again on acorn32 !! thanks a lot to Mike
Pumford for the patches.
2002-02-05 14:36:35 +00:00
pk ae36e0e350 bootpath_build(): parse boot path correctly if the boot device arguments
consists of more than one character (we still pay attention to the first
argument character only).  From bt@csfps.de; PR#15495.
2002-02-05 13:54:39 +00:00
thorpej 90544559d3 Don't put `frompc' into a0 in the delay slot of the __mcount
call; `jal __mcount' might be expanded by the assembler, and
thus a bogus `frompc' value could be passed.
2002-02-05 07:12:20 +00:00
eeh e16b1e8bf6 Add a sound driver for Blade 100s (which doesn't seem to do much. All I
get is the sound of silecne.)
2002-02-05 01:55:49 +00:00
uch c6bcb69ec7 recompile 2002-02-04 17:41:37 +00:00
uch 2e968e7e37 SH4 and HD64465(SH4 companion chip) serial console support. 2002-02-04 17:38:26 +00:00
uch e79ccc5b22 enable PERSONA HPW650PA 2002-02-04 17:33:08 +00:00
uch 8484a699cd add CacheSync() WinCE(2.10 or later) API declaration. 2002-02-04 17:32:36 +00:00
uch 7758e1728a smart debug message. 2002-02-04 17:32:02 +00:00
uch c154e13e2c change system information print. remove ExtEscape (WinCE API) test. this was not useful. 2002-02-04 17:31:34 +00:00
uch 45ac5fbf94 correct file opening mode. CreateFile(_filename, GENERIC_READ, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); 2002-02-04 17:31:05 +00:00
uch d7868a7885 HITACHI HD64465 UART module register define. 2002-02-04 17:23:44 +00:00
nonaka 5d557da31c s/asm/__asm__ volatile/ 2002-02-04 16:17:36 +00:00
pk 3ae8fa4104 Rename `esym' to `kernel_top' and always initialize it in locore from
the information provided by the loader if possible (defaulting to `end').
If the DDB symbols aren't needed, `kernel_top' is adjusted in
autoconf:bootstrap() before calling pmap_bootstrap(). It will also
preserve the bootinfo data (if passed by the loader) for non-DDB kernels.
2002-02-04 08:36:36 +00:00
thorpej 0cc39d8d8a Need <bsd.own.mk> to use ${MACHINE_CPU}. 2002-02-04 08:35:27 +00:00
thorpej 462fa41153 * Make this lint'able.
* Reduce some code duplication.
2002-02-04 08:34:27 +00:00
thorpej 87c05210dd Fix for ELF + __NO_LEADING_UNDERSCORES__. 2002-02-04 08:33:34 +00:00
thorpej 2685463c0e Use ${MACHINE_CPU} to assign ARCHSUBDIR. 2002-02-04 00:24:14 +00:00
thorpej 74cd9f1058 In setregs(), pass PS_STRINGS in r9. 2002-02-03 22:28:09 +00:00
darrenr 0d5f0d9024 * add machdep.booted_device and machdep.boot_args (both fetched from
appropriate PROM variables).
* return "netbsd" for machdep.booted_kernel if the PROM doesn't return us a
  kernel name.
2002-02-03 14:10:02 +00:00
dbj ecf4398451 increment uvmexp.traps on entry to trap() 2002-02-02 22:02:00 +00:00
manu 97db5a818c Added errno translation for non native OSes emulation (IRIX, Linux, Ultrix) 2002-02-02 20:28:59 +00:00
gson fe2fc5699c Fix the bcea redefinition issue in a different way: instead
of removing the duplicate variables, make sure that any duplicate
variable that has an initial value in libsa also has an initial
value here; this keeps the linker from pulling in the libsa
definition.
2002-02-02 18:53:12 +00:00
jdolecek f32b3f4f89 Reduce the massive code duplication regarding joy(4). Split it into
MI and MD parts, and make ISA/ISAPNP/PCI joy(4) attachments MI.
2002-02-02 18:37:38 +00:00
drochner 711fef427b install intr.h 2002-02-02 12:27:01 +00:00
takemura 6929f9f471 Removed __vrcmu_supply() and __vrgiu_out(), which are need to enable serial
port before auto configuration.

Boot loaders (pbsdboot and hpcboot) are responsible to enable the port because
the kernel can't enable serial port for console any more.
2002-02-02 10:50:08 +00:00
uch 7caec24d41 bootinfo.h, config_hook.h, platid.h are moved to hpc/include 2002-02-02 05:31:56 +00:00
gmcgarry b7ac65ebe2 Use pmap_kenter_pa() for msgbuf 2002-02-02 04:17:37 +00:00
thorpej 02d97c5caf G/c FIQ stuff. 2002-02-01 22:27:12 +00:00
wrstuden 0dd5e345ea Check in machinery to make ofwboot load at 600000, while ofwboot.elf
and ofwboot.xcf will load at 640000. The idea is that we can now
leave load-base at 600000, and it will work right for all three methods.

The problem is that the file loader and the net loader use load-base
as a scratch area, so if the executable really wants to load there,
the load fails.
2002-02-01 18:45:29 +00:00
uch 6edf1a4018 bootinfo.h, config_hook.h, platid.h are moved to hpc/include 2002-02-01 18:16:03 +00:00
uch 4202622d3c if PCLOCK isn't setted, use estimated value calculated by kernel. 2002-02-01 17:52:54 +00:00
wiz 706b8b345a Do '<sp><tab>' instead of '<tab>' for some RAID options.
Noted by Patrick Welche in private mail.
2002-02-01 15:17:04 +00:00
reinoud 4ffbd975dc Oeps... boot_file was needed after all ... weird 2002-01-31 22:46:40 +00:00
chris ec20568993 If TOOLDIR is not set just use the standard objdump and size commands. Also check that there is a netbsd file. chmod the output netbsd file, and display the size info for it. 2002-01-31 21:50:06 +00:00
reinoud c8f5e8e49c Initial `machdep.booted_kernel' support as a string flag on the boot
arguments since otherwise RiscOS file names must be parsed.
2002-01-31 21:01:40 +00:00
tv 805ab35e68 Make it possible for uudecode to be a host tool. 2002-01-31 19:15:23 +00:00
christos 6c041e0dc7 Frederic Bruckman spotted a missing _C_LABEL. 2002-01-31 18:03:44 +00:00
uch 9455834f75 update MINYEAR 2002-01-31 17:57:43 +00:00
uch ace35e63ce clean up header file. 2002-01-31 17:56:33 +00:00