thorpej
a264c879c9
Remove the DMA controller register defns from this file (much like
...
the AAU registers are not in this file) -- iopdma is not specific to
i80321.
2003-02-06 02:01:35 +00:00
briggs
6c79464645
Actually make a bitmask for ICU_INT_HWMASK.
2003-02-06 01:36:07 +00:00
perry
b46df93398
Document a URL from which you can get the ACPICA programmer reference manual.
2003-02-06 00:27:06 +00:00
manu
2e73bb80fe
More IOKit basics. Also introduced a mach_port flag to get a precise idea
...
of what port is sending a message to the kernel.
2003-02-05 23:58:09 +00:00
pk
23c6c463a9
Remove unused variable.
2003-02-05 22:14:01 +00:00
dsl
bfd68d9702
Change to use .codw16/32 and ensure buffer address <64k
...
(approved by christos)
2003-02-05 21:50:25 +00:00
dsl
d77171664a
A buffer slipped though the net... Ensure offset < 64k.
...
(approved by christos)
2003-02-05 21:48:53 +00:00
dsl
7db25b39f8
Remove unused defines
2003-02-05 21:41:51 +00:00
pk
338f31f581
Make the buffer cache code MP-safe.
2003-02-05 21:38:38 +00:00
pk
09843e3b7e
Pull in <sys/lock.h>.
2003-02-05 20:34:56 +00:00
matt
62efa61d00
Add ${EXTRA_OBJ} so that pre-compiled .o's can be linked into the kernel.
2003-02-05 18:07:46 +00:00
perry
a314df3d18
change t_extended to t_extended0 for consistency with KBR_EXTENDED[01]
...
and t_extended1
Fix comment to note that PAUSE keycodes are being remaped to 7F, not
BREAK, which isn't strictly accurate by the various pieces of official
documentaiton.
2003-02-05 17:36:16 +00:00
pk
bb52ffdf64
Make the tty subsystem MP-safe..
...
..as far as mere mortals are able to, since this code illustrates the finest
points that Italian haute cuisine has to offer.
2003-02-05 15:49:02 +00:00
briggs
c17a890fc8
Fix DIAGNOSTIC printf format.
2003-02-05 15:38:14 +00:00
briggs
6d78dc7cfc
Ensure that MEMORY_RBFLAGS is defined whether or not MEMORY_DISK_DYNAMIC.
2003-02-05 15:20:29 +00:00
nakayama
e3e4805068
Replace machine/rnd.h with more appropriate name to share it
...
with cycle counter based microtime in kern/kern_microtime.c.
2003-02-05 13:57:50 +00:00
nakayama
d364c62597
Switch to kern/kern_microtime.c , so these are no longer needed.
2003-02-05 12:42:01 +00:00
nakayama
64eb1178ab
Share i386/tsc_microtime.c with alpha and sparc64 as kern_microtime.c.
...
(approved by martin)
2003-02-05 12:18:01 +00:00
nakayama
a42ba8d2e3
Share alpha/microtime.c with i386 and sparc64 as kern_microtime.c.
...
(approved by martin)
2003-02-05 12:16:41 +00:00
nakayama
8920acd333
Switch to use cycle counter (%tick) based microtime().
...
This is derived from alpha/microtime.c and i386/tsc_microtime.c,
and will share with both ports.
This should fix PR port-sparc64/18452.
(approved by martin)
2003-02-05 12:06:51 +00:00
tsutsui
6aea963ed9
It seems the LAN Adapter on dreamcast actually uses slow 150ns SRAM,
...
so handle it properly by an additional quirk flag in sc_flags.
The problem was reported by Pat Wendorf on port-dreamcast, and
the fix was suggested and confirmed by Christian Groessler.
2003-02-05 12:03:54 +00:00
matt
cc7308ce0b
Make _LP64 friendly.
2003-02-05 07:35:31 +00:00
matt
a835619dbe
Needed for compat_netbsd32.
2003-02-05 07:16:49 +00:00
matt
6522fb435a
Make LP64 friendly.
2003-02-05 07:16:27 +00:00
matt
3cdbb8ccfe
Make things a bit more LP64 friendly.
2003-02-05 07:05:19 +00:00
matt
37f4a39d7e
Don't define pmap_t if _LOCORE is defined.
2003-02-05 01:27:34 +00:00
augustss
16bb013530
Add Palm Zire. From kern/20206, Michael van Elst.
2003-02-05 00:50:14 +00:00
augustss
24f2257398
Regen.
2003-02-05 00:49:05 +00:00
augustss
a7d8c3912e
Add Palm Zire.
2003-02-05 00:48:47 +00:00
kleink
62138f6396
unask -> unmask
2003-02-05 00:07:34 +00:00
perry
1f4ad37fe3
"Utilize" has exactly the same meaning as "use," but it is more
...
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
2003-02-05 00:02:24 +00:00
perry
4c5a18c475
correct grammar and use use
2003-02-04 23:40:21 +00:00
martin
688ebd679e
Fix swapped malloc parameters - caught by recent malloce(9) changes.
2003-02-04 23:26:36 +00:00
manu
357afc4e2f
Some bits of the first iokit call
2003-02-04 22:47:41 +00:00
leo
012a1e59d5
NUL -> NULL.
2003-02-04 21:32:03 +00:00
leo
0e53a5006f
Fix typo.
2003-02-04 21:24:54 +00:00
leo
a3bd5d401e
Extra bug fix on the config changes as implemented by Aymeric on the Amiga:
...
fake up a dv_cfdriver entry before calling config_search(). config_search()
does not do the lookup for us anymore.
2003-02-04 21:21:45 +00:00
martin
fd690f8523
PADT is always send with ethertype PPPOE_DISCOVERY, no matter if we
...
have reached session state or not.
Fixes PR kern/20203 by Shoichi Miyake.
2003-02-04 20:52:23 +00:00
pk
e148067544
ltsleep(): deal with PNOEXITERR after re-taking the interlock (if necessary).
2003-02-04 20:15:59 +00:00
pk
557a5199d2
Make this driver MP-safe by using a single spin lock to guard all its entrances.
2003-02-04 20:05:11 +00:00
augustss
3cb14e4ac0
Regen.
2003-02-04 18:52:16 +00:00
augustss
9d1301b388
Add another ThumbDrive (from FreeBSD).
2003-02-04 18:51:49 +00:00
augustss
267379440e
Fix a botched loop copied from the ohci driver (already fixed in ohci.c).
...
Pointed out by Daniel Ellis <dan@pod51.demon.co.uk>.
2003-02-04 18:41:20 +00:00
wrstuden
28a2da880e
Add defines and structure for control mode page.
2003-02-04 18:09:40 +00:00
thorpej
b7f3c62431
Use bus_dmamap_load_mbuf() in fxp_add_rfabuf().
2003-02-04 17:50:53 +00:00
thorpej
b6fa4ee6ba
Use bus_dmamap_load_mbuf() in wm_add_rxbuf().
2003-02-04 17:40:31 +00:00
martin
060b3ab19e
Fix return value of pseg_set, which I accidently broke in rev. 1.164.
...
Fix register names in comment and shave off another register (hint
from uwe).
2003-02-04 15:58:27 +00:00
jdolecek
f02bf3cc39
add XXX coment to sadata_upcall_alloc() noting this might need to zero memory
...
use 'l' for sa_yield() tsleep call; sa->sa_idle == l there
add DIAGNOSTIC printf on one more place in sa_upcall_userret() where
we kill process with SIGILL
2003-02-04 15:54:26 +00:00
jdolecek
920114e6e6
itimerfire(): fix bug in previous - if two or more timers would
...
fire close together, the second (and every other) timer would be
added to mask incorrectly - timerid value would be shifted twice,
and sa_upcall() would later kill process with SIGILL
2003-02-04 15:50:06 +00:00
jdolecek
e74edaffe1
cosmetic - use type 'timer_t' for timerid local in sys_timer_create()
...
and sys_timer_delete()
2003-02-04 15:46:39 +00:00
yamt
085e223bb8
don't restore cpl at end of Xsoft*.
...
it's too early and allows recursive interrupts.
hopefully fixes PR 20180. (SAITOH Masanobu)
Ok'ed by Frank van der Linden.
2003-02-04 14:17:11 +00:00
yamt
05628fc8d1
constify wait channels of ltsleep/wakeup. they are never dereferenced.
2003-02-04 13:41:48 +00:00
matt
938c539a86
Add CPPFLAGS+=-D__daddr_t=int32_t
...
Add snprintf.c to libsa/Makefile
2003-02-04 13:34:56 +00:00
matt
085785f2d9
Add CPPFLAGS=-D__daddr_t=int32_t to shrink primary boot block.
2003-02-04 13:21:49 +00:00
matt
7c49a58fcd
Fix wrong argument to free due to malloc_type changes. While there,
...
spot blatant bug by inspection and fix that as well. (do not compare
scaled value against unscaled value).
2003-02-04 13:20:45 +00:00
martin
968efa18d6
Format fix for archs where ptrdiff_t != int.
2003-02-04 10:14:53 +00:00
jdolecek
97ec641999
Introduce EVFILT_TIMER, which allows a process to establish an
...
arbitrary number of timers, both oneshot and periodic.
from FreeBSD, only adapted to NetBSD kernel API - mstohz() instead
of tvtohz(), and takes advantage of callout_schedule() in filt_timerexpire()
2003-02-04 09:02:04 +00:00
thorpej
74e0a051d0
Delete unused variable (result of callout changes). kern/20194.
2003-02-04 07:19:56 +00:00
matt
e372842a1a
deal with malloc_type fallout.
2003-02-04 05:24:51 +00:00
thorpej
2ee9a875f2
Use callout_setfunc() and callout_schedule().
2003-02-04 03:31:32 +00:00
matt
eef22c368e
opt_l2cr_config.h is now opt_ppcparam.h
2003-02-04 03:15:40 +00:00
perry
b3c149b15f
pro forma -- no actual changes but the source file did change version
2003-02-04 01:43:11 +00:00
perry
dcb5109a39
Add explicit comment handling.
...
Handle any [A-Z]{3} preceded value, not just "PNP".
2003-02-04 01:42:32 +00:00
matt
52263a8c80
LKM's need a pmap_t typedef but there's no PPC_xxx to defined which pmap.h
...
to include. So just declare the pmap_t and don't do anything else.
2003-02-04 01:31:49 +00:00
thorpej
1b84adbe5f
New callout implementation. This is based on callwheel implementation
...
done by Artur Grabowski and Thomas Nordin for OpenBSD, which is more
efficient in several ways than the callwheel implementation that it is
replacing. It has been adapted to our pre-existing callout API, and
also provides the slightly more efficient (and much more intuitive)
API (adapted to the callout_*() naming scheme) that the OpenBSD version
provides.
Among other things, this shaves a bunch of cycles off rescheduling-in-
the-future a callout which is already scheduled, which the common case
for TCP timers (notably REXMT and KEEP).
The API has been simplified a bit, as well. The (very confusing to
a good many people) "ACTIVE" state for callouts has gone away. There
is now only "PENDING" (scheduled to fire in the future) and "EXPIRED"
(has fired, and the function called).
Kernel version bump not done; we'll ride the 1.6N bump that happened
with the malloc(9) change.
2003-02-04 01:21:03 +00:00
perry
d30d72b4a5
Add a comment noting the origin of the list
...
XXX We need to make it easier to import this list
XXX We also need to find a more comprehensive list
2003-02-04 01:12:06 +00:00
perry
5ac6107478
Correct an obvious syntax error (a comment without a # in front of it)
2003-02-04 00:49:56 +00:00
thorpej
882dec6ba3
Test callout_pending(), not callout_active(), and eliminate now-unnecessary
...
callout_deactivate() calls.
2003-02-03 23:50:59 +00:00
thorpej
c09e8e04cb
Explicitly pull in <sys/queue.h>.
2003-02-03 23:47:13 +00:00
nathanw
86c56c4ffe
Prevent one timer from overrunning another with the current userret
...
mechanism by keeping a list (bitset) of which timers have fired and using
that list in the upcall (Does this sound familiar? SEND HELP NEED SIGINFO).
Provoke the idle LWP into running again with setrunnable(sa->sa_idle)
instead of a wakeup() call, since we know what it is.
2003-02-03 23:39:40 +00:00
matt
a0ade92f9c
Add -DPPC_OEA to CPPFLAGS
2003-02-03 23:35:39 +00:00
chris
3e2914e858
bus dma memory is allocated as M_DMAMAP so free it as M_DMAMAP, not DEVBUF.
2003-02-03 23:34:50 +00:00
nathanw
6722952b21
In sa_yield(), sleep on a p->p_sa->sa_idle instead of just p, to avoid
...
being woken up by the the reaper when a child process is cleaned up
(SIGCHLD will still cause this to run, and threads actually waiting
for the child will still see the wakeup, of course).
Should fix various spurious wakeups that manifest as assertion
failures in pthread__idle().
2003-02-03 23:31:42 +00:00
chris
b1e5771653
Trivial change, convert a tqh_first to TAILQ_FIRST().
2003-02-03 23:16:30 +00:00
matt
b4450c6d3c
Move ibm4xx vmparam.h to powerpc/include/ibm4xx directory. Add a stub
...
vmparam.h to choose the right vmparam. This is needed so evbppc can host
both ibm4xx and oea based eval boards.
2003-02-03 23:09:29 +00:00
matt
a53ed95ee8
Allow "the forcing of root on md0a to single user" to be overriden by using
...
options MEMORY_RBFLAGS=0 (XXX forcing to single user needs to die).
2003-02-03 23:02:42 +00:00
jdolecek
373f926356
use LIST_FOREACH() for iteration over p_lwps
...
when panniccing with 'Invalid process state', print the state too
2003-02-03 22:56:23 +00:00
jdolecek
abc0ac3bc2
attempt to fix compilationg errors for printf formats due to 64bit daddr_t
...
adresses PR port-mac68k/20188 by Hauke Fath
2003-02-03 22:38:23 +00:00
jdolecek
b327a5601a
don't bother special-casing DTYPE_KQUEUE/DTYPE_MISC nor panic for unknown
...
descriptors; just return with EOPNOTSUPP for any unsupported descriptor type
2003-02-03 22:29:07 +00:00
jdolecek
b1fc5ffac3
procfs_allocvp():
...
* do not set *vpp unless successful, otherwise we'd trigger
DIAGNOSTIC panic in lookup(9) on error return
* on error, make sure to free malloc'ed memory and ungetnewvnode() the
previously acquired vnode
this fixes panic on 'tail -f <file> &; ls -l /proc/$!/fd' reported by
Andrew Brown
fix reviewed by Christos Zoulas
2003-02-03 22:27:42 +00:00
matt
a25898cf6e
Don't use trapframe in sigcontext. Instead define a new structure
...
utrapframe that fixed in size (and the same size as the trapframe
in NetBSD 1.5). This preserves binary compatibility for those programs
that dealt looked at sigcontexts.
2003-02-03 21:48:01 +00:00
manu
a643d6a63e
Fixed typo
2003-02-03 20:46:55 +00:00
matt
2b0e97a561
Rename PPC_MPC6XX to PPC_OEA (and any mpc6xx reference to oea).
2003-02-03 17:09:53 +00:00
pooka
b0c44d4948
regen
2003-02-03 13:28:54 +00:00
pooka
6330131ed7
add GeForce2 Go
2003-02-03 13:27:57 +00:00
joda
1c2dd5ecde
regen
2003-02-03 11:00:53 +00:00
joda
fc8756e1aa
correct previous, and add some more devices found in the Shuttle
...
SS51G.
2003-02-03 11:00:26 +00:00
mhitch
4897781d3c
Use 32 bit daddr_t due to space limitations when using 64 bit div/mod.
2003-02-03 07:17:13 +00:00
mhitch
ff7f90827c
Add 64 bit div/mod for 64 bit daddr_t changes and snprintf.
2003-02-03 07:16:08 +00:00
matt
3e793a03a1
More cleanup for OLDPMAP.
2003-02-03 05:15:51 +00:00
briggs
f6909b984b
Revert my last change. While it actually allows a build to finish,
...
an iso-image created from the resulting release won't boot. I don't
know if this change is the source of that, but one more knowledgable
than I about the x86 booter needs to look at this, and I don't want
the waters muddied any more than necessary.
2003-02-03 03:03:16 +00:00
kleink
7db9fed5ea
Fix printf format warnings.
2003-02-03 01:11:54 +00:00
perseant
14c17e57b4
Don't call a dirop within a dirop: if lfs_rename is actually deleting
...
a link, call lfs_remove directly before starting dirop rather than
having ufs_rename do it.
2003-02-03 00:32:35 +00:00
atatat
9301bc18e8
Specify VMCMD_FIXED in NEW_VMCMD() for flags instead of 0. Fixes
...
a.out emulations on sparc.
2003-02-03 00:21:42 +00:00
briggs
c6b14f1ca4
Add CPPFLAGS+= -D__daddr_t=int32_t.
2003-02-03 00:08:30 +00:00
matt
193a5761aa
Remove OLDPMAP support.
2003-02-02 21:22:11 +00:00
dsl
a3b6bf84d6
Increase MAXFLENTRIES - the limit is being hit on some systems.
...
(approved by christos)
2003-02-02 21:08:55 +00:00
dsl
bf6f586096
Change comments to refer to increased default number of fragments
...
(approved by christos)
2003-02-02 21:05:15 +00:00
bouyer
5700f75418
Fix DEBUG printf warning.
2003-02-02 20:55:16 +00:00
matt
f38c95025b
This file is no longer needed.
2003-02-02 20:47:38 +00:00