Commit Graph

4143 Commits

Author SHA1 Message Date
rjs
cbefa60fe8 Don't need to save lwp for use in lwp_exit2(). 2007-04-21 10:45:45 +00:00
macallan
e1dc09af02 clean up tadpole_request() API
from mrg
2007-04-11 16:30:26 +00:00
macallan
43b2c2b989 include files.wsfb 2007-04-10 02:50:32 +00:00
jdc
d77557d8c3 Add USB support (for the Javastation Espresso). 2007-03-18 17:29:56 +00:00
msaitoh
548cdc0050 s/intialized/initialized/ 2007-03-17 13:51:46 +00:00
jdc
6f7fbd38ba Final steps to for working wscons on sun-4 class machines. Restructure
the previous revision so that we don't tell the common zs code that we
are the console if we're using wscons.  Thanks to wrstuden@ for the hints.
2007-03-14 19:31:45 +00:00
ad
59d979c5f1 Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.
2007-03-12 18:18:22 +00:00
he
60b37b9c1c Cast to char* before doing pointer arithmetic. 2007-03-09 08:59:00 +00:00
he
3aeb570fd3 Make the loadboot() declaration consistent, use char* because it
does pointer arithmetic on the argument.
2007-03-08 17:14:16 +00:00
mrg
a4960a24c9 fix fall out from caddr_t changes. 2007-03-04 22:12:43 +00:00
macallan
6bc13d5024 make this compile again 2007-03-04 09:35:03 +00:00
macallan
9fcd02c858 make compile again 2007-03-04 09:32:39 +00:00
macallan
7aa79fdec8 fix more caddr_t removal fallout 2007-03-04 09:23:29 +00:00
macallan
66fec6b6ba make this compile again 2007-03-04 09:22:04 +00:00
macallan
ee7346a209 shutup a compiler warning about pointer arithmetics on void * 2007-03-04 09:03:34 +00:00
christos
53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
uwe
526ec18492 G/c NOP_ON_4_4C_1 that used to be part of microtime.
Keep for reference but ifdef out the code to munge 4/4c nops
as there are none left.
2007-03-04 04:00:00 +00:00
uwe
2c8356ade4 Don't mix code and declarations/defintions.
Use designated initialization for strict timecounter.
Misc cosmetics.  Clean up whitespace.
2007-03-04 03:04:41 +00:00
uwe
45a792f485 Define MSIIEP_COUNTER_LIMIT 2007-03-04 03:01:07 +00:00
uwe
82797f3bca bandaid for a problem exposed by newlock2
the kernel enables interrupts and then sets up clocks. If we catch a timer
interrupt in between and call hardclock() we'll explode so for now just
bail when we get one while cold
2007-03-04 01:53:44 +00:00
macallan
175e90b6f0 shave a nop 2007-03-03 23:42:20 +00:00
macallan
3e166b9534 found the last piece of crack, so
- now my sparcbook goes multiuser without LOCKDEBUG
- shaved a couple instructions
2007-03-03 09:21:19 +00:00
macallan
1d3e6cfad2 unsmoke some more crack ;)
mutex_enter() and mutex_exit() should now work properly
2007-03-03 00:00:30 +00:00
mrg
db2d8919f4 - don't call lwp_exit2(). ad@ says it isn't required anymore.
- load uvm.page_idle_zero with "ldub" instead of "ld", avoiding an
  unaligned access panic introduced since the int->bool changes.

now a -current kernel (both UP and MP) boot on my SS20 as long as
i have "options LOCKDEBUG" as well.
2007-02-26 06:06:32 +00:00
macallan
43d10d0613 bandaid for a problem exposed by newlock2
the kernel enables interrupts and then sets up clocks. If we catch a timer
interrupt in between and call hardclock() we'll explode so for now just
bail when we get one while cold
2007-02-25 06:03:32 +00:00
uwe
e56125c356 G/c debugging printf (hi, macallan!). 2007-02-25 05:04:28 +00:00
uwe
525a1eaf02 Catch up with changes in GENERIC and new wscons options. 2007-02-25 04:18:51 +00:00
thorpej
f6d76ae22a TRUE -> true, FALSE -> false 2007-02-22 16:45:48 +00:00
matt
21669a0d68 More boolean_t -> bool fixes 2007-02-22 05:18:29 +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
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
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
mrg
a9ddc54905 remove a redundant variable from spl0(). 2007-02-19 02:57:40 +00:00
ad
d3e0294550 Eliminate 2 unnecessary loads. 2007-02-18 23:02:32 +00:00
ad
e434239e70 Export __SIMPLELOCK_LOCKED, __SIMPLELOCK_UNLOCKED. 2007-02-18 21:32:48 +00:00
macallan
3b01cf7c93 "unsmoke crack"
from mrg and ad
2007-02-18 21:14:52 +00:00
pavel
934634a18c Change the process/lwp flags seen by userland via sysctl back to the
P_*/L_* naming convention, and rename the in-kernel flags to avoid
conflict. (P_ -> PK_, L_ -> LW_ ). Add back the (now unused) LSDEAD
constant.

Restores source compatibility with pre-newlock2 tools like ps or top.

Reviewed by Andrew Doran.
2007-02-17 22:31:36 +00:00
ad
790d873430 Put a sock in it.. 2007-02-17 19:30:33 +00:00
ad
431bcb0874 Pacify lint. 2007-02-16 15:42:02 +00:00
ad
36bb413e0d More spllowersoftclock() fallout. 2007-02-16 13:55:42 +00:00
ad
3363855a4a Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts
via a soft interrupt. In the near future, softclock will be run from process
context.
2007-02-16 02:53:43 +00:00
ad
def3fb26c7 Add MUTEX_CLEAR_WAITERS(). 2007-02-15 22:52:42 +00:00
ad
58bb4135a9 - mutex_exit(): call mutex_wakeup() if there are waiters, since we have
already released the lock when we reach the waiters check.
- mutex_enter(): denote the start and end of the critical and export
  labels. If an LWP is preempted after grabbing the interlock, the dummy
  owner value (0xff000000) will persist, but the real owner value must be
  set soon to prevent deadlock. On entry to interrupt we'll need to check
  for this and set in the correct value if the LWP was interrupted in the
  critical section.
2007-02-15 22:49:35 +00:00
reinoud
43061c75ae Rename the B_XXX flag to B_DEVPRIVATE flag since it was never used for
debugging and its main use is in device drivers. Its used there to signal
that the flagged buffer has a special meaning or should be handled
differently.

OK'd by Bill Sudenmund on tech-kern.
2007-02-15 18:33:26 +00:00
ad
58c53b4195 Pacify lint/gcc. 2007-02-15 15:27:53 +00:00
ad
6511d52f7d inline -> __inline 2007-02-11 15:41:31 +00:00
ad
b07ec3fc38 Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
jdc
220cbf1395 First steps for working wscons on sun-4 class machines - recognise the
console keyboard and mouse on them.

We are not there yet because currently both wsdisplay and zstty assume
that they are the console.  On sun-4, zstty wins because it attaches
last and overwrites the console device that wscons had set previously.
2007-02-08 20:36:55 +00:00
jdc
3cb2b40395 Clarify the console checking comment. 2007-02-08 20:30:50 +00:00