Commit Graph

4179 Commits

Author SHA1 Message Date
drochner
dce09ea075 clean up some definitions around rune_t which are not needed anymore 2007-09-03 20:31:56 +00:00
drochner
0e0fe2c353 Fix definitions of UCHAR_MAX/USHRT_MAX and related
types. C99 requires that these definitions promote to (signed/unsigned)
integer the same way as the types the definition is for. And since
unsigned char/short fit into an "int" on all our archs and thus promote
to signed int, the definitions must not be unsigned.
Fixes PR lib/31306 by Neil Booth.
2007-08-31 16:24:21 +00:00
jdc
dc4c31893c Also print a new line if we are not the console. 2007-08-19 09:18:45 +00:00
ad
63c4506184 Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed
on tech-kern.
2007-08-15 12:07:23 +00:00
adrianp
475217d719 Remove iso(4) from GENERIC kernels, as discussed on tech-net@
Ok'ed by core@
2007-08-06 21:26:53 +00:00
macallan
f46b7897c0 fix the fix - do not impose all those extra cache ops on all supersparcs,
only those without external cache
2007-08-01 00:06:32 +00:00
macallan
7add3da5f4 SuperSPARCs without cache controller need some extra cache flushs
With this a MULTIPROCESSOR kernel works again with a pair of SM50
2007-07-31 05:21:47 +00:00
macallan
1e54ba9802 add hardware cursor support 2007-07-30 23:28:13 +00:00
macallan
4ba11875bf add wsdisplay support for cg14
The console will run in 8bit but switch to 32bit in mapped mode so XFree86
with wsfb can run in 24bit colour.
2007-07-30 18:20:08 +00:00
ad
66fefd117b It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
2007-07-29 12:15:35 +00:00
macallan
c1d4259805 turn pmap_phys_address() into a macro since all the function ever did was
to cast its parameter to paddr_t and return it
approved by mrg
2007-07-16 16:36:06 +00:00
ad
63811f5275 Generic soft interrupts are mandatory. 2007-07-14 21:48:17 +00:00
ad
88ab7da936 Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
pooka
0bc323f5cd Initialize the link context in a signal frame to the receiving lwp's
link context instead of NULL.  Otherwise, if we got a signal while the
lwp had a link context set, the link context would be set to NULL upon
return from signal delivery.

christos@tech-kern: "I think you are right."
2007-07-08 10:19:21 +00:00
tsutsui
6a8a584d1a Remove leftover netns stuff. 2007-07-07 05:13:14 +00:00
xtraeme
6aec6c2829 s/cur_tre/edata/ => should fix the build error reported by rjs@. 2007-07-04 00:32:35 +00:00
xtraeme
19b01fa46a Use PSWITCH_EVENT_{PRESSED,RELEASED} for consistency with other drivers
using the sysmon_power framework.
2007-07-01 20:01:44 +00:00
xtraeme
da3f163bd2 Imported envsys 2, a brief description of the new features:
(Part 2: drivers)

* Support for detachable sensors.
* Cleaned up the API for simplicity and efficiency.
* Ability to send capacity/critical/warning events to powerd(8).
* Adapted all the code to the new locking order.
* Compatibility with the old envsys API: the ENVSYS_GTREINFO
  and ENVSYS_GTREDATA ioctl(2)s are supported.
* Added support for a 'dictionary based communication channel' between
  sysmon_power(9) and powerd(8), that means there is no 32 bytes event
  size restriction anymore.
* Binary compatibility with old envstat(8) and powerd(8) via COMPAT_40.
* All drivers with the n^2 gtredata bug were fixed, PR kern/36226.

Tested by:

blymn: smsc(4).
bouyer: ipmi(4), mfi(4).
kefren: ug(4).
njoly: viaenv(4), adt7463.c.
riz: owtemp(4).
xtraeme: acpiacad(4), acpibat(4), acpitz(4), aiboost(4), it(4), lm(4).
2007-07-01 07:37:12 +00:00
jnemeth
3a15d3861a Make this match how the C version of the interrupt handler does
pseudo DMA.  Thanks to uwe@ for assistance with sparc assembly
language and tnn@ for testing.
2007-06-21 09:45:54 +00:00
martin
3ab04256ac Use the new loadfile() marker MARK_DATA to optimize the loaded kernel
mappings before calling the entry point - change text mappings to read
only and only insert those into the iTLB.
While there remove a few magic constants by information queried from
the firmware.
2007-06-05 08:52:20 +00:00
martin
c2534a819b Add pseudo-device agr to all GENERIC kernels where it might make sense
(commented out in some).
2007-06-04 08:55:18 +00:00
uwe
cc652c9405 Add COMPAT_40. While here, make COMPAT_30 comment match other COMPAT_*. 2007-06-02 17:16:12 +00:00
mrg
565d4d6ca6 disable mutex_spin_enter() & mutex_spin_exit() as they are currently
broken and cause MULTIPROCESSOR kernels to hang while entering
userland boot up.
2007-05-28 22:56:19 +00:00
mrg
839b86dc5e cpu_attach(): in the MP case, fix up idle lwp info as well as lwp0.l_cpu.
for LOCKDEBUG, mutex_destroy() the cpu0 spc_lwplock with the global
cpuinfo VA, and re-mutex_init() it with the per-cpu address that is only
now available.  for non-boot cpus, be sure to also initialise curlwp to
the idle lwp.

xcall(), pmap_quiet_check(), pmap_pmap_pool_ctor(), pmap_pmap_pool_dtor(),
and pmap_enu4m(): don't care about cpus that have not been attached yet.
2007-05-28 21:24:17 +00:00
he
410727fbc5 Remove MUNGE(NOP_ON_4M_15), that label no longer exists. 2007-05-23 14:51:16 +00:00
mrg
b9baf4bfef cpu_switchto(): if oldlwp is NULL, don't bother saving it. 2007-05-22 18:15:58 +00:00
martin
3f7dee7700 Fix cpu_idle() for machines that have a idlespin function - use a
sibling call to invoke it (cpu_idle pretends to be a leaf function).
Pointed out by uwe.
2007-05-21 22:16:35 +00:00
macallan
6645fde801 fix typo in cpu_idle - the function we want to call is in %01 not %o3 2007-05-20 23:09:13 +00:00
uwe
aff9e2d286 Make lwp_trampoline comment explain how things are set up in more details.
While here, fix gimplish in the inline comment too (hi, phone!)
2007-05-19 23:08:48 +00:00
mrg
68843a6372 fix a compile error #ifdef MULTIPROCESSOR. does not boot yet... 2007-05-19 23:04:48 +00:00
mrg
8d92d0d7d8 fix the two problems i introduced with yamt-idlelwp:
- in lwp_trampoline, oldlwp is already in %o0.  don't save or the wrongly
  saved copy from cpu_lwp_fork().  as repeatedly pointed out my uwe.

- in cpu_idle use retl not ret.  as pointed out by martin.


thanks to uwe/martin/tnn for all the real debugging work.
2007-05-19 22:57:47 +00:00
yamt
f03010953f merge yamt-idlelwp branch. asked by core@. some ports still needs work.
from doc/BRANCHES:

	idle lwp, and some changes depending on it.

	1. separate context switching and thread scheduling.
	   (cf. gmcgarry_ctxsw)
	2. implement idle lwp.
	3. clean up related MD/MI interfaces.
	4. make scheduler(s) modular.
2007-05-17 14:51:11 +00:00
uwe
374def6c7e Sync with GENERIC 1.197 2007-05-12 22:44:45 +00:00
jnemeth
50c13cb87a Fixed formatting. Problem was that we were trying to get the result
of a data transfer operation immediately after the data transfer
was finished, instead of waiting for the chip to interrupt us and
tell us that it was finished and had the result for us.  This worked
okay for read and write since the operation would be finished very
shortly after the data transfer completed.  However, with formatting,
the chip still had most of the rest of the track to do, so we ended
up timing out before the operation was finished.  This fix is from
sparc64/dev/fdc.c and was tested on sparc by tnn@.
2007-05-11 18:12:16 +00:00
jnemeth
9d8e6e5668 revert last; committed wrong file 2007-05-11 18:10:57 +00:00
jnemeth
4cbad60727 Fixed formatting. Problem was that we were trying to get the result
of a data transfer operation immediately after the data transfer
was finished, instead of waiting for the chip to interrupt us and
tell us that it was finished and had the result for us.  This worked
okay for read and write since the operation would be finished very
shortly after the data transfer completed.  However, with formatting,
the chip still had most of the rest of the track to do, so we ended
up timing out before the operation was finished.  This fix is from
sparc64/dev/fdc.c and was tested on sparc by tnn@.
2007-05-11 17:48:16 +00:00
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