Commit Graph

64695 Commits

Author SHA1 Message Date
darrenr
960df3c8d1 Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V
2003-06-28 14:20:43 +00:00
he
da6b84e290 Defflag M060SP and PANICBUTTON, since the corresponding include files are
now referenced from atari_init.c and machdep.c.
The PANICBUTTON implementation appears to be incomplete, compared to
the other ports which have this option implemented.
2003-06-28 14:18:30 +00:00
he
eff4d773fd Make sure to "mkdir -p" the destination directories under /usr/mdec. 2003-06-28 14:14:48 +00:00
fvdl
1c961078b9 Mark a CPU as no longer running when it gets a HALT IPI. Avoids other
CPUs getting stuck waiting for it because they sent a TLB shootdown
during shutdown.
2003-06-28 11:33:19 +00:00
pk
f22f3adf41 me_alloc()/region_alloc(): return the MMU cookie directly. 2003-06-28 10:17:47 +00:00
pk
338fb7c628 Simplify pmap_extract4_4c(), as suggested by Chuck Silvers in private
communication.
2003-06-28 10:02:13 +00:00
pk
75fe06e6e3 me_free(): it makes no sense to try and update the ref/mod PTE bits here. 2003-06-28 09:51:04 +00:00
he
501a19cbfa Use ${.CURDIR} when referring to source tree include directories. 2003-06-28 09:30:26 +00:00
he
450e795668 Somehow all these tiny Makefiles had their contents replicated.
Pare back down to just one copy.
2003-06-28 09:09:51 +00:00
he
4d99002423 #ifdef _KERNEL_OPT police. 2003-06-28 08:42:41 +00:00
he
a81160e601 Defflag M060SP and PANICBUTTON, now that machdep.c includes
the corresponding files.
2003-06-28 08:39:24 +00:00
he
86cc24bba0 #ifdef _KERNEL_OPT police. 2003-06-28 08:31:16 +00:00
he
36f3de8bfd Defflag PANICBUTTON now that machdep.c includes opt_panicbutton.h. 2003-06-28 08:26:45 +00:00
he
870b85989a Defflag PANICBUTTON, now that machdep.h includes opt_panicbutton.h. 2003-06-28 08:22:02 +00:00
he
3686522ed1 Regenerate after adding include of linux_mmap.h. 2003-06-28 07:56:51 +00:00
he
c7ace1c552 Need to include linux_mmap.h to get size of struct linux_sys_mmap2_args. 2003-06-28 07:55:08 +00:00
uwe
ea10b56931 Trust srt0.S if it has set cputyp to CPU_SUN4M.
It can infer OFW -> sun4m, as only JavaStations have OFW, and it can
detect OFW by the different calling convention.
2003-06-28 01:03:57 +00:00
uwe
5fe7a8a85c Only JavaStations have OFW, so set cpu type to CPU_SUN4M in is_openfirm. 2003-06-28 00:59:09 +00:00
he
0bd3ded5ff Defflag PANICBUTTON, now that machdep.c includes opt_panicbutton.h. 2003-06-27 21:43:03 +00:00
uwe
94e7210074 Drop redundant argument to printf("\n"). Obvious pasto. 2003-06-27 21:27:24 +00:00
pk
9e0e8676f1 Make sure to flush any user register windows when stealing PMEGs in
me_alloc() (and SMEGs in region_alloc()).

Should fix PR#14180.
2003-06-27 16:44:03 +00:00
oki
955ac53d91 Put correct dest ether address on PPPoE server mode. 2003-06-27 16:24:32 +00:00
yamt
ff974db6fd if nfs_writerpc() splitted an unstable write into some rpcs and
write verifier was changed, we should restart from the first.
2003-06-27 14:00:55 +00:00
yamt
42be09ca92 indent. 2003-06-27 13:58:36 +00:00
christos
d82212c90e Regen 2003-06-27 13:20:00 +00:00
christos
df92a9d2a5 PR/21498: URA Hiroshi: Add S3 Savage/IXC 2003-06-27 13:19:36 +00:00
itohy
d031823b2b Properly reset PHY on ZNYX boards which are composed of
21143 and Quality Semiconductor QS6611 PHY.

QS6611 requires explicit reset on some hardware configuration.  See
``Using the Intel 21143 with the Quality Semiconductor QS6611 Revision D4''
<http://www.intel.com/design/network/applnots/278239.htm> for details.

Models which should be supported by this change are
	ZX345Q, ZX346Q, ZX348Q,		(non-Q versions use different PHYs)
	ZX414, ZX412, ZX444,
	ZX442, ZX212, ZX214,
	ZX374, ZX372, ZX244,
	ZX424, ZX422.

Tested on ZX346Q.

Some information is from the ZNYX driver source code available from
the ZNYX web site <http://www.znyx.com/>.
2003-06-27 12:25:38 +00:00
drochner
82a0769126 regen 2003-06-27 11:13:02 +00:00
drochner
a7eff26572 add some missing 3c990 variants 2003-06-27 11:12:17 +00:00
itojun
2cadb8ca7a split ND6 cache timer management to per-entry. increased accuracy,
no O(N) loop.   sync w/ kame
2003-06-27 08:41:08 +00:00
simonb
c674f217bf Use STATIC_LEAF and STATIC_XLEAF for the helper functions; there's no
need to export their symbols.
2003-06-27 08:25:43 +00:00
simonb
ecdaf1626b Add STATIC_LEAF and STATIC_XLEAF macros, ala the alpha port. 2003-06-27 08:22:05 +00:00
he
57822a30b2 Conditionalize usage of the COM_HW_HAYESP constant on COM_HAYESP.
Add a dummy type argument to the local (au)comcnattach to match the change
in the prototype of the "real" comcnattach.

Reviewed and tested by simonb.
2003-06-27 07:39:34 +00:00
itojun
26d2e41250 fix mistake in rev 1.30; needed to subtract ip header len 2003-06-26 21:59:42 +00:00
itojun
73ed908c03 fix stats to meet 4.4BSD practice 2003-06-26 21:49:17 +00:00
itojun
08740c2691 fix comment 2003-06-26 21:43:39 +00:00
ichiro
5f17d961c0 regen. 2003-06-26 21:15:12 +00:00
ichiro
2bb26f9cd9 add products
Planex 10/100BaseTX FNW-3800-TX
   kern/20175
Corega FEther II CB-TXD 10/100BaseTX
   kern/21497
2003-06-26 21:14:44 +00:00
aymeric
3d58c2238e include <sys/types.h> so that this file can be included first/alone 2003-06-26 20:47:51 +00:00
aymeric
003fd1df25 . ANSIfy
. include needed headers
. fix a couple of warnings
2003-06-26 20:47:10 +00:00
aymeric
98e0168f0a . ANSIfy
. include the needed headers
. net_mountroot() becomes static
2003-06-26 20:46:31 +00:00
aymeric
ee20410a5e ANSIfy 2003-06-26 20:45:29 +00:00
aymeric
b0c4d54ee9 . ANSIfy
. include alloc.h
. while there, fix a bug in prom2boot() introduced in rev. 1.11
2003-06-26 20:44:51 +00:00
aymeric
e9cabc8553 . ANSIfy
. Fix a missing return
. replace %x by %p to print pointers in OFW_DEBUG printf's
2003-06-26 20:43:48 +00:00
aymeric
110312e089 declare functions from corresponding C file 2003-06-26 20:42:38 +00:00
christos
8924cfdcba abuse the mib instead of abusing the new pointer. Idea from simon burge.
It allows the tcp_sysctl_ident to run by non-super-users. No backwards
compatibility provided.
2003-06-26 17:32:22 +00:00
drochner
9c0e4279cc remove unneeded cpu_feature declaration 2003-06-26 16:48:18 +00:00
drochner
491828ab43 cpu_feature is not set (nor used) by locore since SMP, so move the
definition to C code
2003-06-26 16:47:15 +00:00
drochner
1fa5ee8d10 make cpu_feature unsigned, just like ci_feature_flags 2003-06-26 16:45:19 +00:00
drochner
31f515916f -make cpu_feature unsigned, just like ci_feature_flags
-clean up duplicate declaration of cpu_info_primary
2003-06-26 16:41:32 +00:00
drochner
470de734bd remove redundant "extern" declarations 2003-06-26 16:37:20 +00:00
yamt
f2917653ff add appropriate #ifdef's.
pointed by Simon Burge on source-changes
and by some people in private mail.
2003-06-26 13:38:53 +00:00
he
f250a35e96 #ifdef _KERNEL_OPT police; identd defines _KERNEL before some includes. 2003-06-26 13:20:55 +00:00
itojun
b0f4b20c71 sync packet tag w/openbsd 2003-06-26 09:55:10 +00:00
ichiro
04bd82d36b regen. 2003-06-26 09:20:23 +00:00
ichiro
03f8899b31 add product
Aironet 350 miniPCI Wireless LAN Adapter
2003-06-26 09:19:54 +00:00
tron
706af04c5c Test for symbol "_KERNEL_OPT" instead of "_LKM" as suggested by
Matthew Green.
2003-06-26 08:22:06 +00:00
itojun
c077e299a8 expire mrt if mrt_stall goes empty. ono@kame 2003-06-26 07:41:48 +00:00
tron
88613ffb5e Don't include "opt_mbuftrace.h" if "_LKM" is defined. This fixes a build
problem in the "vmware-module3" package.
2003-06-26 06:52:55 +00:00
itojun
3b8a1d1f0c strlcpy 2003-06-26 05:26:45 +00:00
itojun
4f7d642336 cleanup multicast routing stuff on if_detach().
XXX sideeffect to running instance of multicast routing daemon unknown
2003-06-26 03:35:00 +00:00
itojun
0888779b69 put meaningful count into in_multientries.
(or we could remove this variable - noone seem to use it)
2003-06-26 03:17:32 +00:00
itojun
bef80abb93 purge rti structure (in igmp.c) for removed ifp on if_detach(). 2003-06-26 03:11:08 +00:00
nathanw
08cf80dc5c Whitespace police. 2003-06-26 02:09:27 +00:00
nathanw
169a6757eb For now, disable voluntary mid-operation preempt() for SA processes;
it doesn't interact well with SA's idea of what's running.
2003-06-26 02:08:19 +00:00
itojun
d1fcb86326 tabify 2003-06-26 00:43:31 +00:00
jschauma
0f675a710b Regen after adding LaCie Pocket Drive and ACDC Pen Drive. 2003-06-26 00:20:18 +00:00
itojun
ab5963ee1f check if INADDR_TO_IA gets us valid in_ifaddr or not. hopefully fix PR21964 2003-06-26 00:19:13 +00:00
jschauma
1777ce56e3 Add support for two new devices:
-  LaCie Pocket Drive (http://www.lacie.com/products/product.htm?id=10023)
-  a Pen Drive (http://www.flash-memory-store.com/51usbflasdri.html)

The latter shows as a uhub with a umass and a ugen.  The ugen is the
"Secure Write" device, which presumably allows password protection with the
appropriate (windows only) driver.  Works fine without.

Ok by augustss.
2003-06-26 00:18:08 +00:00
he
16c7a2a0b2 Declare USELEDS option, now that locore.s tries to include opt_useleds.h. 2003-06-25 21:02:19 +00:00
ichiro
f939b6d83c The problem which stops in the middle of booting was solved.
(kern/21843 Brian Stark <bpstark@pacbell.net>)
2003-06-25 20:33:59 +00:00
martin
9276710861 #ifdef _KERNEL_OPT police 2003-06-25 20:30:15 +00:00
cdi
2b74542ac0 Initial commit of a 1-stage boot loader for NetBSD/cobalt. Only booting off
the hard drive is supported at the moment.
2003-06-25 17:24:21 +00:00
martin
89955ad8b5 #ifdef _KERNEL_OPT police 2003-06-25 14:38:53 +00:00
yamt
45c519f76f - instead of scaning a list when looking up
{a idle thread, a socket with pending requests},
  maintain dedicated list of them.
- add spin locks.
2003-06-25 14:37:50 +00:00
yamt
200e944501 revert rev.1.28. (free -> FREE changes)
pointed by David Laight on source-changes about similar changes.
2003-06-25 14:34:55 +00:00
christos
a378776e5a Limit the number of program headers we accept to avoid resource exhaustion
by a hand-crafted elf binary.
2003-06-25 13:48:06 +00:00
simonb
8eda62491d Need to pass the address of the lock to simple_unlock(). 2003-06-25 05:37:00 +00:00
thorpej
7401047528 Add a way to force (at compile time) use of int13 extensions. 2003-06-25 04:21:51 +00:00
uwe
a8c0780b08 Use CPUFLAGS instead of COPTS to pass -march=armv4 -mtune=strongarm. 2003-06-25 01:07:55 +00:00
dyoung
eb4a83a039 Bracket the opt_multiprocessor.h #include with #ifdef _KERNEL_OPT.
It won't compile, otherwise. I figure this is right because it's
done everywhere else.
2003-06-25 00:03:13 +00:00
martin
c591ec88c0 FPU_EMULATE moved to arch/m68k/conf/files.m68k 2003-06-24 19:56:22 +00:00
martin
a394980af5 Move (and unify) PMAP_DEBUG and FPU_EMULATE here - it is tested in
shared files.
2003-06-24 19:55:22 +00:00
igy
1625aa9110 remove LIBSA_SINGLE_DEVICE and LIBSA_SINGLE_FILESYSTEM 2003-06-24 12:27:03 +00:00
tron
64e5c9eb7c Remove "lib" directory in "cleandir" target. 2003-06-24 09:38:35 +00:00
itojun
df0f79e5b1 recover code that requires exact match on rtm_change/lock (lost in 1.16).
without it "route change X" would change less-specific route by mistake.
reported by jinmei@kame
2003-06-24 08:31:32 +00:00
itojun
6d4a3c4191 remove unneeded checks of accept_rtadv. from kame 2003-06-24 07:54:47 +00:00
itojun
adb5d5afb4 * kame/sys/netinet6/nd6.c (nd6_rtrequest): changed a condition to
decide whether to create an empty llinfo stricter so that a user
can manually change the link-layer address of an existing neighbor
cache.
Pointed out by: KIU Shueng Chuan

from kame
2003-06-24 07:49:03 +00:00
itojun
455b7679d4 typo 2003-06-24 07:43:44 +00:00
itojun
194f048bd9 use time.tv_sec directly 2003-06-24 07:39:24 +00:00
itojun
5b0c3f9506 clear ln_hold earlier. from kame 2003-06-24 07:32:03 +00:00
thorpej
cb53206514 * Defflag CPU30MHZ.
* Unrelated cosmetic change in files.pc532.
2003-06-24 04:57:58 +00:00
thorpej
527224f9c6 * defflag NS381.
* There is no MATH_EMULATE option for ns32k; don't try to include
  opt_math_emulate.h.  Instead, comment that we should glue in
  the softfloat library in this case.
2003-06-24 02:48:56 +00:00
uwe
c173e7908e Only install accelerated rasops for CyberPro, we don't know yet how to
access the coprocessor on 1682 in Krups.
2003-06-24 00:13:29 +00:00
augustss
d495634233 Regen. 2003-06-23 23:01:09 +00:00
augustss
30b0700839 Add my new Laks watch with a flash disk.
Yes, I'm a geek.
2003-06-23 23:00:46 +00:00
he
609811d881 Follow up the rename of _SPL_IMP to _SPL_VM. 2003-06-23 22:18:10 +00:00
he
e60a4dc52b Extend the P5064 and P6032 comcnattach() with a type argument as well,
I'm assuming these both use COM_TYPE_NORMAL.
2003-06-23 22:17:11 +00:00
augustss
a28c261a76 Regen. 2003-06-23 21:56:59 +00:00
augustss
49ccba6c53 Add new device. From Urban Boquist. 2003-06-23 21:56:36 +00:00
augustss
6ef6cc143d Fix missing call to FILE_UNUSE. From kern/21946, from Todd Vierling. 2003-06-23 21:53:10 +00:00
christos
9d352b5c2c PR/21936: Todd Vierling: ioctl 'r' misinterpreted 2003-06-23 21:37:27 +00:00
christos
40e148ef6b PR/21948: Todd Vierling: Implement MAP_TRYFIXED for linux emulation. 2003-06-23 21:32:33 +00:00
christos
c9a5d7edc1 Regen. 2003-06-23 21:26:30 +00:00
christos
35637451db PR/21937: Todd Vierling: Proper support for mmap2 2003-06-23 21:25:56 +00:00
augustss
7cdd37a934 Another quirk from Urban Boquist. 2003-06-23 21:11:29 +00:00
aymeric
8fe6b1b1db call platform.softintr_init() only if it is non-NULL.
This allows NetBSD/ofppc to boot up to userland (i.e. to the point where init
will not launch properly) under psim.
2003-06-23 20:14:33 +00:00
aymeric
23cacb54a0 s/PHYS_TO_PCI_MEM/PHYS_TO_BUS_MEM/
s/PCI_MEM_TO_PHYS/BUS_MEM_TO_PHYS/
to match generic PPC code

Noticed by Nicolas Ollinger
2003-06-23 20:12:19 +00:00
erh
2f3650202c Add copyright+license. 2003-06-23 17:29:25 +00:00
pk
dc05fd9fd2 sun4/sun4c: move/add write_user_windows() at the top of pmap_[k]remove() and
pmap_[k]enter().
2003-06-23 15:45:08 +00:00
martin
864f19482a #ifdef _KERNEL_OPT police 2003-06-23 14:59:21 +00:00
martin
cd7023a3eb Backout previous, this file is not affected by kernel options. 2003-06-23 14:48:37 +00:00
martin
34718fb25a Protect opt_*.h include by _KERNEL_OPT 2003-06-23 14:17:24 +00:00
martin
1f875208a7 Protect opt_*.h includes by _KERNEL_OPT 2003-06-23 13:58:06 +00:00
pk
74806170e3 According to my calculations, the cross-over point for the amount of work
needed to flush an entire segment from the sun4/sun4c caches is at 16 pages.
2003-06-23 13:43:20 +00:00
pk
dc6eeb9b47 Use pre-computed `# of cache lines' where appropriate. 2003-06-23 13:34:28 +00:00
jdolecek
7942f6611a add __KERNEL_RCSID() 2003-06-23 13:14:49 +00:00
thorpej
49b91b6679 Adapt to the Scheduler Activations changes.
Boots to multi-user when compiled with GCC 3.3 (20021123) (pre-3.3 release),
boots to single-user but hangs going multi-user when compiled with 3.4
(20030623).  This is most likely a compiler problem.
2003-06-23 13:06:54 +00:00
thorpej
5fb00ee32f Basic ELF definitions for ns32k. No relocations yet. 2003-06-23 12:59:27 +00:00
martin
4858ba3d93 Protect kernel opt_*.h include by #ifdef _KERNEL_OPT 2003-06-23 12:56:07 +00:00
martin
79b00c490a Disable QUOTA for ntfs - it's broken. 2003-06-23 11:53:47 +00:00
martin
d505b18964 Make sure to include opt_foo.h if a defflag option FOO is used. 2003-06-23 11:00:59 +00:00
chris
93632a0574 Fix for port-arm/21962. Rather than fixing the #ifndef spl0, I removed
the test as spl0 is actually a macro for splx(0). The code now calls
splx(0)

(note building with the #ifdef fixed, caused the build to fail on a
GENERIC acorn32 kernel.)
2003-06-23 09:05:22 +00:00
simonb
c888cf2bde Removed "extended precision" definitions left over from when this was
originally copied from i386/include/ieee.h.

Fixes PR port-pc532/21960 from Jason Thorpe.
2003-06-23 06:59:12 +00:00
christos
5879a5dcf6 PR/21936: Todd Vierling: compat/linux: ioctl 'r' misinterpreted 2003-06-20 03:54:35 +00:00
nakayama
64dc0184cc s/options\t/options \t/ 2003-06-20 03:15:05 +00:00
hamajima
b3120a356c Fix wdc_obio_dma_init() confused WDC_DMA_LBA48 with WDC_DMA_READ.
This was tested by jtb@netbsd.org.
2003-06-19 22:36:06 +00:00
bouyer
5b96ee4889 Make sure we pass the current state of the driver to scsipi_async_event(),
not the request from the mid-layer.
Fix kern/21893 from Anthony Mallet.
2003-06-19 20:11:14 +00:00
tsutsui
cc8f388df1 Make sure to call c_nec_eisa_cons_init() also on RISCserver 2200
so that its Cirrus VGA console is properly initialized.
Fixes problem reported by Bob Meader.
2003-06-19 16:00:19 +00:00
martin
e0b0d04377 Ooops, I didn't intend to enable kgdb by default here.
(Since the related changes are not yet commited, it doesn't even compile)
2003-06-19 14:39:52 +00:00
agc
7ebe0b8c4b Make this compile. 2003-06-19 14:08:54 +00:00
msaitoh
6e3f4b59e8 regard as the card is removed if one of CCD1# and CCD2# is deasserted.
This fixes the porblem that the cbb misses a remove event.
2003-06-19 10:48:58 +00:00
kanaoka
d25a3f14d9 - Remove the unused polling code.
- Clean up the code a bit.
2003-06-19 10:13:14 +00:00
itojun
b6625c38a4 avoid panic in malloc() under extremely low memory situation.
OpenBSD problem report 2235, 2236, 2640.  fix by Otto Moerbeek.
2003-06-19 06:25:41 +00:00
rh
f51b948f11 Add and enable monitoring mode for Lucent cards. 2003-06-19 06:16:36 +00:00
pk
db543774bf pmap_bootstrap4_4c():
* enable caching of message buffer & cpuinfo
	* it ought to be no longer necessary to not write-protect the kernel
	  text in order to support KGDB
2003-06-18 14:24:55 +00:00
bsh
7aeb49a6b4 don't map PCI device's I/O ports at address 0.
This fixed a problem when 3com 3C905 is a only PCI card on SMDK2800.
2003-06-18 10:56:35 +00:00
bsh
dd27d238b6 MD part for Intel Lubbock (DBPXA250).
built-in UART and on-board ethernet are supported for now.
LCD, PCMCIA, CF, PS/2, AC97 will follow shortly.
2003-06-18 10:51:15 +00:00
bsh
1928d3ed36 enable BTUART 2003-06-18 09:40:06 +00:00
martin
dbe43da717 Add missing COMPAT_ options. 2003-06-18 09:38:56 +00:00
pk
f707a950e3 Remove out-dated MP comment. 2003-06-18 09:34:22 +00:00
drochner
1a03e79900 don't #include <sys/dkstat.h> where it is (appearently) unused 2003-06-18 08:58:34 +00:00
oki
6873b338d6 Add support in-kernel PPPoE server.
This may work with one PPPoE session.
If you want to use it, #define PPPOE_SERVER in somewhere,
or add options PPPOE_SERVER in kernel config file.

This is experimental code, and good start point for future development.
2003-06-18 08:12:51 +00:00
itojun
faef0b82e9 install host route for p2p interface even if there's connected net route
by broadcast interface.  PR 21903.
2003-06-18 06:42:34 +00:00
bsh
4b87783212 in cominit(), turn on UUE bit in IER register if it is PXA2x0's
built-in UART.
2003-06-18 04:35:23 +00:00
bsh
73635ffe34 use PMAP_DOMAIN_KERNEL and DOMAIN_CLIENT instead of magic numbers. 2003-06-18 03:17:49 +00:00
bsh
d8193564ca protect with #ifndef _LOCORE so that assembler codes can share
definitions in this file such as PMAP_DOMAIN_KERNEL.
2003-06-18 02:58:09 +00:00
bsh
ddb2467dd1 make this compile again:
+ we don't have struct pxa2x0_softc anymore.
   + call pxa2x0_clkman_config() to provide clock to LCDC block.
2003-06-17 09:43:14 +00:00
bsh
3c87cee70f white space nit. 2003-06-17 09:32:38 +00:00
simonb
33b48b0823 Micro-optimisation- move the "pgs == NULL" check from the previous
change to immediately after the malloc call.  This can't fail in
the non-malloc case.

Reviewd by YAMAMOTO Takashi.
2003-06-17 04:17:37 +00:00