Commit Graph

247 Commits

Author SHA1 Message Date
tsutsui d779b85d3e Remove extra whitespace added by a stupid tool.
XXX: more in src/sys/arch
2009-04-18 14:58:02 +00:00
cegger e2cb85904d bcopy -> memcpy 2009-03-18 17:06:41 +00:00
cegger c363a9cb62 bzero -> memset 2009-03-18 16:00:08 +00:00
cegger df7f595ecd Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
dsl 7cc9af7d64 ANSIfy functions with function-pointer arguments 2009-03-16 23:11:09 +00:00
dsl 82357f6d42 ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
2009-03-14 21:04:01 +00:00
dsl 454af1c0e8 Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
2009-03-14 15:35:58 +00:00
jdc 7262e977ee Mimic cgsix memory corruption fix (bwtwo and cgthree wscons code is
based on cgsix).  Original commit message:

  Include wsdisplay.h directly in the header to avoid different sizes
  of cgsix_softc depending on proper previous includes by the includer
  due to #ifdef NWSDISPLAY. Thanks to kmem poison check and DEBUG kernels.
2009-02-23 22:44:27 +00:00
martin ff1d9de353 Include wsdisplay.h directly in the header to avoid different sizes
of cgsix_softc depending on proper previous includes by the includer
due to #ifdef NWSDISPLAY. Thanks to kmem poison check and DEBUG kernels.
2009-02-20 22:55:26 +00:00
christos 47e43241e2 protect kernel inline with _KERNEL 2009-01-12 02:26:16 +00:00
christos b34c1a567e s/set/get/ 2009-01-11 23:55:25 +00:00
christos ced9088db5 retain compatibility with old firm_event. Perhaps we should bump the protocol
version with an ioctl?
2009-01-11 23:36:39 +00:00
jdc ca92cdbafd Remove duplicated key symbol in UK keymap. 2009-01-02 13:09:36 +00:00
jdc 79efdbb4ff Back out previous and clear the screen directly.
Pointed out by macallan@.
2009-01-01 13:53:07 +00:00
jdc eebd19f78d On old chip revisions, clear the screen using rasops when attaching. 2008-12-29 14:42:15 +00:00
jdc e3fc2b7c4b Clear the screen (via rasops) when attaching.
Pointed out by Bill Green on port-sparc.
2008-12-29 14:27:59 +00:00
macallan 698f27a0ae make this compile again with NWSDISPLAY==0 2008-12-22 23:46:22 +00:00
mrg f4cdd8a3bc remove unused variable. 2008-12-13 05:54:57 +00:00
macallan 39ebde40e1 device_t-ification 2008-12-12 18:39:55 +00:00
macallan 302ae8fed9 add display type for Fujitsu AG-10e (oops) 2008-12-12 18:35:12 +00:00
jdc 5c7dd34e28 Add wscons/vcons support for bw2 (sbus and P4). 2008-12-05 11:52:42 +00:00
jdc b75399d6f2 Add wscons/vcons support for cg3. 2008-11-28 07:57:04 +00:00
drochner 1a9e64b4a7 mechanical changes to use device_private() or device_lookup_private()
to get softcs, makes the code compile under the stricter type checking
introduced earlier today
2008-06-11 21:25:31 +00:00
ghen 4c430fc97a Implement wscons colemak and dvorak keyboard variants for Sun keyboards. 2008-05-25 15:51:44 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
ad 6d70f903e6 Network protocol interrupts can now block on locks, so merge the globals
proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock).
Implications:

- Inspecting process state requires thread context, so signals can no longer
  be sent from a hardware interrupt handler. Signal activity must be
  deferred to a soft interrupt or kthread.

- As the proc state locking is simplified, it's now safe to take exit()
  and wait() out from under kernel_lock.

- The system spends less time at IPL_SCHED, and there is less lock activity.
2008-04-24 15:35:27 +00:00
martin 26190df844 Fix minor device_t split fallout. 2008-04-21 08:16:12 +00:00
tsutsui bd8476b16b Misc cosmetics. 2008-04-20 15:44:01 +00:00
tsutsui 80b6cbc853 - use device_lookup_private() where appropriate
- some KNF and cosmetics
2008-04-20 03:05:55 +00:00
cegger 375450b55e use aprint_*_dev and device_xname 2008-04-05 16:46:15 +00:00
tsutsui 02cb47cab2 Split softc and device_t for zsc(4) and its children.
XXX we should restructure MI APIs and make it really machine independent.
2008-03-29 19:15:34 +00:00
rmind c6186face4 Welcome to 4.99.55:
- Add a lot of missing selinit() and seldestroy() calls.

- Merge selwakeup() and selnotify() calls into a single selnotify().

- Add an additional 'events' argument to selnotify() call.  It will
  indicate which event (POLL_IN, POLL_OUT, etc) happen.  If unknown,
  zero may be used.

Note: please pass appropriate value of 'events' where possible.
Proposed on: <tech-kern>
2008-03-01 14:16:49 +00:00
martin e96ec76164 rasops is global now 2008-02-21 13:44:17 +00:00
pooka 4e38160d4d Do not "return 1" from kqfilter for errors. That value is passed
directly to the userland caller and results in a mysterious EPERM.
Instead, return EINVAL or something else sensible depending on the
case.
2007-12-05 17:19:46 +00:00
ad 61eac7ea23 Call ttyoutput/ttstart with tty_lock held. 2007-11-10 18:00:11 +00:00
ad a2a3828545 machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
ad c97e9c4ea7 brelse() stragglers. 2007-10-08 20:12:05 +00:00
macallan 5be5473e91 add keysyms for scroll commands 2007-08-06 03:04:08 +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
macallan 8add5b3a22 defflag SPARCBOOK_CMD 2007-05-25 02:01:41 +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
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 b07ec3fc38 Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
hubertf eda05c6413 Remove more duplicate headers.
Patch by Slava Semushin <slava.semushin@gmail.com>

Again, this was tested by comparing obj files from a pristine and a patched
source tree against an i386/ALL kernel, and also for src/sbin/fsck_ffs,
src/sbin/fsdb and src/usr.sbin/makefs. Only changes in assert() line numbers
were detected in 'objdump -d' output.
2007-01-29 01:52:43 +00:00
scw e07faf8a74 Replace the myriad copies of bounds_check_with_label() with a single MI
version.

Add disk_blocksize(9) so that disk drivers can record the physical
block size of a disk if it is different to DEV_BSIZE. Right now this
simply initialises dk_blkshift and dk_byteshift according to the
supplied block size. This information is used in the MI version of
bounds_check_with_label().
2006-11-25 11:59:55 +00:00
plunky 57c0199dcf Tidy away wsmouse_input() abstractions and update
documentation to include the W direction.
2006-11-12 19:00:42 +00:00
macallan ba69d539e0 use vcons.
Works fine on sparc64, needs testing on sparc.
2006-10-16 22:27:16 +00:00
martin 7815b7efa3 Missing initializers 2006-10-15 21:01:03 +00:00
martin 9128c4105e Missing initializer 2006-10-15 20:54:49 +00:00
martin 9384ee0db9 Missing initializer 2006-10-15 19:53:27 +00:00