Commit Graph

31468 Commits

Author SHA1 Message Date
rjs 9646735a82 Enable CPU_CLASS_SA1 for SA1100 and SA1110. 2002-05-02 22:57:36 +00:00
rjs 2aae453976 Make it compile when VERBOSE_ARM32 is defined. 2002-05-02 22:47:09 +00:00
mycroft 47c99ba59e Fix off-by-one error in delay(). 2002-05-02 22:01:46 +00:00
rafal ab8f2fbc01 Add interrupt counter for Seeq interrupts; also, make sure to reset back to
"recieve only my frames & broadcasts" and clear the ALLMULTI flag if we have
no multicast addresses in our list.
2002-05-02 20:31:19 +00:00
rafal 1a73d72d3b If we handle multiple events from the zs chip in one interrupt, don't count
that as multiple interrupts.
2002-05-02 20:26:49 +00:00
wiz 851d26f9a9 Make sure the machine symlink is there in the dependall step. 2002-05-02 18:54:32 +00:00
wiz aa4109feb4 Add machine symlink to CLEANFILES. 2002-05-02 18:35:02 +00:00
wiz 8015e58333 Since loadfile_machdep.h isn't installed anymore, link the mmeye include
directory into ${.OBJDIR} and find the header file there.
2002-05-02 18:30:46 +00:00
rafal e65d64e370 Since we don't have code to drive the L2 cache on R4600/R5k processors,
disable the L2 cache so at least things work (albeit more slowly) on
the SC versions of those chips.  Tested on a R4600 Indy and a R4400
Challenge S.
2002-05-02 18:00:40 +00:00
wiz f7a47b635a Remove #ifdef RC7500 defines. 2002-05-02 17:25:31 +00:00
thorpej efb8222642 Fix error reporting in the bus_dmamap_load_mbuf() routines. 2002-05-02 16:50:39 +00:00
kleink ba482b3950 * On the 601, obliterate all BAT entries when returning from kernel to
userlevel; this is necessary due to the 601, unlike other 6xx, having
  no concept of separated Valid_user vs. Valid_supervisor for BATs.
* When crossing the kernel/userlevel boundary, have platform-provided
  hooks set up the two fixed BAT entries, and possibly additional
  segment registers to redeem the 601's BAT limitations.

Both of the above are only built if the $MACHINE provides these hooks,
sparing others the pain.
2002-05-02 16:47:49 +00:00
uch 4499275017 remove obsolete header file (shbvar.h) 2002-05-02 16:34:57 +00:00
thorpej b094ff415f Change the semantics of mbuf external storage "ext_free" routines
so that they're more useful for arbitrary types of external storage:

* Add an "mbuf *" argument to (*ext_free)().  If non-NULL, (*ext_free)()
  is expected to free the mbuf itself.  This allows (*ext_free)() to use
  the mbuf for bookkeeping (e.g. deferring the work to a helper thread).
  If the "mbuf *" argument is NULL, we are assumed to be in a context
  which is safe for performing the destructor operation *now*.
* Adjust MEXTREMOVE() and MFREE() routines for above change.
* Update "ade" and "ti" drivers for new semantics.
2002-05-02 16:22:43 +00:00
thorpej 74e2ee8d5c Define __NO_STRICT_ALIGNMENT. 2002-05-02 16:11:28 +00:00
nonaka ed9081de2a Added IBM Personal Power Series 830 IDE controller support. 2002-05-02 15:17:56 +00:00
nonaka 2ff13751ce Use PLATFORM_* 2002-05-02 14:58:36 +00:00
nonaka b9fc6ff617 rename reset_ibm_generic() -> reset_prep_generic(). 2002-05-02 14:48:27 +00:00
nonaka b5a1a9284b Added dump residual data routine. 2002-05-02 14:44:17 +00:00
nonaka 925a022a1d use ext_intr_ivr, too. 2002-05-02 14:38:41 +00:00
nonaka c79479ac8d Added dump residual data routine. 2002-05-02 14:36:42 +00:00
martin 9b693d4bca Remove a local declaration shadowing the global "int statint", thus
preventing the latter to be initialized properly.

Patch from adam@lebsack.com in PR 16608.
2002-05-02 13:01:45 +00:00
thorpej d105d4c056 Move call to sched_unlock_idle to later in the context switch to
eliminate a race where another processor could grab the outgoing
process before we were done saving our state into it, with predictable
results.

Bug spotted on i386 by Frank van der Linden <fvdl@wasabisystems.com>.
2002-04-30 16:05:13 +00:00
tsutsui 8b87191ece Add _rtt(), which is called by panic() in libsa/panic.c,
which is useed from ustarfs.c.
2002-04-30 13:10:56 +00:00
tsutsui 68d3a4f0ee Add ustarfs ops. 2002-04-30 13:09:05 +00:00
tsutsui 2d9bb7f94e Add getchar(). 2002-04-30 13:08:01 +00:00
ragge 96d4c35119 Don't try to probe for dz11 on 4000/90, may corrupt the flash rom (?).
Suggested by Hugh Graham <hugh@openbsd.org>.
2002-04-30 12:33:32 +00:00
tsutsui 27c8560138 Make sure whole DPRINTF()s are actually disabled on normal build.
It seems compiler does not remove text strings in while(0) statement
on its optimization.
2002-04-30 01:07:26 +00:00
tsutsui 8f9d2b8500 Add a delay() in adb_read_date_time() so that my Apus2000 can get
correct date in inittodr().
2002-04-29 10:15:29 +00:00
uch 7eaf6db5bd remove #if 0 #endif 2002-04-29 09:33:30 +00:00
uch 01eebf7a36 KNF. 2002-04-29 09:32:56 +00:00
rafal e9ca49cdee Fix nasty crashes on IP22 machines with console running at 38.4kbps (which
generally translates to "high interrupt load") -- the old code re-enabled
interrupts in the machine-specific hardware interrupt handler causing the
handler to be re-entered, possible multiple times.  Could lead to kernel
stack overflows, and all sorts of mysterious crashes/hangs as a result.

While here, fix up the IP32 interrupt handler code to also not re-enable
interrupts.

Thanks for ideas/comments go to Chuq and Stephen Ma.
2002-04-29 02:06:14 +00:00
thorpej 7be035e7c7 Only print console messages about SIGSEGV and SIGILL if the
kernel was built with DEBUG.
2002-04-29 01:54:11 +00:00
briggs 98ec565a96 Catch up with 1.5 branch... Allow nvram device to be omitted from kernel
configuration.  Fix noted by Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> and
problme noticed by Louis Guillaume <lguillaume@berklee.edu>.
2002-04-28 17:55:47 +00:00
uch 6d338ff407 Use "#define<tab>", white space nits. 2002-04-28 17:10:32 +00:00
msaitoh c67dc60a0a add missing postsig() call.
I don't know whether this is true fix or not.
2002-04-28 12:51:14 +00:00
msaitoh ccc0ee640f add missing softintr_establish() call. 2002-04-28 11:38:48 +00:00
wormey b487c11bb6 Supply missing "flags" keyword. 2002-04-28 06:19:45 +00:00
shin 37b76b7ea4 (forgot to commit this file...)
* make kloader optional.
* default value of kernel path is KLOADER_KERNEL_PATH.
* options KLOADER_KERNEL_PATH can override kernel path.
* when bootstr is passed (RB_STRING), use it as kernel path.
2002-04-27 23:24:55 +00:00
shiba a26fd009c9 Add IDE drive support.
Note:
   (1) Character device major number chages to 49 from 48(in my original
       code). So it is necessary to rebuild device files.
   (2) Must use Booter 2.0.0a10 or later.
   (3) Default mode is cpu busy wait. It is defined by flags 0x1000.
       It will be more slow than before.
       No flags means hardware interrupt mode. But it might be able to
       get no interrupts.

Support machines:
   (1) Quadra 630 series
   (2) PowerBook 150

Non tested machine:
   (1) PowerBook 190 series

Approved by: briggs
2002-04-27 19:29:08 +00:00
ichiro 4e89501466 add CPU ID of IXP1200 network processor 2002-04-27 15:50:59 +00:00
shin 0201440bd2 * make kloader optional.
* default value of kernel path is KLOADER_KERNEL_PATH.
* options KLOADER_KERNEL_PATH can override kernel path.
* when bootstr is passed (RB_STRING), use it as kernel path.
2002-04-27 12:36:47 +00:00
chris 8480bd8390 Correct typo.
Remove tabs, !Edit on Risc OS shows tabs as [09] by default.
2002-04-27 10:48:13 +00:00
tsutsui d60ade3462 Install bbinfo.h. 2002-04-27 10:20:38 +00:00
tsutsui 9f51b11c37 Use a magic structure with a magic number instead of using nlist(3)
for installboot(8) to patch proto bootblocks.
(This is a preparation to migrate MI installboot.)
2002-04-27 10:19:57 +00:00
thorpej bfd9280083 Issue a CPWAIT sequence after enabling the MMU to make sure
it's really enabled.
2002-04-26 18:01:21 +00:00
msaitoh 271b97bb3b add SH4 Processor Version Register 2002-04-26 11:56:02 +00:00
msaitoh f6bf722a2e fix around PTR and PDR 2002-04-26 10:22:53 +00:00
thorpej e2a2842013 Keep track of which DMA window was actually used to map the
request (not always the passed in DMA tag if we try direct-map
and then fall back to sgmap-mapped).  Use the actual window
when performing dmamap_sync and dmamap_unload operations.

Fixes DMA resource leak on systems with 2G+ RAM.  Thanks to
Matt Thomas for help debugging this.
2002-04-26 04:15:18 +00:00
ad 77e08f053a Add a driver for Adaptec FSA RAID controllers, as often found in Dell
servers. Based on the FreeBSD/OpenBSD versions.
2002-04-26 02:05:07 +00:00