Commit Graph

44471 Commits

Author SHA1 Message Date
matt ab5a292aa4 Fix another boolean_t -> bool 2007-02-22 06:04:06 +00:00
thorpej f5d6b882ad TRUE -> true, FALSE -> false 2007-02-22 05:46:28 +00:00
thorpej 16ed6645b5 TRUE -> true, FALSE -> false 2007-02-22 05:31:52 +00:00
matt c8513022b4 Fix more boolean_t -> bool lossage 2007-02-22 05:28:53 +00:00
thorpej 8b3bae6275 TRUE -> true, FALSE -> false 2007-02-22 05:19:00 +00:00
matt 21669a0d68 More boolean_t -> bool fixes 2007-02-22 05:18:29 +00:00
thorpej ab87c6666d TRUE -> true, FALSE -> false 2007-02-22 05:14:04 +00:00
matt 2e4c2c683e More boolean_t -> bool 2007-02-22 05:10:30 +00:00
thorpej cfc07219e4 TRUE -> true, FALSE -> false 2007-02-22 05:04:11 +00:00
matt 2d58947dff Add missing initializer for _tag_needs_count 2007-02-22 04:58:26 +00:00
thorpej b25aff5288 TRUE -> true, FALSE -> false 2007-02-22 04:47:27 +00:00
matt c40caef899 More boolean_t -> bool lossage. 2007-02-22 04:47:07 +00:00
matt 93feeb1203 Fix lossage from boolean_t -> bool and updated x86 bus_dma. 2007-02-22 04:38:02 +00:00
rumble b8aa615905 Make this compile again. 2007-02-22 01:04:18 +00:00
thorpej dd962f8680 Pick up some additional files that were missed before due to conflicts
with newlock2 merge:

Replace the Mach-derived boolean_t type with the C99 bool type.  A
future commit will replace use of TRUE and FALSE with true and false.
2007-02-21 23:48:10 +00:00
thorpej 712239e366 Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
2007-02-21 22:59:35 +00:00
mrg fe8ace86aa shave 9 insns off the tsb setup in cpu_initialize & cpu_mp_startup. 2007-02-21 22:39:22 +00:00
martin 77468bf668 Minor cosmetic changes and optimizations. 2007-02-21 22:14:24 +00:00
mrg 4410329b87 add a pair of new bus_dma(9) functions:
int _bus_dmatag_subregion(bus_dma_tag_t tag,
				  bus_addr_t min_addr,
				  bus_addr_t max_addr,
				  bus_dma_tag_t *newtag,
				  int flags)
	void _bus_dmatag_destroy(bus_dma_tag_t tag)

that allow a (normally broken/limited) device to restrict the bus address
range it can talk to.  this is used by bce(4) to limit DMA addresses to
1GB range, the maximum the chip can address.

all this is from Yorick Hardy <yhardy@uj.ac.za> with input from several
people on tech-kern.

XXX: bus_dma(9) needs an update still.
2007-02-21 20:41:23 +00:00
martin e82df7e165 Get rid of unused (thus always zero) "curlwp" variable hidden in assembler
code (C code always uses a cpuinfo based macro).
2007-02-21 20:07:42 +00:00
martin 7a265b8461 Fix CAS success check 2007-02-21 20:03:26 +00:00
simonb ca3eaca4a4 Fix a tyop. 2007-02-21 14:52:32 +00:00
skrll 2d92a609d7 Move the unwind info so readelf, objdump, etc can find it. 2007-02-21 10:00:59 +00:00
rumble a701d81379 Disable handling of the power interrupt. We aren't handling it properly and
hitting any of the buttons results in infinite such interrupts.
2007-02-21 04:33:41 +00:00
rumble 1a50f13991 Since IP12 doesn't use ARCS, we could read the console setting from the
nvram, but it may not be valid. For example, if the console is set to
graphics, but no keyboard is attached, we should not attempt to use a
graphical console.

To fix this, we extend arcemu to parse the prom's environment array, which
is the third argument to the kernel. If the console mode is graphics, but
no keyboard is found, the 'gfx' environment variable will contain 'dead'.

Note that since IP12 has no bootloader, we assume that the third parameter
is the environment table, not bootinfo.
2007-02-21 04:27:10 +00:00
rumble 992fd734bf Nix a few completed tasks. 2007-02-21 02:53:41 +00:00
dyoung 91ab437064 Expand SMIPS so that the 'tags' make-target covers more sources.
Sort.
2007-02-21 02:28:30 +00:00
dyoung f0a3da8a33 Following other platform-dependent MIPS code, use SI_NQUEUES for
the length of the si_to_sr table.
2007-02-21 02:26:15 +00:00
skrll 85f62f2ac1 - Add /a modifier to trace that allows a specific LWP to be selected.
- When doing trace/t, always note which pid/lid combination is being traced

XXX This probably shouldn't be in this file.
2007-02-21 00:23:59 +00:00
rumble 1c8d0954e6 Add a reasonably disgusting hack to not complain about a non-configured
"sq" or "wdsc" device in the GIO32 SCSI and E++ adapter cases,
respectively.

This file is getting nasty, but we've just about covered all the bases now.
2007-02-20 23:49:20 +00:00
rumble 06d4753ba6 Add wdsc devices for the GIO32 SCSI adapter. 2007-02-20 23:45:09 +00:00
rumble f17c59def9 Only read the eeprom once per hpc. 2007-02-20 23:09:15 +00:00
rumble 043fd3ee40 Enable GIO32 SCSI adapters to attach at secondary and tertiary HPCs. 2007-02-20 22:21:26 +00:00
rumble 6db143f7fd Add probe for wdsc so that we do not falsely attach wdsc(4) devices to E++
ethernet adapters.

By resetting the chip we also allow the wd33c93 attach routines to succeed.
Otherwise, device register accesses would result in a bus error.
2007-02-20 21:54:44 +00:00
kiyohara 3f7786a50b Indentation.
Move macro MMU_INIT.
2007-02-20 17:50:43 +00:00
kiyohara 60ea575b87 Indentation. 2007-02-20 17:48:13 +00:00
kiyohara 548878a8d8 Remove IPKDB, not need.
Indentation at cpu and mainbus.
2007-02-20 17:43:16 +00:00
kiyohara e798fe7cb3 Remove white-space.
Indentation.
2007-02-20 17:29:33 +00:00
kiyohara 5ad2d7ced7 Add btuart. 2007-02-20 17:23:09 +00:00
matt 0bd63d4831 Enable TMPFS 2007-02-20 16:14:49 +00:00
rumble cc1161439c Add a real probe so that we don't attach sq(4) on GIO32 SCSI adapters. 2007-02-20 16:11:38 +00:00
ad e9d2179381 trap(): after handling a copy fault from the kernel, call
KERNEL_UNLOCK_ONE(), not KERNEL_UNLOCK_LAST().
2007-02-20 15:55:07 +00:00
martin e0fc70084c Minor optimizations and cosmetics, thanks to uwe for suggestions 2007-02-20 15:30:53 +00:00
matt 35747137de Protect MB_* and <arm/cpufunc.h> by _KERNEL 2007-02-20 04:29:00 +00:00
matt f647a6c8ed Don't double count uvmexp.softs 2007-02-20 04:14:23 +00:00
matt 07250b0fdd _setsoftintr takes a si, not a ipl, so don't map it.
Shark now boots to multiuser!
2007-02-20 03:43:22 +00:00
matt 2c6d199d35 Switch shark from intrcnt to evcnt 2007-02-20 01:51:16 +00:00
ad d43ea32af9 - Add /a modifier to trace that allows a specific LWP to be selected.
- When doing trace/t, always note which pid/lid combination is being traced.
2007-02-20 01:02:02 +00:00
skrll 9a649e55a4 Check the right register for the mtx_waiters value. 2007-02-20 00:28:53 +00:00
xtraeme 3bd86dc17d ANSI, KNF, use __arraycount. 2007-02-20 00:09:57 +00:00