Commit Graph

1725 Commits

Author SHA1 Message Date
matt
4ba15ad876 Conditionalize cpu_coredump on COREDUMP 2006-08-30 22:24:55 +00:00
yamt
e527ebac6f - remove unused bdbtofsb.
- move the following macros from MD headers to sys/param.h.
	ctod
	dtoc
	ctob
	btoc
	dbtob
	btodb
2006-08-28 13:43:35 +00:00
hamajima
7d30668340 fix unterminated #ifdef. PR34240. 2006-08-21 15:01:54 +00:00
bjh21
a296cdc11f When looking for a screen mode at startup, skip any interlaced and
doublescan modes, since vidcvideo doesn't support them.
2006-08-19 22:38:42 +00:00
bjh21
63030cca90 If we can't find a screen mode matching the bootloader's frame rate, choose
the nearest one, rather than the first one with the same resolution.  This
is likely to be useful when the bootloader finally passes a valid frame rate.
For now, it just favours flickery over non-functional.
2006-08-19 16:57:06 +00:00
bjh21
9dc302fec2 Arrange things so that if MONITOR isn't defined in the kernel configration,
we use the standard mode list from videomode.c rather than one generated
by makemodes.awk.  This is less useful than it might be since without a useful
frame rate from the bootloader we're likely to end up choosing a screen mode
that's either flickery or too fast for the monitor (or DRAM bandwidth).
2006-08-19 13:34:15 +00:00
bjh21
72cec93787 The log2_bpp fields of the mode list generated by makemodes.awk weren't
used for anything.  Rearrange things so that it doesn't any more, and
just produces an array of struct videomode.  modedefs.c is looking
suspiciously much like videomode.c now.
2006-08-19 11:01:56 +00:00
bjh21
1e6fe5d059 Move calculation of a screen mode's frame rate out of makemodes.awk into
the kernel, removing an element from struct vidc_mode.  The calculation
is a bit pointless at the moment anyway, since both bootloaders pass in
a constant 56, but that might get fixed one day.
2006-08-18 23:25:10 +00:00
bjh21
4513244661 This is kernel-only now, so no need to check _KERNEL. 2006-08-17 22:47:33 +00:00
bjh21
15f26966cb There's no need to expose arm/iomd/vidc.h to userland any more, since
<machine/vconsole.h> has gone now.
2006-08-17 22:38:14 +00:00
bjh21
28d9a9e366 Switch to using the MI struct videomode for storing VIDC video timings.
struct videomode doesn't have a way to record border widths (though I
wonder if VESA's "margins" are the same thing), so we now just treat them
as zero.  Tested on my NC, which still seems to be working.
2006-08-17 22:33:59 +00:00
bjh21
64e85b48bf Fix an obvious typo. 2006-08-16 22:09:12 +00:00
he
4c04c967da Remove an unneeded include of the now-deleted <arm/iomd/rpckbdvar.h>. 2006-08-16 07:59:44 +00:00
bjh21
949d521d89 Un-__P 2006-08-15 23:32:09 +00:00
bjh21
cd88b446c2 vidc_initialmode seems to be initialised at startup and never touched again.
Lose it.
2006-08-15 23:02:47 +00:00
bjh21
48ddf9f65e Un-__P 2006-08-15 22:58:47 +00:00
bjh21
2de7d16656 Remove some prototypes and macros that aren't used any more. 2006-08-15 22:44:19 +00:00
bjh21
90bd2ce02c Nothing in the tree uses NVIDCAUDIO or NVIDC, so stop generating them. 2006-08-14 22:33:37 +00:00
bjh21
2c38f19586 Finally remove the old, pre-wscons, acorn32 console code. This dated back
to RiscBSD and had been lurking in dark corners scaring people (mostly me)
for far too long.  It will be missed, but not much, and I hope we can clear
up any fallout before 5.0.

While I'm in the area, also remove rpckbd(4), since pckbd(4) has
been supported on acorn32 for ages.
2006-08-14 22:04:30 +00:00
bjh21
3c8394c448 Centralize the various checks for validity of a CPU context in one macro,
so we don't have to get it right in lots of different places.
2006-08-05 22:54:28 +00:00
bjh21
69c3a7ed34 bcopy -> memcpy
bzero -> memset
2006-08-05 21:25:39 +00:00
bjh21
758ec34161 ANSIfy, un-__P, and generally KNF. 2006-08-05 18:22:57 +00:00
bjh21
21a0df473c This file seems to be unused, left behind by the last I^2C overhaul.
Remove it.
2006-08-05 16:44:43 +00:00
bjh21
1426eb6e49 ANSIfy, un-__P, light KNF. 2006-08-05 16:38:57 +00:00
bjh21
62d6ab40d3 Support for timecounters on acorn32, supplied by Mike Pumford. Only
compile-tested by me, but he promises it works.
2006-08-03 23:19:06 +00:00
simonb
7056ad57e0 Remove a few trailing blank lines. 2006-07-28 08:15:29 +00:00
drochner
84f50d1b92 don't install <machine/db_machdep.h>, this is kernel only 2006-07-26 19:54:56 +00:00
elad
ddf6300b26 typo; from Arnaud Lacombe, thanks! 2006-07-25 18:43:15 +00:00
ad
f474dceb13 Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
ad
2b79369c7e - Hold a reference to the process credentials in each struct lwp.
- Update the reference on syscall and user trap if p_cred has changed.
- Collect accounting flags in the LWP, and collate on LWP exit.
2006-07-19 21:11:37 +00:00
gdamore
34537908ab Add an option COM_REGMAP to allow com(4) to use an array of register indices.
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.

Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.

This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.

Approved by core@.  Fixes PR port-evbmips/32362.
2006-07-13 22:56:00 +00:00
peter
a92b58da31 KNF. Correct some spelling errors. 2006-06-27 13:58:08 +00:00
peter
5fb2d42e80 Use symbolic constants for the UART register locations.
Consistently write "SA-11x0".
2006-06-27 11:01:41 +00:00
peter
72b6ac7a94 Add a symbolic constant for the Infrared Communications Port. 2006-06-27 10:45:06 +00:00
drochner
a3464e1d27 use the "i2cbus" interface attribute rather than putting a string name
into the i2cbus attach args
2006-06-26 18:21:38 +00:00
christos
29c1a4c22e GCC4 fixes from Mike Pumford 2006-06-25 21:32:39 +00:00
gdamore
1c8dd20510 Use portable | cat 1>&2 instead of > /dev/stderr. This allows this script
to work, and supports building on Solaris 10.

Reviewed/approved by jlam@.
2006-06-20 15:35:03 +00:00
mrg
c1c5286e41 make xscale_pmnc_write() return void, rather than returning an
uninitialised value that is not used by any caller.
2006-05-17 05:16:09 +00:00
mrg
663096a642 remove 'inline' from the xxx_do_pending() function that is called from
external sources, and conflicts with it's prototype.
2006-05-17 05:15:26 +00:00
yamt
d8a45254df include kauth.h for kauth_cred_geteuid. 2006-05-15 09:11:28 +00:00
elad
8ccb6c9341 integrate kauth. 2006-05-14 21:55:09 +00:00
skrll
214053461e Fix some more comments. 2006-05-13 08:56:08 +00:00
yamt
ccc0bd2ab6 remove irqblock[] as no one uses it. reviewed by Ben Harris. 2006-05-11 12:05:37 +00:00
skrll
b053add405 Fix some comments. 2006-05-10 07:13:30 +00:00
skrll
a9f4c28a3d Fix a bunch of cast lvalues. 2006-05-10 06:24:02 +00:00
skrll
25958e5e07 s/4/BKPT_SIZE/ in PC_ADVANCE 2006-05-08 08:02:32 +00:00
thorpej
fb44a8574b Remove the devprop API and switch everthing over to the new proplib. Add
a new device_properties() accessor for device_t that returns the device's
property dictionary.
2006-05-05 18:04:41 +00:00
snj
d97db3840b s/allready/already/ 2006-04-25 02:19:31 +00:00
peter
d0cb07c7ca Back out my rev 1.14, the printf is actually quite useful and
all other arm code show this information too.
And while here, prettify the output a bit.
2006-04-18 17:50:25 +00:00
chris
35c6b9f8a4 Simplify delay loop by moving the maths to before the loop.
There is minimal risk of overflow unless something delays >134s.
2006-04-17 00:03:17 +00:00