bjh21
0b45f78538
Pull across arm32 rev 1.5:
...
ALTENTRY() must die.
2000-12-16 14:38:06 +00:00
jdolecek
72014988d6
adapt to recent struct emul changes
2000-12-16 13:30:08 +00:00
chs
34a059b354
in uvn_flush(), don't deactivate busy pages.
2000-12-16 06:17:09 +00:00
simonb
4cf1e73334
Use sys/conf/newvers_stand.sh instead of local script.
2000-12-16 04:20:24 +00:00
tsutsui
e9da06d897
Add options COMPAT_LINUX (sync with GENERIC).
2000-12-15 18:19:03 +00:00
fvdl
89b5cfa9c5
Jump out of the scandir loop if VOP_READDIR returns an error, avoiding
...
running around in circles.
2000-12-15 11:52:14 +00:00
itohy
cf27186531
Remove empty lines from cpp output since make doesn't seem to like them.
2000-12-15 07:16:36 +00:00
mycroft
b29180b2ff
Tighten up the ELF signature checks, and actually look for the ABI tag added
...
in newer glibc versions.
2000-12-15 06:14:21 +00:00
oster
b36a1a085e
For the RF_ASSERT() and RF_PANIC() macros, call a function to do the
...
sprintf, instead of doing the sprintf in the macros. This means just
1 copy of each of the error messages, chopping about about 16K off the
size of an i386 kernel. Thanks to Simon Burge and Enami Tsugutomo
for providing the inspiration to do this.
2000-12-15 02:12:58 +00:00
thorpej
2c482e17b7
Descend into the altq directory.
2000-12-15 01:30:36 +00:00
thorpej
ccf928446b
Install ALTQ header files.
2000-12-15 01:20:32 +00:00
tsubai
0763c14571
Make this compile again.
2000-12-15 01:16:48 +00:00
lukem
146ab1ba9b
s/pio/PIO/ and s/lba/LBA/ in messages output to users
2000-12-14 23:56:18 +00:00
thorpej
cd414d81ab
Glue in ALTQ.
2000-12-14 23:55:31 +00:00
thorpej
58816d8ab4
Saner glue into cdevsw.
2000-12-14 23:50:43 +00:00
simonb
6ec588df0d
Correctly order the contents of the emul_hpux struct so this compiles.
2000-12-14 22:55:36 +00:00
thorpej
ea9f3d531c
Change the way ALTQ is enabled in the kernel, as there is an
...
annoying include file name clash.
2000-12-14 22:36:48 +00:00
mycroft
6d9be19e76
ALTENTRY() must die.
2000-12-14 22:00:20 +00:00
jeffs
1c726aab7f
For MIPS software masking option, when returning to user mode apply
...
the mask to all interrupts to catch changes in the mask state faster.
Does not affect platforms w/o this option enabled.
2000-12-14 21:29:51 +00:00
jeffs
19adf5c987
Make userret() "static __inline". This lets it be inlined, even if you
...
do not have the compiler inline normal functions to save space. It helps
a bit on lmbench.
2000-12-14 21:24:53 +00:00
bjh21
395a883e48
Pull across arm32 rev 1.19:
...
Remove ALTENTRY(). It's dangerous and should not be used.
2000-12-14 20:50:56 +00:00
mycroft
fbcb53e0b5
Sync with -current, add COMPAT_LINUX.
2000-12-14 20:46:06 +00:00
bjh21
e266a563d8
Filter out non-ASCII characters from podule descriptions.
...
I think my MIDI card had a \r at the end, which was confusing.
2000-12-14 20:40:29 +00:00
jdolecek
5f0114a837
regen
2000-12-14 20:39:36 +00:00
jdolecek
14b2acc126
add sysinfo()
2000-12-14 20:37:57 +00:00
scw
5cabdd3709
Some snippets of documentation for mvme68k...
2000-12-14 20:30:14 +00:00
bjh21
84d111ea01
Move RCSID to the end of locore so it doesn't end up in zero page if we
...
compile with an asm.h which doesn't know about section .ident.
2000-12-14 20:30:03 +00:00
bjh21
a6b4048c85
Get ELF RCSIDs back
2000-12-14 20:26:42 +00:00
mycroft
e06ad67fa5
Remove ALTENTRY(). It's dangerous and should not be used.
2000-12-14 20:15:26 +00:00
bjh21
1e720616fb
Copy from libc
2000-12-14 19:51:51 +00:00
bjh21
af87db0411
Use _C_LABEL
2000-12-14 19:50:38 +00:00
bjh21
fe80ce82c0
Copy from libc
2000-12-14 19:44:58 +00:00
bjh21
c044c88beb
Sync with arm32.
2000-12-14 19:33:00 +00:00
bjh21
14198dc0bd
Sync with arm32 -- they've got ELF stuff there these days.
2000-12-14 19:28:12 +00:00
bjh21
acff6e4375
Use _C_LABEL rather than _C_FUNC.
2000-12-14 19:22:39 +00:00
thorpej
9f416d534c
"KERNEL" doesn't belong in headers.
2000-12-14 18:51:10 +00:00
marcus
724713366e
Made weak_alias create correct labels on sh-elf.
2000-12-14 18:47:30 +00:00
mycroft
c0d0ffef4e
Some #ifdefs to make LKMs happy.
2000-12-14 18:44:20 +00:00
mycroft
84e07a956d
Add osf1_syscall.c.
2000-12-14 18:42:07 +00:00
mycroft
c071846a91
Add linux_syscall.c for alpha.
2000-12-14 18:40:14 +00:00
mycroft
33d5c07c1b
Clean up #includes.
2000-12-14 18:34:59 +00:00
mycroft
1b77a6e458
Add COMPAT_LINUX.
2000-12-14 18:28:30 +00:00
mycroft
bdf4af93a3
Some namespace hiding I forgot before.
2000-12-14 18:10:35 +00:00
mycroft
ccaa88d980
Declare linux_syscall_intern().
2000-12-14 18:10:14 +00:00
mycroft
b8d0fc574a
Regen.
2000-12-14 18:08:09 +00:00
thorpej
f5370ce2cc
Don't need <vm/vm.h> (it doesn't exist in -current).
2000-12-14 18:08:08 +00:00
mycroft
52e8ecc51c
Round up sysent[] table size.
2000-12-14 18:07:54 +00:00
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