Commit Graph

273 Commits

Author SHA1 Message Date
chs
2f02870f3b zero the i2c_attach_args structure before filling it in.
fixes occasional crashes in iic_attach().
2016-02-14 19:54:19 +00:00
skrll
01e4054922 Remove katelib.h and references to it.
{Read,Write}{Word,Byte} macros are provided in the files that still use
them. Someone(tm) should convert them to bus_space(9)
2014-10-25 10:58:12 +00:00
snj
f0a7346d21 src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
2014-10-18 08:33:23 +00:00
christos
32d612a206 fix leak. 2014-09-21 15:46:44 +00:00
matt
d3d059aa5f Replace more vm_offset_t, vm_size_t with vaddr_t, vsize_t
Use paddr_t for msgbufphys
2014-09-13 18:08:38 +00:00
christos
3900446f61 Add missing ; 2014-03-26 19:44:51 +00:00
christos
d02e70fa98 kill sprintf 2014-03-26 08:51:59 +00:00
christos
0f9f8c3f05 tuck in variables that are only used in the #if 0 block 2014-01-21 19:31:57 +00:00
joerg
8b058f850e Don't use cpsr_all/spsr_all with mrs, it doesn't take a mask. 2013-12-02 18:36:10 +00:00
matt
d91603e2c5 Fix typo 2013-08-18 16:09:50 +00:00
matt
ab152917fb Move parts of cpu.h that are not needed by MI code in <arm/locore.h>
Don't include <machine/cpu.h> or <machine/frame.h>, use <arm/locore.h>
Use <arm/asm.h> instead of <machine/arm.h>
2013-08-18 06:28:18 +00:00
matt
bc7f522d59 Convert to unified syntax 2013-08-12 16:02:50 +00:00
skrll
bb9f3ca94f Use device_xname.
From chuq.
2012-10-10 22:00:22 +00:00
matt
2650ef287e Avoid using r7 (which is being reserved for a different purpose). 2012-08-29 07:06:27 +00:00
skrll
d385808b25 Replace a __cpu_simple_lock_t with a kmutex_t. 2012-05-18 21:09:50 +00:00
skrll
b8a204204c Typos in a comment. 2012-05-15 05:45:37 +00:00
skrll
0deaa3debb Whitespace in previous. 2012-05-14 11:05:29 +00:00
skrll
e0f866efaa device_t/softc split
struct device * -> device_t
struct cfdata * -> cfdata_t
Use aprint*
2012-05-14 10:38:08 +00:00
skrll
9ea87d7dd7 u_int*_t -> uint*_t 2012-05-10 09:56:27 +00:00
skrll
4501565ba1 KNF 2012-05-10 07:39:48 +00:00
rmind
8e6e1de99b Replace few simple_lock(9) cases. 2012-02-18 23:51:27 +00:00
skrll
87c636f464 Whitespace in previous.
Ride previous releng OK.
2012-02-14 14:33:53 +00:00
skrll
55567c4ed2 Pass RI_NO_AUTO to rasops_init so that rasops doesn't attempt to allocate
memory as we're too early in kernel startup for this.

My A7000 boots now.

OK releng. ack 3 nak 0.
2012-02-14 13:04:51 +00:00
mrg
8de08fa998 put back IPL_AUDIO and splaudio(), at the request of rmind. they are
aliases and now we can easily revert audio to IPL_VM if necessary,
without having to revert the whole branch.
2011-11-24 03:35:56 +00:00
jmcneill
8a962f23f2 Merge jmcneill-audiomp3 branch, which is derived from ad-audiomp2. From
the original ad-audiomp branch notes:

  Add MP locking to the audio drivers.

  Making the audio drivers MP safe is necessary before efforts
  can be made to make the VM system MP safe.

  The are two locks per device instance, an ISR lock and
  a character device lock. The ISR lock replaces calls to
  splaudio()/splx(), and will be held across calls to device
  methods which were called at splaudio() before (e.g.
  trigger_output). The character device lock is held across
  calls to nearly all of the methods, excluding some only
  used for initialization, e.g. get_locks.

Welcome to 5.99.57.
2011-11-23 23:07:28 +00:00
dyoung
ed9977b122 #include <sys/bus.h> instead of <machine/bus.h>. 2011-07-01 20:26:35 +00:00
wiz
4cbd24b23f dependant -> dependent 2011-06-30 20:09:15 +00:00
matt
6a66466f0c Move counting of faults, traps, intrs, soft[intr]s, syscalls, and nswtch
from uvmexp to per-cpu cpu_data and move them to 64bits.  Remove unneeded
includes of <uvm/uvm_extern.h> and/or <uvm/uvm.h>.
2010-12-20 00:25:23 +00:00
snj
7a9dfdb753 Remove 3rd and 4th clauses. OK'd by Tohru Nishimura and Reinoud Zandijk
(copyright holders).
2009-10-21 00:30:43 +00:00
cegger
c363a9cb62 bzero -> memset 2009-03-18 16:00:08 +00:00
cegger
ebceae53e5 ansify function definitions 2009-03-15 22:20:09 +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
dsl
02cdf4d2c8 Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
2009-03-14 14:45:51 +00:00
mjf
8dae70cc89 Fix printf format for suseconds_t 2009-01-17 17:06:18 +00:00
matt
5e289272db Re-init r5 at start of loop. 2008-08-19 19:10:08 +00:00
reinoud
6225111ee5 Remove double copyright message by me 2008-05-19 15:30:51 +00:00
martin
5d1469bd77 Backout previous: the license sweep touched these files in error, so
restore the old license.
2008-05-10 15:31:03 +00:00
matt
00caca484f Change IPL_LEVELS to NIPL.
current_spl_level is dead.
2008-04-29 17:09:47 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
matt
825088eda6 Merge kernel changes in matt-armv6 to HEAD. 2008-04-27 18:58:43 +00:00
chris
f033288a91 Fix acorn32 console beep to actually beep, rather than the kernel say:
aurateconv_fetch_to: internal error: unsupported encoding: enc=1 prec=8

The issue was that the playback filters for audio were being added to the
list in the wrong order.  The first entry in the list is closest to the
hardware, the last is closest to the audio buffer.  The code thought it
the other way around, so the incorrect formats were being passed down the
filter list.
2008-03-01 16:17:47 +00:00
chris
fa96148b7b Misc updates to hopefully improve vidcvideo console usability:
* add virtual consoles by using wsdisplay_vcons
* make use of generic scrollback support for consoles
* enable colour support for vidcvideo consoles
* use the default NetBSD font, rather than picking a sony one
* make kernel output green, so it's obvious.

This was tested at 800x600 in 8bpp on an A7000+ and 2MB VRAM RiscPC.

To actually benefit from these changes wscons=YES needs to be added to
your rc.conf
2008-02-29 00:37:26 +00:00
chris
25f47ee584 Fix up vidcvideo to be useable on a Write-Back processor, IE StrongArm,
during boot and ddb.

This is done by routing all requests for changes to the screen into one
function.  The function can then determine if interrupts are enabled or
disabled, and either flush them to screen immediately or set them up for
the next flyback irq.

Also if we have nothing to do, disable the flyback irq, and re-enable when
we have something to do.  This avoids taking an interrupt for every vsync,
IE 50-75Hz, just to do nothing.

This makes ddb usable and the boot dmesg visable with an SA.

lmbench now reports that the A7000+ has a 14Mhz CPU, rather than 4Mhz
(it's actually 48Mhz)

Tested on SA Risc-PC and A7000+
2008-02-05 14:40:10 +00:00
chris
0cdb05c075 Use memmove rather than memcpy when moving rows around the framebuffer.
This fixes a problem where scrolling down fills the whole screen with the
first line on screen.
2008-02-03 19:38:29 +00:00
matt
6bc0c58216 As of this commit, all arm32 kernel now build. 2008-01-08 02:07:50 +00:00
matt
d9322458cc Truly kill current_intr_depth once and for all. 2008-01-06 03:45:26 +00:00
ad
c29520cb1a Fix includes. 2008-01-05 00:31:50 +00:00
ad
065b6ba2fb lockmgr -> mutex 2007-12-06 17:00:31 +00:00
garbled
d974db0ada Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
2007-10-17 19:52:51 +00:00
tsutsui
320e4f3fc5 Remove all references to spl_mask. Now it isn't used by any sources.
Discussed on port-arm.
2007-08-13 02:04:50 +00:00