Commit Graph

68323 Commits

Author SHA1 Message Date
cl
e2c29624f5 Prevent sa_newcachelwp() from creating new LWPs when the process is exiting.
This should fix PR 23418 which was also reported by Thomas Klausner and
Ian Fry (who also provided core dumps for analysis - thanks!).

Also g/c sa_yieldcall since it's now safe to put LWPs back into the cache.
Also return stacks in failure case.
2003-11-12 21:27:46 +00:00
dsl
0342c9586a - Count number of zombies and stopped children and requeue them at the top
of the sibling list so that find_stopped_child can be optimised to avoid
  traversing the entire sibling list - helps when a process has a lot of
  children.
- Modify locking in pfind() and pgfind() to that the caller can rely on the
  result being valid, allow caller to request that zombies be findable.
- Rename pfind() to p_find() to ensure we break binary compatibility.
- Remove svr4_pfind since p_find willnow do the job.
- Modify some of the SMP locking of the proc lists - signals are still stuffed.

Welcome to 1.6ZF
2003-11-12 21:07:37 +00:00
dbj
d3bad238a2 XXX an impossible malloc failure check in set_statfs_info 2003-11-12 20:38:24 +00:00
drochner
038b8b6573 Uhm - the last change broke everything but very simple setups.
(it only allowed to boot an nfs /netbsd automatically)
To make it work for people who can't tell the DHCP server to pass
the right kernel file to pxeboot, without losing flexibility for
people who can, do the following:
Use the filename given by the DHCP server if it contains a ":". A ":"
was already used to seperate filesystem and filename, so we don't
lose anything. Otoh, a path to pxeboot usually doesn't contain a ":",
so it should still work if we got the old pxeboot filename again.
2003-11-12 18:44:08 +00:00
jandberg
79eacc067d amidisplaycc.c:
Add screen types suitable for PAL displays, and fix typos
	in older screen type names; reported by Gunther Nikl.
amidisplay.4:
	Document the new screen types and add some misc information.
2003-11-12 17:42:40 +00:00
jandberg
3f581624a0 Fix bug/typo and rewrite some funnily structured code.
Pointed out by compiler warnings.
2003-11-12 17:26:36 +00:00
itojun
3107b5dcc0 implement net.inet6.ifq 2003-11-12 15:25:19 +00:00
itojun
d46ad3421a KNF 2003-11-12 15:00:05 +00:00
yamt
9a34eb3d5a - fix deadlocks due to using lock_status() from interrupt context.
- process pending queries in EcUnlock() to close a race window.
  now there's no need to do polling for EcQuery().
- reorder inline functions and other prototypes so that
  the formers can get needed prototypes.
- add missing prototypes.
2003-11-12 13:59:23 +00:00
cl
e6bcfbd5e0 catch up with in_ifaddr -> in_ifaddrhead rename 2003-11-12 13:40:16 +00:00
yamt
5980449814 use snprintf("%X") instead of "%x" + strupr(). 2003-11-12 13:18:24 +00:00
dsl
ec098b8a13 Double space for memory disk to 5MB, this costs (almost) nothing on the
install media and the kernels (and sysinst) will still run on a 16MB system.
(They haven't run on an 8MB system for a while - might affect 12MB though.)
The additional space in the root filesystem lets sysinst core dump properly!
2003-11-12 11:47:34 +00:00
augustss
2fecfb383c Don't free non-malloced memory. From mlang@delysid.org 2003-11-12 11:29:12 +00:00
ragge
4a9b211e76 Remove the FAST_MBSEARCH ifdef, send packet prediction is now default. 2003-11-12 10:48:04 +00:00
simonb
bb845a9d67 Use just "type" and not "sc->sc_type" in cominit().
Pointed out by Shoichi Miyake in private mail.
2003-11-12 06:27:59 +00:00
manu
40a3558468 mach_msg_ool_ports_descriptor_t describe a memory region containing
an array of mach_port_name_t, not mach_msg_port_descriptor_t.
2003-11-12 00:00:28 +00:00
fvdl
9d4e217e09 From FreeBSD:
* erratum: disable the nocrc RX bit, as it may cause problems on the 570{1-4}.
  adjust the length of the incoming packet accordingly to trim it.
* the 5704 has a smaller MBUF_POOL, so set a smaller value

Local change:
* Pass the autoneg force flag to mii_attach. Some PHYs need to be kicked
  out of their falsely autoneged 10baseT state with this.
2003-11-11 22:28:58 +00:00
drochner
ca3116d2f1 in_ifaddr -> in_ifaddrhead
use TAILQ_FOREACH macro
2003-11-11 21:41:11 +00:00
enami
67b61c37a8 Prevent mkdep from parsing compiler flags like -pipe. 2003-11-11 21:26:53 +00:00
drochner
14332cf998 fix interface address list traversal in if_detach():
The code was assuming that interface addresses are removed one-by-one.
With IPv6 and multicasts, removal of one address can remove other
addresses as side effect, which caused accesses of free()d memory.
2003-11-11 20:33:46 +00:00
jonathan
79bf8521a5 Change global head-of-local-IP-address list from in_ifaddr to
in_ifaddrhead. Recent changes in struct names caused a namespace
collision in fast-ipsec, which are most cleanly fixed by using
"in_ifaddrhead" as the listhead name.
2003-11-11 20:25:26 +00:00
manu
b6b7d129a1 Added mach_thread_set_state 2003-11-11 18:12:40 +00:00
manu
a2bed85761 Implement mach_thread_get_state.
While we are here, try to tag machine dependent functions in header files.
also transformed darwin_ppc_*_state into mach_ppc_*_state, as this is
what they really are (COMPAT_DARWIN is on the top of COMPAT_MACH, not the
other way around)
2003-11-11 17:31:59 +00:00
manu
95cc30edca Correctly implement task_suspend and task_resume: the struct proc is
taked from mp->mp_data.
2003-11-11 17:26:32 +00:00
pk
bb69a241e8 Remove ancient DDB-dependent `hide/integrate'.
Simplify lewrcsr/lerdcsr; read-back after write doesn't hurt on sun4 so
skip the cpu type test in generic kernels.
2003-11-11 15:01:05 +00:00
manu
6961fe8c08 Fix an unitialized variable bug that caused a crash in mach_task_suspend().
While we are there, resolved another mystery: the unallocated port described
in the comment removed by this commit was in fact allocated by mach_task_pid().
2003-11-11 15:00:09 +00:00
augustss
b87f6623d3 Regen. 2003-11-11 10:55:32 +00:00
augustss
7e013f13c6 Add a Cypress USB2 hub. 2003-11-11 10:54:56 +00:00
scw
f99d0398fb The previous commit had a #endif in the wrong place. 2003-11-11 08:27:16 +00:00
sekiya
b3023f06a5 Rework the boot loader:
* remove dead code,
	* streamline kernel selection logic,
	* various small bugfixes.
2003-11-11 06:47:00 +00:00
sekiya
fdf5374e91 Remove unused variables. 2003-11-11 06:42:15 +00:00
sekiya
f87a5a5324 Add getopt.c 2003-11-11 06:28:15 +00:00
christos
6dc8df292b KASSERT was not the right thing here. Instead only set the type if f_type
has been inititialized. Reported by pooka
2003-11-11 00:44:16 +00:00
jonathan
b86d07f435 Allocate sysctl oid for ipv4 sysctl node "ifq", define symbolic name, and
bump IPCTL_MAXID. (Should have been committed with other ifq sysctl changes).
2003-11-10 20:50:29 +00:00
jonathan
88ba77e705 Make per-protocol network input queue stats visible to userland via
sysctl. Add a protocol-independent sysctl handler to show the per-protocol
"struct ifq' statistics. Add IP(v4) specific call to the handler.
Other protocols can show their per-protocol input statistics by
allocating a sysclt node and calling sysctl_ifq() with their own struct ifq *.

As posted to tech-kern plus improvements/cleanup suggested by Andrew Brown.
2003-11-10 20:03:29 +00:00
rearnsha
31a79ddeb0 In vm_phsyseg_find, use u_int for start, len and try when doing a
binary search.  Avoids the need for signed division by 2.  Approved
by thorpej.
2003-11-10 16:13:05 +00:00
thorpej
9a0c12a504 Correct the size passed to a malloc() call when performing command
passthrough for userland management tools.
2003-11-10 15:35:39 +00:00
drochner
bc80d3e635 Reading the (non-MII) media status if the card is not running yields
"0xffff" (eg on i386) or a machine check (on alpha).
So don't read the status if !(UP&RUNNING).
2003-11-10 12:30:27 +00:00
itojun
f5c2aa04b0 splsoftnet() on spd/sad-dump-via-sysctl to ensure no 2 threads to go into
the function, or entries being removed during the dump operation.
suenaga@iij
2003-11-10 10:52:13 +00:00
wiz
c2f9db9c64 Update URLs; from Jared Yanovich via jmc@openbsd. 2003-11-10 09:02:08 +00:00
wiz
864bb22441 Update URL; from Jared Yanovich via jmc@openbsd. 2003-11-10 08:58:39 +00:00
wiz
34eb26eec2 Update URL; s/Linix/Linux/. From Jared Yanovich, forwarded by jmc@openbsd. 2003-11-10 08:55:41 +00:00
wiz
ee1b406595 Spell address with two d's. Inspired by similar changes in OpenBSD,
originating from Jonathon Gray and forwarded by jmc@openbsd.
2003-11-10 08:51:51 +00:00
fvdl
0a3fa4cdb1 Trim ramdisk and remove some unneeded options. 2003-11-10 00:52:28 +00:00
scw
62816f9d48 Ditch some obsolete toolchain definitions and flags. 2003-11-09 23:30:39 +00:00
manu
7c1e8e9716 There is some padding on the reply packet of vm_make_memory_entry too. 2003-11-09 23:17:15 +00:00
manu
ffe118644c Added missing padding fields in vm_make_memory_entry request packet. 2003-11-09 23:07:05 +00:00
manu
d7d1474c7a Typo 2003-11-09 23:05:29 +00:00
uwe
79ddf479da Add adc, j6x0pwr, j6x0tp. 2003-11-09 22:36:17 +00:00
christos
2cd9243922 - kill bzero/bcopy
- defopt stats and settings, removing their definitions from the files
- make code compile by eliminating multicharacter constants!?! and rearranging
  variable declarations so they are defined before used!?!
- help gcc with uninitialized variables
2003-11-09 22:11:12 +00:00
uwe
19d60bc09e Compile identity ntoh*/hton* only for big endian case. 2003-11-09 22:04:00 +00:00
petrov
8ab0c67f4e Lower PIL_AUD so /dev/audio will not interrupt and interfere with
scheduler. Fixes kern/23382.
2003-11-09 21:52:31 +00:00
scw
f64ae6c776 s/NULL/0/ 2003-11-09 21:39:48 +00:00
scw
4c4ac42348 More format string fallout. 2003-11-09 21:37:08 +00:00
scw
eb042dabb2 Fix format string lossage. 2003-11-09 21:12:08 +00:00
pk
72c519a615 __cpu_simple_unlock: avoid instruction re-ordering by the compiler. 2003-11-09 21:04:44 +00:00
scw
c55851c88b Fix format string warnings for platforms where
sizeof(db_addr_t) > sizeof(long). e.g. ILP32 on sh5.
2003-11-09 20:52:18 +00:00
martin
146396081b bzero/bcopy -> memset/memcpy 2003-11-09 16:41:52 +00:00
scw
6bf28caf3e bzero is no longer used in the kernel. 2003-11-09 16:12:57 +00:00
martin
76bfd5ab17 Nuke bcopy/bzero. 2003-11-09 14:28:56 +00:00
he
b158245614 Fix another instance where `offset' might have been used uninitialized,
by adding a non-DEBUG default: and a panic().
2003-11-09 14:26:15 +00:00
scw
cd75387049 Clear r3 to zero after dealing with the pseudo-header. 2003-11-09 12:24:48 +00:00
scw
2f54b52eac Print a trap/intr frame's SPC value. 2003-11-09 12:22:15 +00:00
scw
89a3825de9 In scif_rxsoft, bail early if the input buffers have not been initialised yet.
This can happen if we drop into ddb on the serial console before
scif_attach() has been called.
2003-11-09 12:19:54 +00:00
kochi
ca17019a08 * Preserve original $Revision$
* add __KERNEL_RCSID
2003-11-09 11:50:59 +00:00
martin
c9f72038da bzero is gone from the kernel 2003-11-09 11:25:18 +00:00
martin
ef4ac967a7 Fix a comment (there is no bzero/bcopy any more) 2003-11-09 11:24:38 +00:00
martin
59c6900880 Get rid of bcopy/bzero. 2003-11-09 11:23:54 +00:00
manu
70a91d4b66 Better warnings on not fully implemented mach traps. 2003-11-09 11:10:11 +00:00
scw
a02e49b067 Fix a genuine uninitialised variable. 2003-11-09 11:09:11 +00:00
scw
41d2057ea7 Pick the right value for {,_}MACHINE_ARCH according to endianness.
Spotted by mrg@.
2003-11-09 08:27:19 +00:00
yamt
c337d7540c fix typos in comments. 2003-11-09 07:57:15 +00:00
yamt
29352ed442 - fix an use-after-free bug in /dev/fd/* handling.
specifically, don't keep a stale pointer in fd_ofiles.
  it isn't needed anymore as fd allocation is now done using bitmaps.
- clean up dupfdopen() a little.
- don't call fd_used() unnecessarily.
2003-11-09 07:55:38 +00:00
yamt
1fc953c5e2 in the non-overwritten case of sys_dup2(),
call fd_used() by itsself rather than leaving it to finishdup().
2003-11-09 07:52:26 +00:00
tsutsui
112c91d583 Use #if defined(_KERNEL_OPT) to protect #include "opt_xxx.h"
from building LKM etc. Suggested by mrg.
2003-11-09 05:29:59 +00:00
uwe
9df7e01734 Implement trivial WSDISPLAYIO_SVIDEO that flips DON bit in LCDLDR1.
This only turns off the display in the LCD controller.

TODO: Need to add a platform specific way to turn the screen on and
off as well (e.g. on Jornada 680 this is bit 0 in hd64461 GPIO port B).
2003-11-09 02:05:42 +00:00
uwe
680e83de11 Get rid of bcopy relics. Minimize diffs against the libc version. 2003-11-09 01:03:56 +00:00
uwe
f28afa6ac5 Nuke bcopy. Move the code to memmove.S (which it is) make memmove the
primary entry point and comment out the bcopy entry point.

Kernels before and after the change are identical.
2003-11-08 23:59:12 +00:00
uwe
aa4c79f23b For the rasops-drawn cursor the fg/bg indices are bit inverted, so
provide complimentary colors in the upper 16 entries.
2003-11-08 22:49:28 +00:00
manu
43a6b5539b Make ngetdents working again, after the strcpy -> strlcpy move broke it
(because of an incorrect len argument)
2003-11-08 22:36:01 +00:00
fvdl
f601ca945b Add POSIX 1003.1b semaphores. 2003-11-08 21:38:18 +00:00
manu
6d58f326f1 Build again with SIGINFO, patches from Christopher Sekiya. 2003-11-08 21:35:26 +00:00
manu
352595e88d Warkaround warning for uninitalized variables 2003-11-08 21:33:34 +00:00
manu
ee7a6d2747 Restore COMPAT_IRIX signal delivery to an usable state. We provide a
fake sigcode so that trampoline vers checks in sigaction1() will not
return EINVAL. Another fix would be to duplicate code from svr4_sys_sigaction()
to irix_sys_sigaction() and call sigaction1() with vers != 0. We do not
do that because it would duplicate some code.
2003-11-08 21:28:45 +00:00
tsutsui
1fafd3e354 Define all members in TX/RX DMA descriptors as u_int32_t and use proper shift
and mask ops since smc83c170 chips access them in 32bit width with proper
byteswap mechanism, so that all #if BYTE_ORDER in descriptors can be removed.
While here, do some slight optimizations in epic_start() and epic_intr().
2003-11-08 16:08:13 +00:00
tsutsui
addcf5d254 #if defined(_KERNEL_OPT) is enough, #if !defined(_LKM) isn't needed
in that case. Pointed out by mrg.
2003-11-08 15:19:20 +00:00
lukem
7ce35daccc Add '.SUFFIXES: .m4' here, now that <sys.mk> doesn't provide it anymore.
It appears that .PATH.m4:  needs it.
Should fix problem noted in private mail by Markus W Kilbinger.
2003-11-08 14:45:02 +00:00
pk
582c396832 Construct arguments properly and update comment in previous bzero -> memset
changes.
2003-11-08 14:04:26 +00:00
martin
6e204ff9bc Fix previous (bzero -> memset), it overlooked the delay slot.
Use set and clr pseudo instructions to simplify the code a bit.
2003-11-08 13:21:36 +00:00
tsutsui
ecd13dfa39 Add pseudo-device ksyms 2003-11-08 12:17:53 +00:00
tsutsui
81d609b1f5 Remove obsolete comments about curproc. 2003-11-08 12:17:25 +00:00
tsutsui
3dc4924359 In trap(), curlwp could be NULL so don't refer it implicitly. 2003-11-08 12:08:12 +00:00
tsutsui
7a6d021fe2 Include "opt_lockdebug.h" only #if !defined(_LKM) && defined(_KERNEL_OPT). 2003-11-08 12:06:20 +00:00
tsutsui
dc9a6c03b4 Adapt to replacement of apcireg.h and dcareg.h. 2003-11-08 12:02:33 +00:00
tsutsui
f009006333 Remove obsolete files by MI com(4) driver support. 2003-11-08 11:22:11 +00:00
tsutsui
30f361a050 Move apcireg.h and dcareg.h to stand/common since they are no longer used
by kernel.
2003-11-08 11:19:30 +00:00
tsutsui
63b14eb5b6 Switch DCA and APCI serial devices to use MI com(4) driver.
DCA is tested on HP362 and HP382 with serial console,
but APCI on HP4xx is not tested yet.
2003-11-08 11:18:33 +00:00
jdolecek
117242ea83 use "mov 0, %o1" instead of kinda strange "sethi 0, %o1" in previous
pointed out by Matthew Green
2003-11-08 08:09:38 +00:00
jdolecek
3050a50d90 don't need bcmp() and bzero() 2003-11-08 07:40:37 +00:00
jdolecek
587e0e3497 use memset() instead of bzero() 2003-11-08 07:39:18 +00:00
jdolecek
7cc19c4f27 no need for bcmp.c 2003-11-08 07:24:46 +00:00
jdolecek
ac5e658022 fix uninitialized variable use in previous change (!) 2003-11-08 07:13:57 +00:00
dbj
fe70f4f25f only let i_ffs_effnlink diverge from i_nlink if DOINGSOFTDEP 2003-11-08 06:38:10 +00:00
dbj
54309cb4b4 comment out unnecessary IN_CHANGE|IN_UPDATE in lookup
move softdep specific lock release/regrab inside if DOINGSOFTDEP
2003-11-08 06:36:13 +00:00
dbj
7bfaadbc7a always do a full fsync if vp->v_type != VREG
in partial fsync, only use PGO_SYNCIO if FSYNC_WAIT is specified
2003-11-08 06:00:39 +00:00
simonb
4ebec9cd61 Add a define for the size of the UART register block. 2003-11-08 05:49:08 +00:00
dbj
2f1fc21f9c fix minor memory leaks in error paths of ffs_mountfs 2003-11-08 05:35:11 +00:00
simonb
edaec67118 Use the COM_AU1x00 option for Au1x00 feature support. 2003-11-08 05:12:51 +00:00
simonb
52f438d9a8 Sync with com.c, rev 1.222. 2003-11-08 05:10:11 +00:00
simonb
8899101173 Add a "COM_AU1x00" option, similar to COM_PXA2X0, for enabling Au1x00
features in the "com" driver.
2003-11-08 05:05:14 +00:00
sekiya
0a6f939a3d Avoid namespace collision when sgivol is compiled as a native application. 2003-11-08 04:59:00 +00:00
ross
0df0fcb2d2 Simplify (the long) Shark line 2003-11-08 04:49:17 +00:00
dbj
5040c1296f protect use of buf's b_flags with b_interlock 2003-11-08 04:39:00 +00:00
dbj
84865d5d4f protect a few uses of buf's b_flags with b_interlock 2003-11-08 04:22:35 +00:00
simonb
47299229f4 Make comsoft_callout static; it's not referenced outside this file. 2003-11-08 02:54:47 +00:00
simonb
d60244d401 Add (as yet unused) COM_TYPE_AU1x00. 2003-11-08 01:59:38 +00:00
simonb
b10e159af2 Add "XXX" to the gcc -Wuninitialised warning fix. 2003-11-08 01:58:26 +00:00
dsl
fcb78a6640 Remove depencency of vers.c on ${LIBLIST} - it messes up the depends and
I'm not sure why I added it now!
Default NWEVERSWHAT back to "BIOS Boot" - look better on boot banner page.
2003-11-08 00:02:02 +00:00
dsl
a7e45c127a stand/lib/crt/rom is no more, no need for it in .PATH 2003-11-07 23:44:56 +00:00
dsl
80e537250b Make 'dependall' generate the dependencies 2003-11-07 23:39:27 +00:00
dsl
7dbd0e094b Make 'dependall' generate dependencies in these libraries. 2003-11-07 23:34:28 +00:00
he
4918cc9279 Set `reg' before using it to print the unrecognized value. 2003-11-07 23:04:15 +00:00
briggs
9082432644 Go ahead and define xor function names up to xor16. 2003-11-07 22:04:59 +00:00
briggs
cad1dd99c8 Fix another used-before-initialized bug that gcc uncovered. 2003-11-07 22:04:13 +00:00
carrel
f830588016 enable support for the TREO 600
tested and works...
2003-11-07 21:27:56 +00:00
dsl
0c8ed6072c default: to 1024x768 landscape if unknown geometry (avoids uninitialised vars) 2003-11-07 19:21:39 +00:00
dsl
f4d417c4a9 Add default: and panic() when DEBUG undefined so that 'offset' is
not used uninitialised.
2003-11-07 19:16:01 +00:00
dsl
7e50916a6e Initialise spdreg, gcc doesn't stand a chance of tracking its use. 2003-11-07 18:56:39 +00:00
martin
2ceba4344c Fix KERN_DEBUG format string <-> parameter mismatch. 2003-11-07 18:49:29 +00:00
cl
4d3b1ee6dc always set L_SA_UPCALL if the LWP on the VP is asleep 2003-11-07 18:37:41 +00:00
he
c45fa09365 Suppress apparently-bogus -Wunitialized warnings, the compiler does
not detect that set / use occur under equal conditions in following
if() statements.
2003-11-07 18:29:30 +00:00
yamt
cc716087b0 - tweak lfs_update_single()'s prototype so that it can be used by
roll-forward code.
- reduce code duplication using the above in update_meta()
  this also fixes fragment accounting.
2003-11-07 17:55:29 +00:00
augustss
f9f08345e4 Less symbol table space. 2003-11-07 17:36:49 +00:00
christos
e348b1067c Catch up with struct proc lock changes. 2003-11-07 17:17:00 +00:00
christos
69ae0c6ad2 Fix unitialized variable use. mmm gcc. 2003-11-07 17:16:39 +00:00
augustss
c553c48410 An ugly hack for the interrupt mapping. 2003-11-07 17:12:56 +00:00
augustss
5f5dbfd073 Program some bridge options. 2003-11-07 17:06:42 +00:00
augustss
1950107e53 Add some more defines. 2003-11-07 17:03:42 +00:00
wiz
6a2ed83373 URL updates, from Jared Yanovich and jmc@openbsd, forwarded by the latter. 2003-11-07 17:03:25 +00:00
augustss
ef7949407f Fix various fallout from the big PPC changes early this year.
This pmppc port runs again now.
2003-11-07 17:00:19 +00:00
wiz
afc14a7c01 regen, so "generated from" line is correct. 2003-11-07 16:00:49 +00:00
hamajima
0086268dc3 support Corega Ether PCC-TL -- from Yasushi Oshima 2003-11-07 15:58:57 +00:00
uwe
586aada22a Supress bogus -Wuninitialized warnings. 2003-11-07 15:02:28 +00:00
pk
d6565c303c cpu_switch: values in global registers are not preserved across function calls. 2003-11-07 14:54:29 +00:00
yamt
71602f6ec9 fix spec vnode aliasing. 2003-11-07 14:52:27 +00:00
pk
0bd2c4a2ea swift_cache_enable: set cache enable bits after resetting the cache tags. 2003-11-07 14:50:21 +00:00
yamt
b43ed49269 - tell filesize changes to vm when roll-forwarding data blocks.
- handle fragment extension better during roll-forward.
- related assertions.
2003-11-07 14:50:18 +00:00
yamt
cd2445d8d3 more assertion about file truncation to zero. 2003-11-07 14:48:28 +00:00
he
435506f677 Reshuffle this code so that we avoid an uninitialized warning from the
compiler.

Reviewed by bjh21.
2003-11-07 12:24:10 +00:00
cl
716d179db5 make lwp running again if we don't switch away in sa_switch(), return is
not enough.  (noticed by yamt@)
2003-11-07 11:59:48 +00:00
dsl
6074f35279 Change getextmem2 to return 'configured' values from cx/dx if ax/bx zero,
make absolutely high the top 16bits of returned values are zero.
Ralf's list says that some BIOS need %eax = 0x0000e820 in getmementry.
Add a few comments.
Might fix problems with memory size detection on some systems.
2003-11-07 11:34:28 +00:00
dsl
a8af374602 Adjust location of 'extmem2' diagnostic print. 2003-11-07 11:30:39 +00:00
enami
063c7653e3 Sync with sys/dev/pci/pcidevs change (ProductID 0x0213 was renamed
to CSB6_RAID from CSB6_IDE).  And exclude the device of RAID subclass
(i.e., match IDE subclass only).
2003-11-07 10:44:42 +00:00
he
0b0101a884 Re-balance parenthesis. 2003-11-07 10:41:55 +00:00
bouyer
eb42e75cd8 If we already have a channel reset pending, don't try to queue a new one.
Otherwise we would bump queue_freeze several times, but the kernel thread would
decrease it only one time.
Fix PR kern/23377 by Mattias Karlsson, and should also fix similar problem
reported by Mihai CHELARU and Bruce J.A. Nourish on current-users.
2003-11-07 08:58:33 +00:00
thorpej
32ddb3f486 Fix brain'o in PCIX speed detection. kern/23375 (John R. Shannon). 2003-11-07 06:03:52 +00:00
mycroft
552d27479a Replace home-grown locks with lockmgr(). 2003-11-07 04:10:56 +00:00
simonb
4116da8027 Sync with dev/ic/com.c rev 1.221. 2003-11-07 02:08:35 +00:00
kivinen
cd9bd33872 eUSB ORCA Quad Reader (SHUTTLE) returns invalid CSWTAGs
(always 0). Added quirk to fix it.
2003-11-07 01:04:27 +00:00
kivinen
57d07fa4e6 Regenerated. 2003-11-07 01:02:18 +00:00
kivinen
ff83a852f5 Added eUSB ORCA Quad Reader (Shuttle). 2003-11-07 00:59:38 +00:00
fvdl
1eb5f3a2f2 intr_find_pcibridge returns 0 or error, not < 0. 2003-11-06 23:04:03 +00:00
simonb
7b4feff831 Be consistent with other COM_TYPE_PXA2x0 checks. 2003-11-06 23:02:27 +00:00
simonb
c26e70ad3c White space nit. 2003-11-06 22:30:09 +00:00
ragge
c556165f92 Do not try to enter more than MAX_INT16 symbols into the patricia tree;
the not-entered symbols will be found anyway but via a linear-search.
This only happens if something is wrong when linking the kernel.
Fixes problems reported on port-hp700.
2003-11-06 18:22:01 +00:00
kleink
9acc1a6c3b Have the linker discard local labels' symbols. 2003-11-06 18:19:32 +00:00
yamt
8b91732e18 fix wrong assertions.
they can be false due to alignment requiments (and PMAP_PREFER).
2003-11-06 12:45:26 +00:00
dsl
aed7f069e5 Ensure that the controlling tty is unlinked from the session and pgrp.
Due to the way the console is handled, neither the revoke() nor vrele()
is guaranteed to be seen by the real, underlying tty.
2003-11-06 09:30:13 +00:00
dsl
96e2f904d9 Remove a pile of redundant (caddr_t) casts. 2003-11-06 09:16:22 +00:00
dsl
618165063e When closing a process's controlling terminal, also remove the links
to the session and pgrp from the tty.  The way that the console is
handled means that the vrele() may not actually do the final close
on the tty itself.
2003-11-06 08:58:04 +00:00
he
1995f8d682 Replace an overlooked instance of p->p_nras with LIST_EMPTY(&p->p_raslist). 2003-11-06 08:49:13 +00:00
jdolecek
a10e06c83e force -Wno-uninitialized if the compiler is gcc 2.95 2003-11-06 08:23:22 +00:00
mycroft
2ef56c13e8 Force the codec into a known state before trying to determine its speed. 2003-11-06 07:13:33 +00:00
itojun
ae3e6f6041 correct behavior when ipv6mr_interface is 0. Matthias Drochner 2003-11-06 06:10:51 +00:00
simonb
f3bced434d Try using matching numbers of open and close parentheses to make this
compile again.
2003-11-06 04:17:11 +00:00
christos
e9b24cbc3d make this compile again 2003-11-06 02:25:07 +00:00
christos
16eaa4c6a9 pc532 passes everything on the stack like the i386... 2003-11-06 00:58:17 +00:00
simonb
43621cbb3a Add kernel portion of siginfo for ns32k.
Much thanks to Christos Zoulas for doing this.
2003-11-06 00:41:20 +00:00
simonb
f2706af267 Add COMPAT_16. 2003-11-06 00:38:36 +00:00
he
69c90d9f70 Initialize 'p' to NULL, to work around that the compiler otherwise
can't know that 'p' is initialized before it's being used.

Reviewed by ragge.
2003-11-06 00:35:23 +00:00
he
4a1426d85c Pull up the initialization of 'minnex', so that the compiler can know
that it's going to be set before it's used.
2003-11-06 00:33:36 +00:00
he
11f834a44a Add a default: branch with a panic() to the switch statement to
handle "impossible" segment types, so that the compiler can know
that 'pt' has been initialized after the switch statement.
2003-11-06 00:32:27 +00:00
he
93d88e5e12 Work around gcc 2.95.3's inability to detect that 'ck' will be set
in rounds 129 and 130 through the loop.  Will be noted in doc/HACKS,
and should be reviewed when gcc 3.3.2 is ready for vax.
2003-11-06 00:30:13 +00:00
he
505125808c Work around gcc 2.95.3's inability to detect that "ret" is initialized.
Will be documented in doc/HACKS, and should be looked at again when
gcc 3.3.2 for vax is ready.
2003-11-06 00:25:50 +00:00
simonb
00ea35b3b3 Fix gcc332 uninitialised bogon. 2003-11-05 23:39:21 +00:00
scw
f77bf2bb0c Enable/Restore alignment fault state on interrupt handler entry/exit. 2003-11-05 21:10:59 +00:00
fvdl
aad37eaff6 Apparently, Dell PERC 4/Di controllers can have two memory BARs, with the
second one empty. The previous revision made it pick the empty one.
Reinstate the BAR size check.
2003-11-05 16:03:27 +00:00
yamt
4a570157d7 add a missing pmap_update(). 2003-11-05 15:45:54 +00:00
yamt
b479cef701 don't move hint backward. 2003-11-05 15:34:50 +00:00
yamt
171053e863 - fix a reversed comparison.
- fix "nextgap" case.
- make sure don't get addresses behind hint.
- deal with integer wraparounds better.
- assertions.
2003-11-05 15:09:09 +00:00
fvdl
664bce39ae Remove extraneous ( 2003-11-05 13:58:00 +00:00
fvdl
51c222e5a2 Add igphy. 2003-11-05 13:51:29 +00:00
scw
aee833c0ee Add "options ARM32_DISABLE_ALIGNMENT_FAULTS" to forcibly disable
alignment fault checking if necessary.

This option gets the acorn32 port working again.

XXX: Richard Earnshaw suggested enabling alignment faults for
XXX: userland only on acorn32. Need to investigate this.
2003-11-05 12:53:15 +00:00
scw
754f153b0d Use the alignment fault enable/restore macroes in irq_entry. 2003-11-05 12:03:58 +00:00
hannken
2ef662a69e Clean up the usage of vn_start_write(). At least one occurence clobbered
previous error conditions.
If "(flags & (V_WAIT|V_PCATCH)) == V_WAIT" the return value is always zero.
Ignore the return value in these cases.

From Darrin B. Jewell.
2003-11-05 10:18:38 +00:00
scw
ca8c391c95 s/bcopy/memmove/
The kernel's bcopy (actually a wrapper around memcpy) is not guaranteed to
handle overlapping regions, even though the old ARM version did.

This fixes a problem where the kernel reported more available memory
than actually existed.
2003-11-05 10:09:10 +00:00
tron
0ad4493632 Update comment for wm(4) attachment because the driver supports more
than the Intel 82543 and 82544.
2003-11-05 07:51:12 +00:00
junyoung
dfb82ca484 rindex() shouldn't be used in the kernel. Use strrchr() instead. 2003-11-05 05:46:32 +00:00
mycroft
06eb56a853 So, on other platforms we use the BOOTP/DHCP file name for the boot program
and use a default file name of "netbsd" for the kernel.  Do the same thing
here, as it hardly makes sense any other way.
2003-11-05 04:18:26 +00:00
christos
82812c7677 remove malloc.h (we don't need it) 2003-11-05 04:03:43 +00:00
christos
293ab5b508 limit malloc so that corrupted executables don't allocate a lot of memory. 2003-11-05 04:03:21 +00:00
uwe
81468ece49 Register definitions for SH7709 DAC. 2003-11-05 03:08:13 +00:00
uwe
7dac2eaa7a Add closing parenthesis missed in previous. 2003-11-05 01:43:16 +00:00
itojun
60dac07656 use hash table for in6_pcbbind(). similar to in_pcb 1.89 -> 1.90 2003-11-05 01:20:56 +00:00
uwe
758b6ed7d7 ispell comments. 2003-11-05 00:28:34 +00:00
fvdl
60a5dfd880 Add and enable igphy. 2003-11-04 23:38:41 +00:00
he
6a3911e9ce Make this compile, at least. 2003-11-04 23:19:12 +00:00
christos
808f08e986 Try to make this work. Havard will test it. 2003-11-04 23:01:13 +00:00
scw
5d63abe1f1 Fix a braino introduced in r1.37. Thanks to Tom Spindler for spotting it. 2003-11-04 22:20:50 +00:00
aymeric
a60cfa8cd7 . ANSIfy, make compile
. get rid of kbd_intr() and low-level keyboard handling
2003-11-04 19:18:05 +00:00
mycroft
c6589d2082 Ignore a CRCTO error on a SETUP transaction in combination with STALLED or NAK.
This fixes problems with the GL641.
2003-11-04 19:11:21 +00:00
thorpej
73fea8467b Enable i82541 and i82547 chips - it works well enough to get broader
testing.  Update the TODO list.
2003-11-04 19:09:39 +00:00
mycroft
94d9caaae4 Re-add ServerWorks IDE support, as "rccide". Note: this is untested, as I no
longer have a ServerWorks-based motherboard.
2003-11-04 16:57:57 +00:00
dsl
190473c7b3 Remove p_nras from struct proc - use LIST_EMPTY(&p->p_raslist) instead.
Remove p_raslock and rename p_lwplock p_lock (one lock is enough).
(pad fields left in struct proc to avoid kernel bump)
Somehow this file escaped the earlier commit (in spite of being in the cvs diff
I did beforehand!)
2003-11-04 16:19:52 +00:00
scw
7f80949f0d Use the same trick as powerpc to resolve the 24-bit pc-relative
branch limitation.
2003-11-04 14:50:27 +00:00
pk
1fac26c0a5 * Set ksi_code to SI_NOINFO where we used to return zero.
* Fill in ksi_errno if we have an error code to report.
2003-11-04 14:24:25 +00:00
pk
bf835f94c2 Remove !__HAVE_SIGINFO transitional code. 2003-11-04 14:14:28 +00:00
jdolecek
f96eb7635f yield to the strchr() prototype from libkern.h 2003-11-04 14:04:04 +00:00
dsl
2ffbd2ab99 Remove p_nras from struct proc - use LIST_EMPTY(&p->p_raslist) instead.
Remove p_raslock and rename p_lwplock p_lock (one lock is enough).
Simplify window test when adding a ras and correct test on VM_MAXUSER_ADDRESS.
Avoid unpredictable branch in i386 locore.S
(pad fields left in struct proc to avoid kernel bump)
2003-11-04 10:33:15 +00:00
itojun
57b5c736df suppress -Wuninitialized 2003-11-04 05:50:54 +00:00
uwe
0af2a03977 Provide wskbd* at j6x0tp? attachment that maps taps on the "HP hard
icons" (along the right edge of the screen) to key presses.
2003-11-04 03:43:12 +00:00
uwe
399158308d Redo a quick hack for intc_intr_disable() and intc_intr_enable() to have
a saner interface/semantic.
2003-11-04 03:13:48 +00:00
simonb
1c7a9a7183 Indentation nit. 2003-11-04 02:19:28 +00:00
simonb
d576cd5c19 Fix tyop in previous - a "$" before a make variable works wonders. 2003-11-04 02:18:49 +00:00
kleink
272041c199 Compact previous a little, making better use of _NETBSD_SOURCE. 2003-11-04 00:00:36 +00:00
kleink
331b96d4cf * define S_IFSOCK as an XSI extension,
* define S_ISLNK() for POSIX-2001, and
* define S_ISSOCK() for POSIX-2001.
The latter addresses standards/22902.
2003-11-03 23:55:02 +00:00
cl
66c8bc7693 Reimplement VP donation such that multiple unblocked upcalls can be
combined.  Also prepare for adding VP repossession later.

- kern_sa.c: sa_yield/sa_switch: detect if there are pending unblocked
  upcalls.
- kern_sa.c: sa_unblock_userret/sa_setwoken: queue LWPs about to invoke
  an unblocked upcall on the sa_wokenq.  put queued LWPs in a state where
  they can be put in the cache.  notify LWP on the VP about pending
  upcalls.
- kern_sa.c: sa_upcall_userret: check sa_wokenq for pending upcalls,
  generate unblocked upcalls with multiple event sas
- kern_sa.c: sa_vp_repossess/sa_vp_donate: g/c, restore original
  sa_vp_repossess
2003-11-03 22:34:51 +00:00
manu
10d03389ac mach_port_get_attributes (incomplete and untested) 2003-11-03 22:17:42 +00:00
manu
90b3ec4640 First attempt at mach_make_memory_entry. Untested 2003-11-03 20:58:18 +00:00
jdolecek
ed1e458331 vaddr_t is not a pointer 2003-11-03 20:32:17 +00:00
petrov
334dcc0296 Do not set HMEDEBUG as default mode. 2003-11-03 20:30:14 +00:00
mycroft
64bd03aa66 Remove acpiec locking from the list. 2003-11-03 20:16:46 +00:00
mycroft
823720b33d Rework slightly so we use acpi_match_hid() in pckbc_acpi_attach() too. 2003-11-03 19:11:41 +00:00
mycroft
3ee522bd34 Match all PNP03?? IDs.
Also match more PNP0F?? IDs (e.g. the one the HP OmniBook reports).  There's
also no need to check IBM3780 any more, as the IBM and Acer machines which
returned it also return a CID of PNP0F13.
2003-11-03 19:04:56 +00:00
mycroft
cec77f23d6 Match all PNP04?? IDs. 2003-11-03 19:03:54 +00:00
mycroft
c992c0b1e9 Match all PNP07?? IDs. 2003-11-03 19:03:40 +00:00
mycroft
8a8efa0ccf Use pmatch() so that we can use patterns. 2003-11-03 18:51:31 +00:00
mycroft
d4f7d52915 Add a SMC ID. 2003-11-03 18:25:56 +00:00
mycroft
4ac0e3e5c6 More cleanup:
* Use ACPI_FAILURE() and ACPI_SUCCESS().
* Output exception strings in a few more places.
2003-11-03 18:07:10 +00:00
mycroft
b910c03a32 Clean up some messages:
* Use AcpiFormatException() in a bunch of places.
* acpi_resource_parse() already prints an error, so don't do it in the callers.
2003-11-03 17:54:39 +00:00
mycroft
01558f7ee2 Clean up some messages:
* Use AcpiFormatException() in a bunch of places.
* acpi_resource_parse() already prints an error, so don't do it in the callers.
2003-11-03 17:24:22 +00:00
mycroft
72ae89b69a Fix locking protocol, and use _GLK appropriately. From kochi, with some
modifications.
2003-11-03 17:23:38 +00:00
thorpej
05225cfc05 Add two new boot flags:
-x Boot with debugging messages (AB_DEBUG)
-z Boot silently (AB_SILENT)
2003-11-03 16:39:07 +00:00
cube
78677ac649 Regen. 2003-11-03 15:58:48 +00:00
cube
bda71e9e81 Add some IDs for the EPIA-M 10000 motherboard. 2003-11-03 15:57:46 +00:00
briggs
07a0e27c44 Revert the change in default value of ipv6_v6only. Further discussion
on this topic is required.  It should be reintroduced and pursued in
the IETF.
2003-11-03 15:12:06 +00:00
briggs
953bcec0ab ifmedia_set() should not panic, nor can it really fail. So if there is
some problem setting the media to the requested value (usually IFM_AUTO),
we now force the media selection to IFM_NONE.
This addresses PR/14029 ``panic("ifmedia_set") a little too brutal''
and may address to some degree PR/19504 and PR/23341.
2003-11-03 14:43:32 +00:00
kochi
84795bd3fd * now the size of ACPI_DEVICE_INFO is variable:
it can now accomodate multiple _CIDs
  sizeof(ACPI_DEVICE_INFO) should not be used
* make ad_devinfo member in acpi_devnode a pointer
* implement acpi_match_hid() to simplify matching devices;
  _CIDs are also taken into account now as well as _HID
2003-11-03 06:03:47 +00:00
mycroft
21978e6e0a Add another item, and some comments on particular machines affected. 2003-11-03 05:41:06 +00:00
yamt
933834a7ae revert rev.1.70 as it was not needed.
uvm_map_lookup_entry() should handle addresses out of the map.
2003-11-03 04:39:11 +00:00
yamt
efe5d5c154 make lint happy. 2003-11-03 04:20:28 +00:00
yamt
c8d12c1c35 retire PG_ZERO zero-fill checks. uvm_pagefree now check it for us. 2003-11-03 04:02:13 +00:00
yamt
70538d0c22 add a DEBUG check if freed PG_ZERO pages are really zero-filled. 2003-11-03 03:58:28 +00:00
ichiro
8b115395c7 Fix uninitialized variable warnings 2003-11-03 03:05:25 +00:00
he
20a53a5841 Fix uninitialized error in pcib_print(). 2003-11-02 22:03:42 +00:00
scw
b9d5da7eda The expansion bus is mapped via ixpsip now. 2003-11-02 21:27:51 +00:00
scw
e9cd075343 It makes more sense to map the expansion bus registers in ixpsip
instead of the pci bridge driver.
2003-11-02 21:24:39 +00:00
scw
21f388f6e0 Add generic read/write region 1 ops. 2003-11-02 21:20:32 +00:00
mycroft
d94e36f311 Add another one. 2003-11-02 19:42:03 +00:00
matt
0c6f824d5a Fix LP64 bug. 2003-11-02 18:29:46 +00:00
jdolecek
a2ed003b8b sa_yield(): 'sa' is used only for KDASSERT(), so make it #ifdef DEBUG 2003-11-02 17:04:05 +00:00
jdolecek
5e94c73334 kill unneded SYSVSHM includes
use ANSI C function definition for uvm_lwp_exit()
2003-11-02 16:53:43 +00:00
cl
afee7aa4d7 Extend the #ifdef M68040 so that the `sig' variable declaration is moved
in as well, as it's otherwise not used. (from atari/atari/trap.c and
x68k/x68k/trap.c)
2003-11-02 16:49:38 +00:00
jdolecek
1cfc34d60f use LIST_FOREACH() as appropriate 2003-11-02 16:42:22 +00:00
jdolecek
7d64ff943e add /* nothing */ comment to cpu_wait()/cpu_swapout() 2003-11-02 16:37:09 +00:00
cl
763d8350f0 perform indention change left out of previous commit 2003-11-02 16:30:55 +00:00
cl
350dd95eff Cleanup signal delivery for SA processes:
General idea:  only consider the LWP on the VP for signal delivery, all
other LWPs are either asleep or running from waking up until repossessing
the VP.

- in kern_sig.c:kpsignal2: handle all states the LWP on the VP can be in
- in kern_sig.c:proc_stop: only try to stop the LWP on the VP.  All other
  LWPs will suspend in sa_vp_repossess() until the VP-LWP donates the VP.
  Restore original behaviour (before SA-specific hacks were added) for
  non-SA processes.
- in kern_sig.c:proc_unstop: only return the LWP on the VP
- handle sa_yield as case 0 in sa_switch instead of clearing L_SA, add an
  L_SA_YIELD flag
- replace sa_idle by L_SA_IDLE flag since it was either NULL or == sa_vp

Also don't output itimerfire overrun warning if the process is already
exiting.
Also g/c sa_woken because it's not used.
Also g/c some #if 0 code.
2003-11-02 16:26:10 +00:00
chs
914233e001 commands have grown, make the ramdisk bigger. 2003-11-02 16:02:09 +00:00
chs
d9fc04266e fix parallel build. 2003-11-02 16:01:16 +00:00
chs
79f70b37d7 find libsa files. 2003-11-02 16:00:54 +00:00
he
ce7ac04a96 Extend the #ifdef M68040 so that the `sig' variable declaration is moved
in as well, as it's otherwise not used.
2003-11-02 15:55:16 +00:00
isaki
9f580c69ba Oops, make it compilable with or without M68040. 2003-11-02 14:06:05 +00:00
isaki
ae50a81244 make it compilable. 2003-11-02 13:57:38 +00:00
shin
8e83097ff5 fix return value of _gsfb_mmap(). 2003-11-02 13:12:14 +00:00
tsutsui
c7058a99ee Fix leftover of MI mk48txx(4) changes inside #if defined(SUN4).
Pointed out by Juergen Hannken-Illjes.
2003-11-02 12:59:18 +00:00
he
c8122b488e The compiler doesn't know that setjmp() always returns 0 "the first
time around", so move the initialization of cp0 and cp15 to outside
the if() statement to make this compile again.
2003-11-02 12:39:30 +00:00
jdolecek
b74c137c2a use LIST_FOREACH() where appropriate 2003-11-02 12:01:40 +00:00
gson
159f73f5c9 Some possible MIDI input byte streams could cause sc->in_msg[]
to be overrun, causing a crash.
2003-11-02 11:56:36 +00:00
jdolecek
ec23fd5f28 properly initialize local variable in pnp_debugdump() 2003-11-02 11:32:03 +00:00
wiz
dfb3c51536 Fix some typos. From Tom Cosgrove via jmc@openbsd. 2003-11-02 11:14:22 +00:00
jdolecek
076f4674a8 acpi_res_parse_ioport(): if the added entry is next to a previous I/O port
entry, just expand the previous entry instead of adding separate mapping

apparently some BIOSes make separate I/O port entries like this, and
some drivers then fail to attach; this change fixes mappings like

	fdc0: io 0x3f2-0x3f3,0x3f4-0x3f5,0x3f7 irq 6 drq 2

to

	fdc0: io 0x3f2-0x3f5,0x3f7 irq 6 drq 2

change tested by Bernd Ernesti
2003-11-02 11:12:53 +00:00
wiz
c5670263e0 Fix some typos. From Tom Cosgrove via jmc@openbsd. 2003-11-02 11:07:44 +00:00
wiz
218b6186ff deferred, not deffered. Inspired by Tom Cosgrove. 2003-11-02 10:50:40 +00:00
wiz
d88f7b1d62 boundary, not boundry. Inspired by Tom Cosgrove. 2003-11-02 10:31:06 +00:00
martin
43b448a711 Redo previous so that it actually works - the OF node still is called "wdc"
but it is not the parent but the grandparent of the disk device now.
2003-11-02 10:13:23 +00:00
wiz
c0177219fe Fix some typos. From Tom Cosgrove via jmc@openbsd. 2003-11-02 09:52:33 +00:00
wiz
0aca09fbc0 Fix two typos. From Tom Cosgrove via jmc@openbsd. 2003-11-02 09:49:20 +00:00
he
2cd9d70a98 Make the clock device aldo depend on mc146818, to make kernels without
the 'rtc at ebus' driver configured (e.g. for sbus machines) link.
2003-11-02 09:33:56 +00:00
simonb
20db9285ba Kill trailing blank lines. 2003-11-02 08:29:06 +00:00
christos
38dd4ae2dc Initialize another fp instance 2003-11-02 08:27:41 +00:00
christos
6dba5c3bc3 only assign to fp when we have a valid lwp. Thanks simon 2003-11-02 08:20:48 +00:00
christos
df7d5f4716 Use siginfo_t not ksiginfo_t in the frame. Doh! 2003-11-02 08:20:09 +00:00
yamt
c6d9c8814d fix a wrong assertion. pointed by Christian Limpach. 2003-11-02 07:58:52 +00:00
dyoung
82097fd078 Fix PCMCIA attach messages for wi(4). Tested by Greg Troxel. 2003-11-02 03:31:29 +00:00
dyoung
6892b91b88 No need to check which state we're changing FROM when we deactivate
the scan callout.
2003-11-02 02:14:33 +00:00
dyoung
313961b974 Get a clue from ath(4) and move the ieee80211_new_state() calls in
atw_init to one place.
2003-11-02 02:05:15 +00:00
dyoung
3800e8585a Fix thinko that breaks IBSS merges in atw(4). sc->sc_opmode !=
ic->ic_opmode!
2003-11-02 01:58:22 +00:00
dyoung
76db6bfa8c Use ieee80211_find_rxnode to attribute Rx packets to the write
ieee80211_node. This reduces code duplication.  It will help us
support passive scanning and rate adaptation.
2003-11-02 01:55:40 +00:00
briggs
1d2bfa591d Implement a separate nsphy_reset(). There are two reasons for this:
1) This PHY can take an inordinate amount of time to reset if
	   media is attached.  Under fairly normal circumstances, up
	   to near one second.  This is because it appears to go through
	   an implicit autonegotiation cycle as part of the reset.

	2) During reset and autonegotiation, the BMCR will clear the reset
	   bit before the process is complete.  It will return 0 until the
	   process is complete and it's safe to access the PHY again.

This gets the on-board pcnet + nsphy ethernet working properly for me on
an IBM PC Server/325.  Fixes PR/16346.
2003-11-02 01:42:28 +00:00
dyoung
45f756f520 Mark the available channels using the ic_channels table instead of
setting bits in ic_chan_avail, which is the responsibility of
ieee80211_ifattach. I cannot believe the previous code worked.
2003-11-02 01:39:22 +00:00
dyoung
85f84a3155 Cosmetic: get rid of an indent level in ieee80211_find_txnode by
changing an if () ... else to an if () return.
2003-11-02 01:29:05 +00:00
dyoung
f64ab7b2a4 Get the ieee80211_node for management packets from the rcvif field. 2003-11-02 00:55:46 +00:00
manu
60e46c0cc8 Finnally, the missing field in IOHIDSystem keyboard events was identified. The
keyboard now works in XDarwin. Hurrah!
2003-11-02 00:44:19 +00:00
thorpej
dec320ebc1 Squish some recent compiler warnings. 2003-11-02 00:23:38 +00:00
dyoung
bf9644d3d3 Fix bugs in power-saving:
Use a power-saving station's ieee80211_node, which is stored in
the rcvif field.

Do not free a node if it is put onto the power-saving queue.
2003-11-02 00:22:49 +00:00
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