thorpej
d1c86a60e0
No need to wrap these in #ifdef ALTQ -- they're not even included
...
if ALTQ is not configured into the kernel.
2000-12-14 18:07:30 +00:00
mycroft
3c073877f3
osf1_locore.s -> osf1_sigcode.s, to match the global convention.
...
Add linux_syscall.c.
2000-12-14 18:06:13 +00:00
thorpej
8489b5e4cf
if_qflush() -> IFQ_PURGE()
2000-12-14 17:48:23 +00:00
thorpej
e961c654a8
Change an if_qflush() to an IFQ_PURGE() to deal with ALTQ correctly.
2000-12-14 17:47:26 +00:00
thorpej
d77997d037
Add ALTQ glue.
2000-12-14 17:41:38 +00:00
thorpej
d9a9544a2f
Add ALTQ glue. XXX Temporary until ALTQ is changed to use a pfil hook.
2000-12-14 17:36:44 +00:00
mycroft
3418812d3c
Partial syscall cleanup, as per other ports.
2000-12-14 10:33:42 +00:00
martin
ee0eb24c13
Don't include opt_*.h if compiling as LKM.
2000-12-14 10:24:42 +00:00
thorpej
2dfc514990
Add NetBSD RCS IDs.
2000-12-14 08:49:49 +00:00
thorpej
68de460f39
Import ALTQ from KAME.
2000-12-14 08:42:28 +00:00
thorpej
71cbcad899
ALTQ'ify.
2000-12-14 07:51:36 +00:00
thorpej
b0c9cd5f7b
ALTQ'ify.
2000-12-14 07:27:21 +00:00
thorpej
a64a0f8137
ALTQ'ify.
2000-12-14 07:15:45 +00:00
thorpej
64778c5e5c
XXX ALTQ (not done in 1394 layer yet).
2000-12-14 07:03:50 +00:00
thorpej
08afcfb9bd
ALTQ'ify.
2000-12-14 06:59:01 +00:00
thorpej
1646284c95
ALTQ'ify.
2000-12-14 06:42:57 +00:00
thorpej
6b16911a43
ALTQ'ify.
2000-12-14 06:27:23 +00:00
onoe
a7125e435c
Add PCI version of Aironet, not tested at all.
...
ISA/ISApnp version won't come since I don't know about isa...
2000-12-14 04:11:25 +00:00
onoe
3bfa857782
regen
2000-12-14 04:06:05 +00:00
onoe
32b5d5c3bb
add Aironet 4500/4800
2000-12-14 04:05:38 +00:00
mycroft
0a01b4476a
Do the previous with a forwarding declaration of struct proc instead.
2000-12-14 00:41:50 +00:00
mycroft
473eee8c82
Wrap mdproc in #ifdef _KERNEL.
2000-12-14 00:38:20 +00:00
thorpej
fb2688c12f
Fix braino in IF_PURGE().
2000-12-14 00:19:42 +00:00
thorpej
dce7e1a85b
Oops, forgot IFQ_POLL() in the ALTQ case.
2000-12-14 00:07:35 +00:00
thorpej
3dc1664f57
Add ALTQ glue.
2000-12-13 22:07:50 +00:00
thorpej
cdcd4fad5e
In if_qflush(), use IFQ_PURGE() rathen than an open-coded version.
2000-12-13 22:06:05 +00:00
thorpej
df303090c2
First step at integrating ALTQ -- IFQ_*() glue macros that select
...
old-style queueing or ALTQ based on a compile time option.
2000-12-13 22:05:12 +00:00
augustss
8dab2a36e1
Regen.
2000-12-13 21:42:21 +00:00
augustss
b907acd3fd
Add sysinfo.
2000-12-13 21:41:46 +00:00
augustss
ccf2c891cc
Implement sysinfo.
2000-12-13 21:41:23 +00:00
onoe
d5dd5139a3
Support 80211NWKEY and 80211POWER ioctl.
2000-12-13 20:21:10 +00:00
mycroft
61a6479ab1
Patch from Kirk McKusick to fix an ordering problem in softdep_setup_freeblks()
...
that could cause an inode to be reused prematurely (possibly resulting in the
file containing garbage blocks).
2000-12-13 20:07:32 +00:00
jdolecek
c2cfcae955
<sys/trace.h> is not needed here
2000-12-13 18:15:56 +00:00
jdolecek
ca57e681bd
g/c obsolete vtrace(2) stuff
2000-12-13 18:13:05 +00:00
jdolecek
03354da279
this doesn't need <sys/trace.h>
2000-12-13 17:48:46 +00:00
chs
cf25b3fa04
continue processing the inactive queue past the free target when
...
we're enforcing the limit on the number of vnode pages.
2000-12-13 17:03:32 +00:00
chs
e6e27e9efc
fix bookkeeping for page cache dependency buffers.
2000-12-13 15:32:31 +00:00
enami
b31ace33b7
Add RCS Id.
2000-12-13 11:30:14 +00:00
enami
53c37af153
Cosmetic changes.
2000-12-13 11:18:37 +00:00
enami
36e5e860b4
Fix typo so that this file compiles again.
2000-12-13 11:10:36 +00:00
kleink
7ed30e9594
This code wasn't written in Utah or Berkeley.
2000-12-13 09:41:57 +00:00
enami
4625dcde2e
Use single const char array instead of over 200 string constant.
2000-12-13 08:06:11 +00:00
mycroft
008f44277d
Do the fast/slow path separation, a la x86.
2000-12-13 07:53:58 +00:00
mycroft
69d3816bec
Make this compile again. *sigh*
2000-12-13 07:35:49 +00:00
augustss
34bb7b9a35
Don't try to access a device that is being disconnected when generating
...
the detach event. Fixes (I hope) PR 11713 from itohy@netbsd.org (ITOH Yasufumi).
2000-12-13 04:05:14 +00:00
itohy
3e9f9f8abf
sync with i386, so that exec_conf.c compiles again
2000-12-13 03:49:51 +00:00
mycroft
108d17eb16
Do the md_syscall, __HAVE_MINIMAL_EMUL and __HAVE_SYSCALL_INTERN thangs.
2000-12-13 03:16:36 +00:00
augustss
eb210eda08
Make the ohci driver not hang suspend/resume. It still doesn't resume
...
correctly. From itohy@netbsd.org (ITOH Yasufumi) PR kern/11714.
2000-12-13 03:09:06 +00:00
augustss
4df48420a1
Another Ethernet device. From nagae@tk.airnet.ne.jp in PR kern/11711.
2000-12-13 02:49:22 +00:00
augustss
9214be27c3
Regen.
2000-12-13 02:48:25 +00:00
augustss
9e199a03e6
Add another Melco LUA-TX device.
2000-12-13 02:47:26 +00:00
mycroft
165574c579
Regen.
2000-12-13 01:29:35 +00:00
mycroft
c87c56ee90
Round up sysent[] table size.
2000-12-13 01:29:16 +00:00
mycroft
716c484ada
Remove unnecessary #includes.
2000-12-13 01:24:46 +00:00
mycroft
760ab2591f
Oops; add PROC_PC().
2000-12-13 00:46:31 +00:00
mycroft
dc26c1ab17
Start cleanup of syscall(), similar to i386 and arm32. getpid() rate on my
...
AS200 goes from ~279000/s to ~446000/s.
2000-12-13 00:38:20 +00:00
simonb
79b09f2c56
Bump the initial data size limit to 32MB - large enough to compile a
...
kernel with an ELF toolchain.
2000-12-12 23:46:22 +00:00
sato
595779fbdc
delete unused HPCFB_BSTORE codes.
2000-12-12 22:41:02 +00:00
jdolecek
ce61cff723
add linux_file64.c for i386
2000-12-12 22:40:23 +00:00
jdolecek
638d27777e
add linux_sys_truncate64()
2000-12-12 22:24:56 +00:00
jdolecek
e60b4a518d
regen
2000-12-12 22:23:47 +00:00
jdolecek
405a6ce62f
actually, we need to wrap sys_truncate() call so that the /emul/linux/...
...
path is tried first
fix ftruncate64 entry - first arg to ftruncate is int fd, not path
2000-12-12 22:23:02 +00:00
he
4ce4648c24
Add the an(4) driver to these configurations as well.
2000-12-12 21:14:51 +00:00
mycroft
a34a3ecb5e
Slight tweak.
2000-12-12 20:49:16 +00:00
mycroft
a7889f8229
Whoops. Previous change was not correct.
2000-12-12 20:30:12 +00:00
mycroft
2c7eaf2b50
Minor code rearrangement.
2000-12-12 20:22:49 +00:00
mycroft
a8ac146577
Adjust for userret() interface change.
2000-12-12 19:45:47 +00:00
mycroft
ea3353ea19
Clean up some DEBUG stuff, move want_resched check from userret() to ast().
2000-12-12 19:41:50 +00:00
jdolecek
621dac5bc2
define struct linux_stat64 used by linux_sys_*stat64()
2000-12-12 19:07:59 +00:00
jdolecek
c354ba3632
m68k:
...
* do not include linux_oldolduname.c, linux_olduname.c
* remove duplicate linux_ipccall.c
* add new linux_file64.c (64bit *stat)
2000-12-12 19:06:53 +00:00
jdolecek
c3dd514d84
regen
2000-12-12 19:03:10 +00:00
jdolecek
daff00c255
add emulation of Linux truncate64(2), ftruncate64(2), *stat64(2)
2000-12-12 19:01:59 +00:00
mycroft
4944313b38
GC a little more cruft, and use __HAVE_MINIMAL_EMUL.
2000-12-12 18:26:43 +00:00
thorpej
173c0bb9d7
Include BPF headers as necessary (feh, too many changes to try and
...
merge...)
2000-12-12 18:22:39 +00:00
mycroft
d90febaada
More cleanup.
2000-12-12 18:13:29 +00:00
thorpej
bb1175954d
Use <net/dlt.h>
2000-12-12 18:03:25 +00:00
thorpej
c5293456da
Adapt to bpfattach() changes, and further centralize the bpfattach()
...
and bpfdetach() calls into link-type subroutines where possible.
2000-12-12 18:00:22 +00:00
jdolecek
4afddd598b
don't include linux_olduname.c on m68k
2000-12-12 17:56:21 +00:00
thorpej
bfaf37d464
Use <net/dlt.h> to get the DLT_* constants. Also change bpfattach()
...
and bpf_change_type() to take just a pointer to the ifnet, rather than
a pointer to the ifnet and a pointer to a member of the ifnet (the bpf
pointer).
We'll let this ride on the Dec 12 1.5N version bump.
2000-12-12 17:55:21 +00:00
mycroft
a5a04ddba2
These versions have different names than libc...
2000-12-12 17:53:20 +00:00
thorpej
00052cdc53
Put the BPF DLT_* constants into their own header file so that things
...
that reference them don't have to slurp in all of the BPF headers.
Define a new generic RAWAF type that is like DLT_RAW, but isn't specific
to IP (the macro takes an AF_* constant as an argument to generate the
actual type).
2000-12-12 17:53:00 +00:00
jdolecek
f8d1770316
define EXEC_AOUT (if not defined) before including linux_syscallargs.h,
...
to get linux_sys_uselib() prototype
2000-12-12 17:52:56 +00:00
mycroft
0e5af5b3d1
GC.
2000-12-12 17:51:03 +00:00
thorpej
2a6413983b
Only allow superuser to change 802.11 power params.
2000-12-12 17:48:29 +00:00
mycroft
6c96a6759b
Update from libc.
2000-12-12 17:44:04 +00:00
mycroft
9e9c8e676b
Adjust some profiling stuff for the kernel.
2000-12-12 17:38:45 +00:00
jdolecek
0c74ffb7fd
if the third argument in syscall.conf matches [a-z0-9_], use it as
...
a function alias instead of the function name in { ... }
2000-12-12 17:32:45 +00:00
thorpej
d197326e7a
Add a missing return after freeing an mbuf. From Dave Huang <khym@bga.com>.
2000-12-12 17:25:34 +00:00
chs
395f8c2177
initialize read creds in nfs_open() too.
2000-12-12 17:13:17 +00:00
fvdl
0b7398458a
Allow for passing through of certain ranges of ioctl command values
...
directly to a device. The device has to be aware of how to handle
with these special ioctls. Useful for LKMs that deal with Linux
binaries.
2000-12-12 15:11:56 +00:00
mycroft
455360f941
Do the __HAVE_SYSCALL_INTERN and __HAVE_MINIMAL_EMUL dance.
2000-12-12 08:00:26 +00:00
mycroft
5e6430ffd8
Clean this up and add profiling stuff.
2000-12-12 07:35:25 +00:00
mycroft
9fc58d6908
Whoops, lay off the crack.
2000-12-12 06:36:19 +00:00
mycroft
446f34fb60
suswintr() and fuswintr() return -1 on error, not 0.
2000-12-12 06:32:39 +00:00
mycroft
7057d01bbc
Inline need_resched() and need_proftick(). Make need_proftick() actually *do*
...
something!
2000-12-12 06:06:05 +00:00
mycroft
6a719db6e7
Still more cleanup.
2000-12-12 05:35:48 +00:00
onoe
aa513e6338
add support(?) for PC4500 which is a 2Mbps product.
...
Though ifconfig -m no longer show 5Mbps/11Mbps for PC4500 by this fix,
I cannot find how to set fixed transmit speed to the firmware.
FreeBSD version of driver apparently ignore the value set by ancontrol(8).
2000-12-12 05:34:02 +00:00
mycroft
c656add165
More cleanup.
2000-12-12 05:26:38 +00:00
mycroft
e58eb48f25
Begin cleaning up the syscall path, a la i386.
2000-12-12 05:21:02 +00:00
onoe
99675e3dde
cleanup headers: remove duplicate definition, split reg.h/var.h.
2000-12-12 05:11:15 +00:00
nisimura
a141a84ce1
Relocate boot flag detection from consinit() to more logical place.
2000-12-12 04:07:35 +00:00
nisimura
80195863fc
This file is a replicant of hp300. The following is peculair to
...
the original HPBSD implementation and HP hardware design.
* Portions of the last segment of KVA space (0xFFF00000 -
* 0xFFFFFFFF) are mapped for a couple of purposes. 0xFFF00000
* for UPAGES is used for mapping the current process u-area
* (u + kernel stack). The very last page (0xFFFFF000) is mapped
* to the last physical page of RAM to give us a region in which
* PA == VA. We use the first part of this page for enabling
* and disabling mapping. The last part of this page also contains
* info left by the boot ROM.
Nuke lptpa because that is irrelavant for LUNA.
Put #if defined(M68040) for consistency postponing efforts of LUNA-2.
2000-12-12 04:06:08 +00:00
thorpej
c0bcfa5994
Support SIOC{G,S}80211POWER.
2000-12-12 04:04:29 +00:00
thorpej
589bc762b7
Add a way to manipulate the power management parameters specified in
...
802.11.
2000-12-12 04:03:38 +00:00
mycroft
0175db6e40
#ifdef KTRACE some stuff.
2000-12-12 03:33:16 +00:00
thorpej
41d6a62c1c
s/Ethernet/802.11/ when printing the address.
2000-12-12 01:32:34 +00:00
onoe
c63194c7af
To fix panic at "ifconfig an0 down",
...
define ANCACHE in if_an_pcmcia.c (XXX)
try not to access registers after interface down.
2000-12-11 23:58:55 +00:00
bjh21
afb44982ee
Correct the mangled-vectors check.
2000-12-11 23:51:58 +00:00
bjh21
0692c35dda
Since BBBB correctly disables the CPU cache at startup, we now decide whether
...
to leave it disabled based on the bottom bit of cpu0's cf_flags.
2000-12-11 23:46:50 +00:00
onoe
9c25e9208a
Port 'an' driver for Aironet PC4500/PC4800 IEEE802.11 card from FreeBSD.
...
This is very adhoc work for IETF meeting.
- Since it seems that 'an' and 'wi' have similar hardware, low level
functions should be shared.
- There are PCI/ISA cards of Aironet but not supported yet.
- The wiconfig interface is changed so that wiconfig cannot be used.
- 'ancontrol' of FreeBSD is not ported.
- Only infrastructure mode is tested.
- WEP is not supported.
Though I only have an Aironet card, Cisco card should be expected to work.
2000-12-11 23:16:50 +00:00
bjh21
d606f7e6e0
Move most of the RISC OS shutdown into BASIC code.
...
Issue Service_PreReset to get the hardware to a sane state.
Use *ShutDown to log off fileservers.
Use the correct arguments to Cache_Control.
Using Service_PreReset seems to have rendered the Podule_ReadID trick
unnecessary, so g/c it.
2000-12-11 22:19:18 +00:00
itojun
0e7d3ce88c
split /usr/include/sys/md5.h and /usr/include/md5.h completely.
...
future direction: nuke /usr/include/sys/md5.h, it shouldn't be there as
we don't provide libkern to userland.
2000-12-11 21:05:14 +00:00
scw
b875ed466e
Some micro-optimisations to _spl() and _splraise(), saving one instruction
...
in the former, and three to seven in the latter.
2000-12-11 20:05:33 +00:00
martin
ac28b114d2
Make this compilable again on ports without __HAVE_SYSCALL_INTERN.
2000-12-11 19:53:06 +00:00
itojun
1101f217b5
no need to rtalloc1() twice in pmtud. from kame
2000-12-11 19:28:47 +00:00
eeh
ce7f4ef73f
Don't use rwindow_save() since the stack has already been made COW.
2000-12-11 18:51:55 +00:00
marcus
83334549fb
Initial import of port "dreamcast" (cloned from port "evbsh3").
2000-12-11 18:19:12 +00:00
thorpej
17bf4cff64
Add support for 802.11 authentication frames, required to interoperate
...
with Aviator Pro cards on Windows. Written by Steve Weiss for OpenBSD,
ported to NetBSD by me.
2000-12-11 17:53:19 +00:00
mycroft
9a8fbe25bc
Handle the VM86-mode syscall problem by changing the syscall vector when
...
jumping in or out of VM86 mode.
2000-12-11 17:36:03 +00:00
ws
8132c2a6aa
Fix the previous differently:
...
The intent was to protect the full range of ports on the board by the
barriers. But the start address was wrong. Fix it.
While here, change two other barriers to also protect the full range
(not only the nic ports), and add yet another similar barrier.
2000-12-11 17:07:38 +00:00
mycroft
1ef2795be9
Separate the syscall handlers into two versions -- one which does ktrace, and
...
one which doesn't. Dynamically switch.
There's more to do on this, but I have to go to work.
2000-12-11 16:49:15 +00:00
mycroft
11fcbfe7a6
Call e_syscall_intern every time ktrace flags are modified.
2000-12-11 16:39:01 +00:00
tsutsui
c8a3a939e3
space -> TAB
2000-12-11 15:38:43 +00:00
tsutsui
7212823f47
Set USPACE_ALIGN to USPACE on mips.
2000-12-11 15:37:32 +00:00
tsutsui
aaa48a8d25
Use USPACE_ALIGN for an alignment argument on allocating U-area.
...
The default value is 0, and could be overridden by machine/vmparam.h.
2000-12-11 15:35:42 +00:00
jdolecek
128eb4ec07
bring in 'syscall' and 'misc' example modules from former /usr/share/lkm,
...
updated to current LKM programming style
even through the modules do work, they are not built nor installed by default -
they are here solely as a help to potential LKM writer
2000-12-11 13:48:10 +00:00
ad
2940363203
Report soft-errors-per-unit once per minute at most.
2000-12-11 13:19:50 +00:00
tron
d0de1ec852
Protect against multiple inclusion.
2000-12-11 11:39:06 +00:00
tron
c6cdb692f3
Include "machine/frame.h" to avoid lint errors while building "libc".
2000-12-11 10:22:55 +00:00
jdolecek
384e2929b7
nuke, mostly obsolete
2000-12-11 09:11:22 +00:00
itojun
93292b8aaa
do not touch region after free
2000-12-11 07:52:48 +00:00
mycroft
e6d33b69ec
Nuke reference to trace.h.
2000-12-11 05:41:06 +00:00
augustss
6e11678a15
Get rid of UQ_ASSUME_CM_OVER_DATA quirk; it's handled differently now.
2000-12-11 05:41:00 +00:00
mycroft
0f17615da7
There is no Berkeley code in any of these files.
2000-12-11 05:37:01 +00:00
mycroft
f495cd9dc6
Introduce 2 new flags in types.h:
...
* __HAVE_SYSCALL_INTERN. If this is defined, e_syscall is replaced by
e_syscall_intern, which is called at key places in the kernel. This can be
used to set a MD syscall handler pointer. This obsoletes and replaces the
*_HAS_SEPARATED_SYSCALL flags.
* __HAVE_MINIMAL_EMUL. If this is defined, certain (deprecated) elements in
struct emul are omitted.
2000-12-11 05:28:59 +00:00
thorpej
105cf38061
Add some basic statistics to pool_cache.
2000-12-11 05:22:55 +00:00
mycroft
fef5184d84
Regen.
2000-12-11 04:56:01 +00:00
mycroft
fc774b14ce
getuid -> getuid_with_euid
...
getgid -> getgid_with_egid
2000-12-11 04:55:50 +00:00
mycroft
75fbdc005e
Nuke LINUX_MACHDEP_PASS_PPID.
2000-12-11 04:55:09 +00:00
mycroft
cfe0002fc5
Regen.
2000-12-11 04:54:29 +00:00
mycroft
6d0c28a87c
getpid -> getpid_with_ppid
2000-12-11 04:54:13 +00:00
chs
bb61d9c5e4
in flush_inodedep_deps(), drop the big softdep lock while flushing pages.
2000-12-11 03:53:54 +00:00
mycroft
e99a608974
Regen.
2000-12-11 03:09:10 +00:00
mycroft
c0341b165d
Round up sysent table size.
2000-12-11 03:09:02 +00:00
mycroft
f0689d5505
Regen.
2000-12-11 03:07:06 +00:00
mycroft
23babc12e5
Round up sysent table size.
2000-12-11 03:06:49 +00:00
chs
a8a757cd0a
implement VOP_GETPAGES().
2000-12-11 02:50:17 +00:00
mycroft
6a4dfe5f24
Slight tweak.
2000-12-11 02:48:07 +00:00
itojun
25296369e5
make sure t_family has the correct protocol family, after connect(2)
...
and/or bind(2). sync with kame
2000-12-11 00:07:48 +00:00
itojun
9302f377a6
remove NRL code leftover. sync with kame
2000-12-10 23:39:36 +00:00