dyoung
22f9e4aae7
On the output path, save a power-saving station's ieee80211_node
...
in the mbuf's rcvif field so that the driver can get at it.
2003-11-02 00:17:27 +00:00
dyoung
e3bc096fe4
Bug fix: in wi_cfg_txrate, do not divide the 802.11 rate by 2 and
...
take off the flags before giving it to wi_write_txrate.
Also add a useful debug message to wi_write_txrate.
2003-11-01 23:57:05 +00:00
reinoud
4e923603f1
Fix for PR # 23264 thanks to Mike Pumford; it is only attatching clock once
...
now.
2003-11-01 23:37:54 +00:00
mycroft
e45065a344
Dropped a word...
2003-11-01 23:22:54 +00:00
mycroft
c4330d824f
A small list of things needed here.
2003-11-01 23:22:21 +00:00
tsutsui
bd0f8ee224
- Adapt to MI mk48txx(4) changes.
...
- Switch rtc (M5819) routines to use MI mc146818(4) driver.
Tested on Ultra5 (mkclock_ebus), but mkclock_sbus and rtc_ebus are not tested.
XXX This file should be split into each device and each bus attachment,
XXX and moved into sys/arch/sparc64/dev or sys/dev/sun.
2003-11-01 23:04:32 +00:00
tsutsui
deb5638bdc
Adapt to MI mk48txx(4) changes.
...
Tested on SS1+ (mainbus), but not tested on sun4/sun4m (obio).
XXX maybe this file should be split into mainbus and obio attachments
XXX and moved into sys/arch/sparc/dev or sys/dev/sun.
2003-11-01 22:59:24 +00:00
mycroft
4b29327094
Don't bothering reinitializing the sensor name strings when the battery info
...
is updated. Do print out the battery manufacturer info, though. (It's too
bad we can't return this through envsys........)
2003-11-01 22:55:53 +00:00
tsutsui
4e8b58dd02
- Adapt mkclock_isa.c to MI mk48txx(4) changes.
...
- Switch mcclock_isa.c to use MI mc146818 driver.
- Use todr(9) interface with both todclock drivers.
2003-11-01 22:54:46 +00:00
tsutsui
2ddfa78de4
Adapt MI mk48txx(4) changes. Tested on NWS-3470D (hb) and NWS-5000X (apbus).
2003-11-01 22:50:45 +00:00
tsutsui
164022f59e
Adapt MI mk48txx(4) changes. Tested on NWS-1750.
2003-11-01 22:49:38 +00:00
tsutsui
97717cc9f4
Adapt MI mk48txx(4) changes. (compiles but untested)
2003-11-01 22:48:01 +00:00
tsutsui
6fa76b3b92
No need to include <dev/ic/mk48txxreg.h> here.
2003-11-01 22:42:23 +00:00
tsutsui
614e6d4de9
Cleanup MI mk48txx(4) todclock driver:
...
- Prepare mk48txxvar.h and leave only register definitions in mk48txxreg.h.
- Define struct mk48txx_softc as usual devices and allocate necessary
members like struct todr_chip_handle in it.
- Change mk48txx_attach(), mk48txx_nvwr() and mk48txx_nvrd() to take
struct mk48txx_softc.
2003-11-01 22:41:42 +00:00
tsutsui
ab09fdd80e
Rename flag NO_CENTURY_ADJUST -> MC146818_NO_CENT_ADJUST to avoid conflicts.
2003-11-01 21:58:43 +00:00
mycroft
31806f9f22
One more spot for a structure change.
2003-11-01 20:58:33 +00:00
scw
f557964d0c
Quell an uninitialised variable warning.
2003-11-01 20:04:57 +00:00
yamt
142a2d4058
- update uvm_map::size fewer places.
...
- add related assertions.
2003-11-01 19:56:09 +00:00
yamt
c45bf442f2
commit rest of the previous (rbtree).
...
(i should check .rej files before commit, sorry)
2003-11-01 19:45:13 +00:00
yamt
64f5a4d263
make this compilable again with ACPI_DEBUG.
2003-11-01 19:24:42 +00:00
tsutsui
c747a93798
Count necpb interrupts with evcnt(9).
2003-11-01 19:23:52 +00:00
provos
c224a63428
use fdremove to remove kqueue file descriptor so that bitmap information
...
is maintained correctly; found by Juergen Hannken-Illjes
2003-11-01 18:47:16 +00:00
manu
bb7e6443cb
Remove all our real devices from the IOKit registry, as they won't be
...
usefull. Emulate only IOHIDSystem, IOFramebuffer and friends in the
registry.
ioreg is able to display the tree and dump the properties.
2003-11-01 18:41:25 +00:00
matt
1dc67abbb1
Compile at -O2. Fix various GCC3-isms
...
XXX mem.c still fails to assemble.
2003-11-01 18:23:37 +00:00
jdolecek
8f8952e2b1
add a macro to copy ksiginfo_t, and use it in kern_sig.c:ksiginfo_put()
...
change suggested by Christian Limpach
2003-11-01 17:59:57 +00:00
tsutsui
518c5a2e6a
Fix an uninitialized warning.
2003-11-01 17:48:20 +00:00
jdolecek
3abecdb88d
avoid stong words in comments
2003-11-01 17:35:42 +00:00
he
d800494086
Based on the historic hp300 pmap, initialize firstpage to TRUE, and
...
negate that after processing the first page.
2003-11-01 17:16:30 +00:00
jdolecek
467746e275
avoid strong words; use 'screw' instead
2003-11-01 17:00:49 +00:00
cl
5d2db86263
cleanup whitespace and debugging output
2003-11-01 15:36:35 +00:00
he
22c1eedd0c
Initialize needcflush to FALSE in pmap_do_remove().
2003-11-01 15:32:47 +00:00
yamt
fe3e5aa0b8
as we know PTPs are zero-filled when being freed,
...
mark them PG_ZERO so that they'll be used to serve UVM_PGA_ZERO requests.
2003-11-01 15:21:02 +00:00
yamt
d6dc30aeba
in uvm_pagefree and friends, if freed pages have been marked by
...
PG_ZERO flag, put them to PGFL_ZEROS queue rather than default one
so that we can re-use zero-filled pages efficiently.
2003-11-01 15:18:42 +00:00
yamt
e36739df67
use explicit "l" suffixes.
...
(xor -> xorl)
2003-11-01 15:14:27 +00:00
tsutsui
fe1d71458c
- Flush cache only if mips_sdcache_line_size == 0 in pmap_copy_page() when
...
options MIPS3_L2CACHE_ABSENT is defined.
- Fix comments following #endif for MIPS3_L2CACHE_ABSENT.
2003-11-01 14:48:16 +00:00
jdolecek
c12a055f27
g/c index.c and rindex.c (not used anywhere)
2003-11-01 13:17:01 +00:00
jdolecek
d944bca949
rename local index() to strchr()
2003-11-01 13:02:04 +00:00
jdolecek
917bc10805
g/c local index() routine and switch to (libkern's) strchr()
2003-11-01 12:56:32 +00:00
jdolecek
0ce8029b4c
shutup one bogus -Wunitialized warning, and fix one correct
...
XXX parrw() routine looks like not actually correct for transfers
XXX larger than sc_burst - someone with the hardware should check & fix this
2003-11-01 12:53:33 +00:00
jdolecek
ca2d6f9331
drop register qualifiers
2003-11-01 12:43:30 +00:00
jdolecek
8064ffcedd
fix several places where variables might be used uninitialized
2003-11-01 12:41:59 +00:00
jdolecek
aae2faadc5
the storagesize parameter of extent_create() is a size_t, not a pointer
2003-11-01 12:21:14 +00:00
jdolecek
5a088df3e8
mem_exists(): pacify one apparently bogus -Wuninitialized warning
...
setmemrange(): add default case for cputype (same as CPU_68030), to fix
a potential uninitialized use
2003-11-01 12:18:55 +00:00
jdolecek
b1686553ae
drop register qualifiers
2003-11-01 11:50:53 +00:00
jdolecek
a51175c327
fix potential use of uninitialized local variable 'error'
2003-11-01 11:44:46 +00:00
yamt
57e554da69
track map entries and free spaces using red-black tree
...
to improve scalability of operations on the map.
originally done by Niels Provos for OpenBSD.
tweaked for NetBSD by me with some advices from enami tsugutomo.
discussed on tech-kern@ and tech-perform@.
2003-11-01 11:09:02 +00:00
mycroft
efe8779bb3
Provide percentages for the threshold values too.
2003-11-01 10:55:12 +00:00
yamt
922ad03e28
don't try to lookup addresses out of the map in uvm_coredump_walkmap().
2003-11-01 10:43:27 +00:00
mycroft
7be875cdd8
Whoops, made a typo there.
2003-11-01 10:25:35 +00:00
mycroft
cf1951c350
Split "load" into "charge rate" and "discharge rate", depending on the state
...
of the battery.
2003-11-01 10:24:17 +00:00
tsutsui
ac30bfe8d4
Remove nonexistent arch/pmax/pmax/mcclock.c. (pmax uses dev/dec/mcclock.c)
2003-11-01 09:52:19 +00:00
mycroft
5c001506f5
Small change to use the "last full capacity" as the capacity maximum.
2003-11-01 09:49:45 +00:00
mycroft
007e2cd3b4
There's no need to clear the data_s fields now that the VALID bits are correct.
2003-11-01 09:41:25 +00:00
yamt
f41e60e6a0
as there shouldn't be any mappings when pmap_destroy() is called,
...
assert there is no remaining PTPs at that point.
2003-11-01 09:07:11 +00:00
mycroft
be8e41d93a
sc_lockhandle is garbage.
2003-11-01 08:34:54 +00:00
mycroft
10e36668fc
Remove an unnecessary call to AcpiGlearGpe().
2003-11-01 08:27:37 +00:00
mycroft
b596969039
Correct arguments to AcpiClearGpe().
2003-11-01 08:14:39 +00:00
mycroft
ff9f7d764c
Do not install address handlers before calling AcpiEnableSubsystem() -- this
...
is done by AcpiInitializeObjects() anyway.
2003-11-01 08:03:24 +00:00
jdolecek
0b33ae64cb
in sigtimedwait(), use malloc(9)ed (and thus wired) memory for the waitset
...
we pass via sigctx, so that it guaranteed that the memory wouldn't be
paged out at the time the signal arrives
potential problem pointed out by YAMAMOTO Takashi
2003-11-01 07:44:14 +00:00
christos
ddb8b44bce
include opt_malloclog.h
2003-11-01 07:07:31 +00:00
christos
d7f9038062
Add MALLOCLOG
2003-11-01 06:50:13 +00:00
sekiya
4f800421dd
Use be*toh() and htobe*() to permit use in cross-build environments. Add -h flag to override default volume header size.
2003-11-01 06:30:44 +00:00
shin
70f5a0a5b2
cache_r10k.c rev. 1.1 is broken. Because,
...
1) R10k uses VA0 to select cache ways, but in rev. 1.1, VA14
is used instead.
2) R10k does not support HitWriteBack and should map HitWriteBack
to HitWriteBackInvalidate, but in rev. 1.1, HitWriteBack is not
handled properly.
So, cache_r10k.c rev. 1.1 was replaced by new implementation.
2003-11-01 04:42:56 +00:00
mycroft
6831bfd482
Remove some unused #defines.
2003-11-01 03:45:58 +00:00
uwe
72b8dfe22a
In hd64461video_update_videochip_status init depth to supress bogus
...
-Wuninitialized.
2003-11-01 03:45:52 +00:00
mycroft
8dc2532a4f
Update copyright.
2003-11-01 03:45:48 +00:00
uwe
e9dc4000d1
XXX: Init dummy variable that we only use in asm() to pacify
...
XXX: -Wuninitialized. There must be a better way.
2003-11-01 03:24:12 +00:00
uwe
289bc4802a
#include "debug_kloader.h"
2003-11-01 02:29:08 +00:00
uwe
818209017c
In intc_intr_priority init iprreg to pacify gcc.
2003-11-01 02:24:49 +00:00
cl
f6e633af3a
- add missing P_WEXIT check
...
- assign lwp to sa_vp before setting P_SA/L_SA flags
- don't unlock/lock the kernel lock around mi_switch unnecessarily
2003-11-01 02:09:52 +00:00
cl
b936d40f39
Avoid sneaking past signal delivery in sa_upcall_userret():
...
generate unblocked upcalls in sa_unblock_userret(), before signal
delivery/p_userret handling in userret().
Also defer getting state for preempted upcalls because on some ports
preemption can happen between sa_unblock_userret() and sa_upcall_userret().
2003-11-01 01:38:46 +00:00
mycroft
63bc27bf55
Correct arguments to AcpiInstallGpeHandler, as per Linux and FreeBSD.
2003-11-01 01:38:25 +00:00
mycroft
8632b558b7
Move a declaration.
2003-11-01 01:03:23 +00:00
manu
762ffea0a4
Build again whereas I removed adarwin_ioresource.c (removed before it
...
was committed...)
2003-11-01 00:42:04 +00:00
manu
53b35abfa2
Parent itarators in the IOKit emulation. A driver can only
...
have one parent yet (on Darwin, multiple parents are possible: the IOKit
seems to handle a graph more than a tree). Introfuction of a keyboard
driver parent for IOHIDSystem.
The kernel keymapping is still a big mystery.
2003-11-01 00:32:44 +00:00
cl
8edffb7356
Avoid race condition where an LWP is put into the cache before
...
its state is saved:
- don't sa_putcachelwp() in sa_vp_repossess/sa_vp_donate
- only defer saving the event LWP's state
- sa_putcachelwp() after the interrupted LWP's state is saved
2003-10-31 23:36:50 +00:00
cl
8904362ede
Allow defer of event and interrupted LWP state independently.
...
Removes code duplication in sa_upcall_getstate() and allows
sa_upcall_getstate() to be used to get state of a single LWP.
2003-10-31 22:47:44 +00:00
cl
def5d22a63
Don't PHOLD() in sa_putcachelwp() because the scheduler lock is held.
...
PHOLD() before grabbing the scheduler lock unless the lwp is curlwp.
2003-10-31 22:03:18 +00:00
mycroft
0ec2bd2926
Whoops, forgot the /10 in the default case.
2003-10-31 21:52:11 +00:00
mycroft
a4061d6dec
Update for structure changes.
2003-10-31 21:49:39 +00:00
mycroft
3c3855c148
Print out the polling interval, and display a less confusing message if _TZP
...
is not defined.
2003-10-31 21:44:50 +00:00
mycroft
fbd3c995b1
Remove an outdated comment.
2003-10-31 21:39:51 +00:00
briggs
e6f9248f47
Use aprint_*(9) instead of printf() in attach routines.
2003-10-31 21:25:09 +00:00
fvdl
ab3d5bdcea
Catch up with the new acpica code.
2003-10-31 20:56:55 +00:00
mycroft
fec4c11f9e
Catch up with ABI changes in ACPI-CA. Some additional changes to acpi_bat to
...
set the VALID bits correctly, so we don't report garbage for missing batteries.
2003-10-31 20:54:18 +00:00
mycroft
3970401fd9
Add a file.
2003-10-31 20:52:47 +00:00
mycroft
ded1804c79
Catch up with changes to the AcpiOs*() interfaces.
2003-10-31 20:52:30 +00:00
mycroft
6c29cf39bb
Merge acpica-unix-20031029.
2003-10-31 20:51:07 +00:00
mycroft
0314a111c1
Import latest ACPI-CA.
2003-10-31 20:47:38 +00:00
petrov
9cc6a54d18
Don't attach zs at mainbus.
2003-10-31 20:10:06 +00:00
petrov
5a0a3beffd
Attach zs to sbus only, current driver cannot attach to mainbus.
2003-10-31 20:06:54 +00:00
mycroft
31273d1288
We were passing flags to AcpiEnableSubsystem() that aren't even used there.
...
Call AcpiInitializeObjects() to create global variables and run _INI methods.
2003-10-31 17:22:28 +00:00
mycroft
f0b481ee05
Swap the order of buffer initialization and _STA/_INI execution. _INI methods
...
sometimes want to store data in global buffers (e.g. on the Inspiron 8500, to
remember initial battery status).
2003-10-31 17:21:01 +00:00
tsutsui
d135aa4588
In swap_endian_disklabel(), don't forget copy members which are not
...
needed to byteswap.
2003-10-31 17:04:12 +00:00
scw
b4c2d3dbb0
Insert some nops around the load instructions in badaddr_read_N().
...
That way, we can be sure any imprecise data abort actually happens
before clearing pcb_onfault.
2003-10-31 16:54:05 +00:00
cl
ef56cc40ab
Reduce code duplication by adding mi_userret() in sys/userret.h
...
containing signal posting, kernel-exit handling and sa_upcall processing.
XXX the pc532, sparc, sparc64 and vax ports should have their
XXX userret() code rearranged to use this.
2003-10-31 16:44:34 +00:00
scw
336806eb55
Overhaul arm32's abort handlers:
...
- Assume a permission fault is always the result of an attempted
write, so no need to disassemble the opcode.
(as discussed with Richard Earnshaw/Jason Thorpe a week or two ago)
- Split out non-MMU data aborts into separate functions, and deal
correctly with XScale imprecise aborts. Specifically, the old code
made no attempt to handle the double abort faults which can occur
as a result of two consecutive external (imprecise) aborts. This
was easy to provoke by read(2)ing from a /dev/mem offset which caused
an external abort. With the old code, this would bring the system
down instantly, with little clue as to why. (hint: tf_spsr held
PSR_ABT32_MODE...)
- Re-write badaddr_read() to use pcb_onfault instead of adding extra
overhead to data_abort_handler(). A side effect of this is that it
now benefits from the XScale double abort recovery.
- Invoke the cpu-specific prefetch/data abort fixup routines only if
the host cpu actually needs it. On other cpus, the code is optimised
away.
- Sprinkle __predict_{false,true} in all the right places.
- G/C some excess debugging baggage.
2003-10-31 16:30:15 +00:00
bouyer
2564505612
In sci_scsipi_request, add a splbio() which was erroneously missed when
...
thorpej_scsipi was integrated. Pointed out by Havard Eidnes.
2003-10-31 14:38:44 +00:00
reinoud
22f94d4a8e
Rollback
2003-10-31 14:22:48 +00:00
drochner
0622a85590
don't need ELF_INTER_NON_RELOCATABLE anymore if no COMPAT_16, from simonb
2003-10-31 14:06:29 +00:00