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
sanjayl
5576a1bb85
G5/970 updates:
...
Setup cache bits in HID5 early on so that dcbz/icbi use the
128 byte cache line size. The mismatch was causing dynamically linked
apps to randomly coredump.
With this fix, the G5 can boot into full multi-user by using a NFS
mounted root file system.
2006-08-15 03:29:55 +00:00
macallan
aa34d188fa
back out previous commit since it breaks console output when not using a
...
serial console
2006-08-15 01:53:26 +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
martin
1db4d327d9
Allow booting from wedges.
2006-08-14 12:11:26 +00:00
jmcneill
fc371b8f09
Please don't voluntarily panic before looking for ohare mac-io; I need
...
ohare on my Performa 6360.
2006-08-14 11:17:59 +00:00
itohy
59f807908c
Use the same comment for ym(4) lines.
2006-08-14 09:38:33 +00:00
itohy
cdb1835aff
ACPI frontend for Yamaha OPL3-SA[23].
...
Derived from PR kern/33991 by jasper at pointless dot net.
2006-08-14 09:34:43 +00:00
skrll
1a3062e81b
s/adpater/adapter/
...
Prompted by PR/34195
2006-08-14 06:22:33 +00:00
uwe
4fc8146812
Whether hd64461video is console is not is irrelevant to powering it up
...
on PWR_RESUME. Drop that bogus test and check whether the screen was
blanked instead to corerctly reflect blanked status across suspends.
2006-08-14 02:34:04 +00:00
jmcneill
ac96fed0c2
No longer try to attach unichromefb as an initial console device.
2006-08-13 20:22:27 +00:00
simonb
14c80e001b
Add wpi@pci.
2006-08-13 02:27:32 +00:00
christos
5afff5edf4
Fix missing initialization of tmpvn; thanks gcc.
2006-08-13 00:56:37 +00:00
agc
448cb4aa28
uncomment INCLUDE_CONFIG_FILE - the information is useful, and is on by
...
default in other GENERIC configs
2006-08-12 22:28:07 +00:00
christos
cf1ddb6596
- Check if a disk has wedges, and use the wedge device corresponding to the
...
root partition, instead of punting. This makes booting work
with traditional disklabel disks and wedge autoconfiguration.
- factor out disk opening code.
2006-08-12 21:45:22 +00:00
christos
e43176da19
add dk.
2006-08-12 19:55:42 +00:00
christos
f96e7c6a82
Revert previous borken change.
2006-08-12 19:15:19 +00:00
fvdl
3a0f71ac74
Make sure to override the trigger variable with IST_LEVEL, as well
...
as the ioapic flags, in the case of an ACPI interrupt without
override.
2006-08-12 16:20:58 +00:00
fvdl
9558563497
Record the ACPI global int in the interrupt structure for ISA interrupt
...
overrided (e.g. the SCI interrupt), so that it may be found correctly by
the ACPI interrupt establish function, should the number be different
from the original source.
2006-08-12 16:19:13 +00:00
christos
b300b74469
Disable SYSTRACE by default on all kernels (discussed with core)
2006-08-12 15:29:52 +00:00
uwe
a2668e7027
Link libkern last. It contains functions normally found in libgcc, so
...
other libraries might have references to them.
Makes this compile with gcc4 (that emits calls to __ash[rl]di3 in libsa).
2006-08-12 11:38:11 +00:00
macallan
5f55aaa2e1
Add audio input support. From Magnus Henoch, fixes PR 32664
2006-08-11 20:37:43 +00:00
rjs
f80e237485
Add timecounter support. Copied from prep.
2006-08-11 15:19:59 +00:00
yamt
467e0c9853
"xm shutdown" support for xen3. ok'ed by Manuel Bouyer.
2006-08-11 13:22:43 +00:00
xtraeme
2dc3c42b88
* Skip duplicated freq values (they show up with different fid/vid).
...
* Fix cstate->fsb before calling k7pnow_states(), we need to use CPU
MHz value like openbsd does.
Tested by Rhialto.
2006-08-10 19:45:09 +00:00
xtraeme
f0c9466074
Update license. I've been talking with Martin Vegiard (original author)
...
and he wanted to move his license to TNF, make it so.
2006-08-10 17:24:10 +00:00
xtraeme
423aebde2b
- Add k7_powernow_destroy() prototype into cpu.h.
...
- Call k7_powernow_destroy() unloading the module.
2006-08-08 21:04:29 +00:00
xtraeme
c822683a97
Attach the "available" node under "frequency". Thanks to Robert Swindells.
2006-08-08 20:13:27 +00:00
cube
f48480c398
files.x86 isn't included by Xen kernels, so opt_powernow_k8.h never gets
...
created by config(1), and thus it's not safe to use it in cpuvar.h.
Simply declare the prototype for k8_powernow_init in powernow.h. No need
to #ifdef protect a prototype, after all, only its users.
Un-breaks build of Xen kernels.
2006-08-08 16:34:34 +00:00
tsutsui
75c544cd93
Workaround fix for a problem caused after IPL_* macro changes.
...
Based on a patch from mrg on port-sun2.
2006-08-07 23:29:38 +00:00
tsutsui
cab7ee65e0
Remove __P().
2006-08-07 23:24:55 +00:00
tsutsui
5011ef47f2
uvm_pagealloc(9) can fail, so handle that case in pmap_enter(9).
2006-08-07 23:19:36 +00:00
xtraeme
08d26dfcb7
Enable POWERNOW_K8, now that it's working.
2006-08-07 21:33:49 +00:00
xtraeme
b34720ab68
* Create "machdep.powernow.frequency" again, it should work with estd.
...
* Remove flags member of powernow_cpu_state, we don't need it.
* Rename fsb member of powernow_cpu_state struct to pll, to use
same struct than is used in powernow_k8.c.
2006-08-07 21:16:03 +00:00
xtraeme
a4a1d218d3
* Do not change struct powernow_pst_s (I added another member in my
...
previous patch) and this MUST be of that size, otherwise the tables
won't be found.
* powernow_k8.c moved into x86/x86, it should work both i386 and amd64.
* Added more DPRINTFs needed to found the first problem.
* Create "machdep.powernow.frequency" again, I can't remember why I
removed frequency... it should work with estd now.
* Do not try to call k[78]_powernow_init() if cpu is not AMD (thanks
to christos).
And more things I can't remember, but this time it will work in
Athlon 64 cpus and it won't crash in EM64T cpus.
2006-08-07 20:58:23 +00:00
oster
e350cc0fbe
Model 14 here is the 'Pentium-M (Yonah)', so let's use that
...
instead of the default.
2006-08-07 17:41:54 +00:00
tsutsui
8dc36c4c0f
KNF, TAB/space cosmetics
2006-08-07 17:36:53 +00:00
cube
bb041282a1
Correctly free freq_names and cstate.
...
XXX This code is bogus anyway. Global variables vs. MP systems, anyone?
2006-08-07 11:39:30 +00:00
xtraeme
421fdf2f64
Free freq_names if k[78]pnow_current_state is NULL, pointed out
...
by cube.
2006-08-06 18:21:32 +00:00
dyoung
0cf23243f9
Use ${SYSDIR}/arch/mips/ instead of ../mips/, which was fragile.
2006-08-06 17:22:47 +00:00
dyoung
bc21bda1c9
Make the 'tags' target work better: use ${SYSDIR}/arch/evbmips/
...
instead of ../evbmips/, which was pretty fragile. Cope with long
argument lists using the echo ${args} | xargs ctags idiom used in
other architectures' tags target.
2006-08-06 17:21:58 +00:00
xtraeme
e7d2347699
* Sync powernow_k7.c driver with OpenBSD, it seems to work much
...
better finding PST tables.
* Use functions defined in powernow_common.c to detect if the
CPU can run powernow.
* Update the LKM with current code.
2006-08-06 16:05:07 +00:00
christos
0fe2e6efc3
PR/34116: Takuya SHIOZAKI: acpiapm(4) misuses config(9)
...
acpiapm(4) always matches the first node of AML, which is unrelated
with acpiapm. Separate acpi(4)'s children into two individual interface
attributes.
2006-08-06 15:46:54 +00:00
xtraeme
9c74798bdd
AMD PowerNow!/Cool`n'Quiet driver for NetBSD/amd64,
...
adapted from OpenBSD.
Tested on a few machines:
http://bigbird.dohd.org:3021/NetBSD/dmesg
http://www.bsd.org.il/netbsd/acpi/dmesg
Thanks to cube, elad and others for testing and fixes.
Enabled by default on GENERIC.
2006-08-06 15:37:21 +00:00
bjh21
891d055e7c
Nothing in the tree pays any attention to "options NC" any more, so don't set
...
it.
2006-08-05 23:11:11 +00:00
bjh21
6e83f00384
The Hydra code should probably be removed, but until it is, it may as well
...
not generate spurious diffs in my tree, so bring it up to my working version.
2006-08-05 23:03:21 +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
d97d9a1480
Xarm32VIDC has supported pckbd(4) for several releases now, so it's probably
...
safe to stop using rpckbd(4) in wscons configurations.
2006-08-05 22:33:44 +00:00
sanjayl
265929b20e
1st cut of Powermac G5 support (uses bridge mode).
2006-08-05 21:26:48 +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
mhitch
74f4d61b61
gcc4 fix: change a couple of volatile void functions.
2006-08-04 02:32:30 +00:00
mhitch
710f94acb4
gcc4 fix: needs string.h
2006-08-04 02:30:48 +00:00
mhitch
856bf4faf5
gcc4 fix: needs stdlib.h
2006-08-04 02:30:00 +00:00
mhitch
7e08a789a6
gcc4 fix: correct declaration of 'end'.
2006-08-04 02:26:49 +00:00
mhitch
1b474f00d6
gcc4 fix: change prototype and definition of volatile void usage().
2006-08-04 02:23:23 +00:00
mhitch
370e3a585e
gcc4 fix: need to cast string variable.
2006-08-04 02:21:19 +00:00
mhitch
8511e80fdb
gcc4 fix: gcc4 more strict on checking signed/unsigned.
2006-08-04 02:19:55 +00:00
mhitch
5a37c00320
gcc4 fix: gcc4 bug generates a label twice. This label can't be conveniently
...
ignored like bpendtsleep, but a clue from the commit skipping the bpendtsleep
label for vax provides a workaround. Move the label to an earlier location
and gcc4 only generates one label. The label just marks the start of
memory protected during a memory test, so excluding a little more memory
from that test should be fine.
2006-08-04 02:17:34 +00:00
mhitch
26264a025e
gcc4 fix: correct of couple of casting errors picked up by gcc4.
2006-08-04 02:09:19 +00:00
mhitch
7e0fcda313
gcc4 fix: include sy/device.h to pick up a definition of something which
...
I've forgotten - needed by gcc4.
2006-08-04 02:07:59 +00:00
mhitch
ce5b58c8c7
gcc4 fix: gcc3 was apparently more lax in structure declarations - change
...
order of including nextkbdvar.h and wskbbdmap_next.h.
2006-08-04 02:05:12 +00:00
mhitch
b9021f4ff0
gcc4 fix: correct declaration of 'end'.
2006-08-04 01:58:49 +00:00
mhitch
1f636ff58a
gcc4 "uninitialized" variable; previous workaround doesn't satisfy gcc4 -
...
explicitly initialize drq.
2006-08-04 01:56:42 +00:00
mhitch
4016823297
gcc4 fix: needs stdlib.h
2006-08-04 01:51:31 +00:00
mhitch
3264771d41
gcc4 fix: static devsw didn't match the prototype.
2006-08-04 01:50:30 +00:00
mhitch
c97e01a899
gcc4 fixes: need to include stdlib.h; fix prototype and definition of
...
local error() function.
2006-08-04 01:48:02 +00:00
mhitch
fa97ed2f83
More gcc4 "uninitilized" variables.
2006-08-04 01:45:05 +00:00
mhitch
425bfd4d05
gcc4 "uninitialized" variables; just like pmap_motorola.c and amiga/pmap.c.
2006-08-04 01:44:12 +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
mhitch
977da07ffe
gcc4 checks for and warns of matching constraints that don't specify
...
a register operand. Remove the matching constraint and change the output
operand constraint from "=m" (write-only) to "+m" (read-write).
2006-08-03 20:32:07 +00:00
mhitch
23e6dfaccf
Add a new ADOS partition type, "RAI?" to specify a RaidFrame partiion
...
which can then be autoconfigured. Currently can only use the 'c'
partition of the raid* device, since there will be no RDB on the device.
2006-08-03 20:29:54 +00:00
mhitch
1553e3ad3f
gcc4 uninitialized warning - initialize the darned thing like pmap_motorola.c.
2006-08-03 20:26:24 +00:00
mhitch
7f15b0ef11
gcc4 checks for and warns about specifying a general register constraint
...
for operands that won't accept an address register. Change constraint
to specify only a data register.
2006-08-03 20:24:57 +00:00
hubertf
db43815c20
Add commented-out "joy* at eap?" & point people at eap.4 before enabling.
...
Per discussion with drochner@
2006-08-03 00:19:21 +00:00
reed
242dae6299
Fix comment, removed some periods at end of a couple comments (not all),
...
and alphabetize "ral" before "re".
This will make it easier to diff with GENERIC_LAPTOP.
No real changes.
2006-08-02 16:24:29 +00:00
reed
35728fe8e7
Fix some comments, tabs or indenting, and some ordering
...
to make this easier to diff with the GENERIC config.
No real changes.
2006-08-02 16:20:45 +00:00
jmcneill
165e6acd89
Allow unichromefb(4) to be the system console.
2006-08-02 01:44:50 +00:00
he
788b068ad5
Bump SYMTAB_SPACE so that it fits again.
2006-08-01 22:21:19 +00:00
hubertf
ded0447fa8
spc(4) can also attach to pcmcia(4), as was already in hpcmips/GENERIC
...
for quite some time. Add it to all systems that have pcmcia SCSI.
Pointed out by Björn Johannesson <rherdware@yahoo.com> in private mail,
OK'd by matt@
2006-07-31 23:29:54 +00:00
he
ade3eb1a11
Also comment out audio* at audiobus? now that no audio device is available.
2006-07-31 22:53:43 +00:00
wiz
a1fd1fd937
Sort twa before twe.
2006-07-31 22:23:09 +00:00
mrg
95543a8e6e
add a new "biosmem_implicit" variable that is set when a bootloader
...
info parser sets "biosbasemem" and "biosextmem" from. check for this
when probing memory size, rather than biosbasemem/biosextmem being
zero which is no longer true. also, make the REALBASEMEM/REALEXTMEM
options work properly with multiboot-booted kernels. fixes PR#33918.
2006-07-31 20:59:07 +00:00
christos
fa94c5cda1
mention the correct PR/33725
2006-07-31 18:40:41 +00:00
christos
596f06d2d9
workaround for PR 33918
2006-07-31 17:07:27 +00:00
ad
39e6d49dad
tcfb_cnattach(): pass the slot address through TC_PHYS_TO_UNCACHED() in
...
case the PROM hands us a physical or KSEG0 address.
2006-07-31 00:19:05 +00:00
bouyer
0a5662efed
Add twa(4) and ld at twa
2006-07-30 17:55:31 +00:00
bouyer
7877547494
Add twa(4) and ld at twa where it makes sense.
2006-07-30 17:53:50 +00:00
simonb
6c1cfac08b
Add support for 82945GM and (untested) 82945P AGP. FreeBSD and
...
Linux both treat the 945 series exactly the same as the 915 series
for AGP, so just match a few extra device IDs.
2006-07-30 04:23:44 +00:00
ad
d8360081f7
Remove RASTERCONSOLE support from the pmax port.
2006-07-29 19:10:56 +00:00
kiyohara
43b03eea5b
Alphabetical order.
2006-07-29 19:02:28 +00:00
riz
dd3bbab5ac
Change "-mcpu=i486" to "-mtune=i486" so this will compile with gcc4.
2006-07-28 20:16:14 +00:00
hannken
fc67a08a9c
Remove 'unused variable p'.
2006-07-28 14:08:11 +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
0050618207
deprecate "options VERIFIED_EXEC"
...
veriexec pseudo-device doesn't need a count anymore too
XXX: port masters should propagate this to their ports
2006-07-26 15:34:39 +00:00
tron
30d6332135
Bluetooth fixes by Iain Hibbert:
...
Remove bthset(4) device and add btsco(4) in its place. This is an
improved version which is not just for headsets, as it can receive
incoming connections (eg for Hands Free Profile). Update bthset(1)
control utlitiy to relate to new device.
2006-07-26 10:43:01 +00:00
tron
4241fec1bf
Bluetooth fixes by Iain Hibbert:
...
Change the way in which bluetooth devices attach to system. The
new way is for devices to attach directly to a btdevN device via
its own control file /dev/btdevN.
- bthub(4) is replaced by btdev(4).
- /dev/bthubctl is replaced by /dev/btdevN.
- configuration now uses proplib(3) property lists.
- btcontrol(8) updated to use new API, and now uses private
- XML config file /var/db/btdev.xml.
2006-07-26 10:30:59 +00:00
martin
a8770a2683
Make it compile again
2006-07-26 08:09:21 +00:00
cube
cad5e9a56c
Remove "atapibus* at umass?" and "scsibus* at umass?" when there is
...
already an attachment to the interface attribute (atapi and scsi).
Part of PR#34085, although it is the contrary to what the submitter
suggests (which shows that having both in a config file can be confusing).
2006-07-26 07:00:23 +00:00
elad
ddf6300b26
typo; from Arnaud Lacombe, thanks!
2006-07-25 18:43:15 +00:00
elad
290bf1e3e7
fix typoe; thanks ober
2006-07-25 18:14:20 +00:00
riz
e0f4b4c3cf
Adapt to change in args for falloc(). Reported by Hisashi T Fujinaka
...
on current-users.
2006-07-25 05:14:38 +00:00
mrg
9eca1294f7
fix a typo in a comment and a very minor KNF.
2006-07-25 00:23:38 +00:00
gdt
cf30106955
Add UGEN_BULK_RA_WB, requested by cube@.
2006-07-24 17:41:30 +00:00
kardel
587059915b
get tickle_tc() prototyped unconditionally
2006-07-24 16:37:24 +00:00
gdt
f9f3dc0a85
Add UGEN_BULK_RA_WB, which allows users of ugen(4) to request read
...
ahead and write behind, improving performance for the Universal
Software Radio Peripheral (USRP) used with GNU Radio.
Enable UGEN_BULK_RA_WB in GENERIC and GENERIC_LAPTOP; behavior is
unchanged unless the new ioctl is called.
This code was written by Joanne Mikkelson under funding from DARPA's
ACERT program.
ok'd by christos@, tested by Berndt Josef Wulf
2006-07-24 14:24:48 +00:00
drochner
53f4a934ae
revert previous (executable mapping of data needed for secondary CPU
...
spinup), this is not needed anymore
2006-07-24 10:57:13 +00:00
drochner
b5d3716437
Set the "NXE" bit (if available) early, before the cpu_info struct
...
is accessed. Without this, the (secondary) CPU chokes on the NX bit in
the PTE.
2006-07-24 10:55:25 +00:00
ad
f474dceb13
Use the LWP cached credentials where sane.
2006-07-23 22:06:03 +00:00
uwe
68272cc770
tlb_exception: Move and indent TLB_ASSERT to reduce visual clutter.
...
Fix function name in the panic message. Print expevt on panic.
Split panic message so that the dumped numbers are on a separate line.
2006-07-22 22:43:43 +00:00
uwe
3ed02eac7c
exp_type[] was constified in exception.c but an extern declaration in
...
db_interface.c was not updated. Declare it publicly. While here,
constify the array itself too.
2006-07-22 21:58:29 +00:00
tsutsui
84180e1158
- reorganize bootinfo structures and fix bootinfo handling in bootloader
...
(mostly based on pmax)
- pass symbol info from bootloader to kernel via bootinfo
(currently bootinfo is allocated in the bootloader and
copied by kernel later; maybe we should rethink about this)
- use passed bootinfo to initialize ksyms(4) in kernel
- remove options SYMTAB_SPACE from kernel config files
- bump bootloader version
2006-07-22 18:15:05 +00:00
tsutsui
6efaa65c79
Add "-I${S}/../common/include" to CPPFLAGS for libprop sources in libkern.
...
XXX: shouldn't this be handled by sys/lib/libkern/Makefile.inc?
2006-07-22 14:11:35 +00:00
tsutsui
83d364980f
TAB/space cleanup.
2006-07-22 06:58:17 +00:00
tsutsui
ecc22258ee
- remove parentheses from return
...
- remove trailing spaces
2006-07-22 06:42:41 +00:00
tsutsui
999dc402f0
KNF, remove register decls
2006-07-22 06:40:44 +00:00
tsutsui
9b4ab881f1
- include <m68k/m68k.h> for fputype decl
...
- some KNF
2006-07-22 06:40:20 +00:00
tsutsui
2bf43cdfa1
remove __P(), ANSIfy, KNF, use pmap_t rather than struct pmap *
2006-07-22 06:37:27 +00:00
tsutsui
2895c250c2
KNF, ANSIfy, remove register decls
2006-07-22 06:36:06 +00:00
tsutsui
4d891ed888
KNF and misc cosmetics
2006-07-22 06:34:41 +00:00
tsutsui
f430313b2d
- remove unused decls.
...
- remove parentheses from return arg
2006-07-22 06:32:17 +00:00
tsutsui
c15c158ffc
KNF, ANSIfy, de-__P(), bzero() -> memset()
2006-07-22 06:27:00 +00:00
uwe
acfbe0b252
Report traps from user break controller as ksi_code = TRAP_TRACE
2006-07-22 03:22:15 +00:00
uwe
2e7b010133
Minor cosmetics.
2006-07-22 03:06:56 +00:00
uwe
43d9f78e91
Using "irq" in different functions to either x or 1<<x is confusing.
...
Rename.
2006-07-22 02:13:06 +00:00
uwe
c50fbd7f2b
We don't need to update HD6446X_NIMR when (dis)establishing an
...
interrupt as splx will update it from the recomputed mask anyway.
2006-07-22 01:53:49 +00:00
uwe
485a350c1b
hd6446x_intr_priority_update: simplify.
2006-07-22 01:34:55 +00:00
uwe
e8ceae81ee
Shave off one instruction in hd6446x_intr_raise.
2006-07-22 01:16:16 +00:00
tsutsui
b6558b0616
Use bus_space_map(9) and bus_space_vaddr(9).
2006-07-21 18:40:58 +00:00
tsutsui
a75de8e2db
Use more proper macro.
2006-07-21 18:11:01 +00:00
tsutsui
3c612311d0
Use bus_space_map(9) and bus_space_vaddr(9) rather than iomap().
2006-07-21 18:05:30 +00:00
tsutsui
888ea5adc5
Use macro defined in dioreg.h.
2006-07-21 15:14:11 +00:00
tsutsui
7d4b57d7bc
Some KNF.
2006-07-21 10:01:39 +00:00
bjh21
cf7ce97e4b
Silly error: xos_cli() should call XOS_CLI, not OS_CLI.
2006-07-20 23:35:20 +00:00
tsutsui
2e21abf224
Identify models HP362 and HP382. From OpenBSD, tested on my HP382.
...
Note now options HP362 and options HP382 are required for these models
in your kernel config file.
2006-07-20 13:21:38 +00:00
rumble
ec5b122721
Regen.
2006-07-20 13:12:32 +00:00
rumble
4d3ba0cd44
Beautify.
2006-07-20 13:12:01 +00:00
rumble
db767e167c
Add entries for the Phobos G100, G130 and Set Engineering GIO Fast Ethernet
...
cards.
2006-07-20 13:11:27 +00:00
bjh21
5bdcc8987d
-mshort-load-words has been removed in GCC 4. It was only an optimisation,
...
so just stop using it.
2006-07-20 10:53:12 +00:00
rumble
b0631951f9
Disable haltwo(4) by default. The driver does not properly determine when
...
the audio hardware is not present and causes a hang on Challenge-S systems.
Approved by pooka@ and sekiya@.
2006-07-20 10:37:25 +00:00
kochi
c8920f2898
eliminate bogus acpi debug #define symbols
2006-07-20 05:05:26 +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
tsutsui
2c2371cf55
Adjust comments.
2006-07-19 19:29:02 +00:00
tsutsui
82cc83ca42
Set cpuspeed for HP_400 and HP_425 explicitly.
2006-07-19 19:25:48 +00:00
tsutsui
4c07c7291c
Adapt stand sources to changes of intio device offset macro.
2006-07-19 19:23:56 +00:00
tsutsui
e4b249fede
oops, fix typo
2006-07-19 18:28:58 +00:00
tsutsui
d0e89b46cb
- strncpy() -> strlcpy()
...
- adjust buffer length
2006-07-19 18:25:40 +00:00
tsutsui
83ed44a817
some KNF
2006-07-19 17:32:15 +00:00
tsutsui
f94698e954
Define base address offsets of intio devices in intioreg.h
...
and replace various magic numbers with the macro.
2006-07-19 17:21:23 +00:00
tsutsui
33663964ec
Use iobase address passed from attach args.
2006-07-19 17:18:03 +00:00
tsutsui
d72fb94231
- use __arraycount()
...
- remove parentheses from return values
2006-07-19 16:23:41 +00:00
tsutsui
6b93d0f87d
Use CPUFLAGS="-march=vr5000 -mabi=32".
2006-07-19 15:33:53 +00:00
tsutsui
fd040c4006
Add and update misc items.
2006-07-18 13:24:39 +00:00
tsutsui
e621e8f3df
- always enable options MIPS3_ENABLE_CLOCK_INTR so that spllowerclock(9)
...
works properly
(XXX: the real fix is to implement proper CLFK_BASEPRI())
- prepare an independent statclock(9) handler which use MIPS3 CPU internal
clock interrupt. Enabled by options ENABLE_INT5_STATCLOCK, but not enabled
by default.
2006-07-18 12:51:01 +00:00
tsutsui
fe55d37a26
Remove obsolete comment.
2006-07-18 12:21:42 +00:00
salo
36848f108e
G/C apm_power_print() for APM_POWER_PRINT case, make it compile.
...
ok <christos>
2006-07-17 21:04:17 +00:00
martin
d91f1187f9
Back out previous - it apparently was not even compile tested.
2006-07-17 11:36:50 +00:00
christos
7358f7042d
PR/34007: Noriyuki Shiota: vmstat fails on the multiboot kernel booted by
...
GRUB-0.97. Initialize some previously unititiazed ELF header fields.
2006-07-16 21:16:22 +00:00
gdamore
d5875505ba
Remove unused memp. Fixes coverity CID 3713 from run 61.
2006-07-15 20:52:59 +00:00
tsutsui
970c192eba
- configure PCI space for viaide so that DMA will work even if the firmware
...
doesn't map DMA registers properly
- enable viaide secondary port explicitly which isn't enabled by some firmware
Tested on RaQ and RaQ2.
2006-07-15 08:08:23 +00:00
elad
c4afa933de
add (commented out) fileassoc(9) kernel options on some popular archs.
2006-07-15 07:55:20 +00:00
skrll
96bba029ff
KNF
2006-07-15 06:44:43 +00:00
gdamore
e19a48dbd2
Cleanup old aucom entries. Left marked obsolete in majors, and removed from
...
dev/DEVNAMES.
2006-07-14 17:44:07 +00:00
seanb
13d47e9c25
Consistently establish / disestablish shutdown hook
...
in the bus layer and remove from common ath_attach().
Having it in both layers (on some bus architectures)
was causing a double call to ath_stop() on shutdown
which in turn was tickling the bus lockup described
therin on slower machines.
2006-07-14 13:37:25 +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
gdamore
2f446293b4
Activate argpio. Apparently I forgot to commit this change earlier.
...
Noticed while merging other com(4) changes.
2006-07-13 21:38:24 +00:00
bjh21
642809bdd7
Bump version number for today's changes.
2006-07-13 21:32:12 +00:00
gdamore
ccee3fc76f
Revert yamon_getenv() so it returns char *. While this is suboptimal, it is
...
the only convenient way to use the returned value with numerous library
routines which have not been altered to properly use constified char *.
This was found to be necessary when I extended yamon to hold a string
describing a video mode for use with my experimental radeonfb.
2006-07-13 21:06:18 +00:00
uwe
4c3c91e691
De-__P. ANSIify.
...
Same object code is generated (except in prf.c, where putchar argument
type was changed to int to match the prototype and one instrcution
changes accordingly).
strategy() in ofdev.c was not ANSIified in this sweep, b/c that
changes code generated at call sites!
2006-07-13 20:03:34 +00:00
garbled
a59f110c72
Rather than hardcode the location of the Interrupt Vector Register, we
...
try to locate it using the residual data. On some machines this doesn't
work, so we fall back to hardcoding it. This should fix isa interrupts
on the 7025-F40, which has the IVR at a different location.
2006-07-13 17:50:37 +00:00
bjh21
0867d7e87d
RCS ID header.
2006-07-13 16:48:18 +00:00
bjh21
c5e6021bb2
Pass the argument to OSModule_Free in the correct register. This stops
...
NBFS leaking memory.
2006-07-13 16:29:46 +00:00
bjh21
99d7b7bca3
Fix error handling in nbfs_close().
2006-07-13 16:11:41 +00:00
bjh21
723176de91
Handle Service_FSRedeclare correctly. NBFS now works after restarting
...
FileSwitch.
2006-07-13 16:09:58 +00:00
bjh21
bd0da079fe
Add Service_FSRedeclare.
2006-07-13 16:03:23 +00:00
bjh21
a0121cb653
Sensible error handling, with libsa errors being mapped to useful RISC OS
...
errors. Also centralise our filing system number (as yet unassigned) in
nbfs.h.
2006-07-13 15:51:54 +00:00
drochner
dee4b5b02f
Map kernel stack and "struct cpuinfo" of secondary processors with
...
execute permission. (I don't understand yet why the latter is needed.)
This fixes crashes of MP kernels reported by Kurt Schreiner and in
the context of PR port-amd64/33927 (which is about a different problem
otherwise).
MP kernels reported to boot again by Dave Huang and Kurt Schreiner.
2006-07-13 10:53:08 +00:00
simonb
4f3492d966
Add a blank line between two unrelated parts of code.
2006-07-13 07:36:04 +00:00
simonb
580c3efb5a
Add ksyms pseudo device.
2006-07-13 04:52:04 +00:00
simonb
d70131b1fd
Move the ksyms pseudo device to the miscellaneous section.
2006-07-13 04:50:36 +00:00
ross
afb5180310
wrap as(1)-only elements in #ifdef _LOCORE
2006-07-12 23:52:21 +00:00
he
7a66dda031
Omit specifying the secondary bootloader on the installboot command line
...
for sparc64 systems. This should fix PR#33987.
Also adapt to the way sparc64 32-bit kernels now report its CPU
architecture -- these still need the sparc64 boot loader, but now
report hw.machine = sparc. Adapt by testing machdep.cpu_arch
instead.
Hints from martin and mrg.
2006-07-12 21:34:45 +00:00
garbled
40bedaf4c8
Add support for rebooting 7024 and 7025 models. Since I cannot figure
...
out how to properly reboot these machines, instead we make use of the
auto-poweron-alarm time, and power cycle the machine to simulate a
reboot. This is a hack, but until I get documentation on these machines,
at least you will be able to reboot them.
2006-07-12 21:28:33 +00:00
perry
c857ec66f9
Note that people should not be using UFS_DIRHASH.
2006-07-12 18:45:51 +00:00
gdamore
2fe9781d59
Initialize batt for gcc 4.x, and while here add $NetBSD$ comment.
2006-07-12 15:03:24 +00:00
yamt
e81b1eeaa7
implement NETRXF_csum_blank/NETTXF_csum_blank tx checksum "offloading".
2006-07-12 15:03:08 +00:00
yamt
897bdba2b9
implement a simple NETTXF_csum_blank/NETRXF_csum_blank workaround
...
so that we can talk with linux guests at least.
just fill checksum field of received packets if the flag is set.
maybe should be revisited later.
2006-07-12 15:02:15 +00:00
yamt
2b405338d9
revert the previous because it doesn't work without destdir populated.
...
pointed by Valeriy E. Ushakov.
2006-07-12 14:56:59 +00:00
yamt
ed6b31b9e9
-I${S}/../common/include for libprop.
2006-07-12 13:51:18 +00:00
yamt
4adfbedff5
include stdlib.h for exit().
2006-07-12 13:50:23 +00:00
simonb
cc85b518f1
Remove unused ppc4xx_tlb_unpin() function.
2006-07-12 06:22:17 +00:00
yamt
eeb2c6eb23
inittodr: if xen3, add processed_system_time (system_time) to
...
shadow_tv (wc_sec/nsec) as linux guest does.
2006-07-11 12:26:58 +00:00