Alan Cox
80eef17ba9
o Remove vm_map_growstack() and useracc() from sendsig(). Copyout() and
...
suword() will automatically grow the stack if needed.
o Add a comment that osigreturn() and sigreturn() are MPSAFE.
2002-04-13 19:17:49 +00:00
Boris Popov
6e8681aa50
Check write permissions before creating anything.
...
PR: kern/27883
MFC after: 1 week
2002-04-13 15:33:26 +00:00
Jeroen Ruigrok van der Werven
bcbf4411d6
Use the correct macros for F_SETFD/F_GETFD instead of magic numbers.
...
Reflect that fact in the manual page.
PR: 12723
Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
Approved by: bde
MFC after: 2 weeks
2002-04-13 10:16:53 +00:00
Warner Losh
8961964d97
Fix an edge case wrt membase, but more changes needed
2002-04-13 05:52:35 +00:00
Warner Losh
387a5bacc2
Restore NetBSD copyrights that shouldn't have been removed in the first place.
2002-04-13 04:07:07 +00:00
Thomas Moestl
de67a4bd91
Back out the last revision - it does not work correctly when one of
...
the pages in question is not in the top-level vm object, but in
one of the shadow ones.
Pointed out by: alc
Pointy hat to: tmm
2002-04-13 00:03:07 +00:00
John Baldwin
6871a6c89e
Rework ptrace(2) to be more locking friendly. We do any needed copyin()'s
...
and acquire the proctree_lock if needed first. Then we lock the process
if necessary and fiddle with it as appropriate. Finally we drop locks and
do any needed copyout's. This greatly simplifies the locking.
2002-04-12 21:17:37 +00:00
Thomas Moestl
60f2606a7d
Do not use pmap_kextract() to find out the physical address of a user
...
belong to a user virtual address; while this happens to work on some
architectures, it can't on sparc64, since user and kernel virtual
address spaces overlap there (the distinction between them is done via
separate address space identifiers).
Instead, look up the page in the vm_map of the process in question.
Reviewed by: jake
2002-04-12 19:38:41 +00:00
Mike Barcroft
795aff0ed9
Include <sys/cdefs.h> for definition of __BSD_VISIBLE.
...
Pointy hat to: mike
2002-04-12 15:56:45 +00:00
Ruslan Ermilov
2f42caa5de
Unbreak this as well.
...
At the extra bonus of fixing the contents of the .depend file.
Not really my day.
2002-04-12 15:49:30 +00:00
Søren Schmidt
6ed14aa161
Add a couble more Promise chip ID's.
2002-04-12 14:10:19 +00:00
Doug Rabson
722ff934ee
Initialise ar.cflg, which contains the IA-32 registers cr0 and cr4. Since
...
all IA-32 processes use the same values for cr0 and cr4, we initialise
them at system startup.
2002-04-12 07:43:35 +00:00
Doug Rabson
c85c7b5ff6
Print extra information in printtrap() if the interrupted state was for
...
an IA-32 process. Don't sign extend arguments in ia32_syscall - its not
normally going to be useful (e.g. pointers need to be zero extended).
2002-04-12 07:41:16 +00:00
Marcel Moolenaar
9ca98629d7
Fix definition of va_start: We don't need to take the address of
...
va_list. It's a builtin type. gcc 3.1 doesn't care either way,
but gcc 3.2 is more picky and doesn't like the former.
2002-04-12 06:50:51 +00:00
Warner Losh
41544fe68c
Forgot to commit this when I committed the rest of the hostap stuff.
2002-04-12 06:19:18 +00:00
Warner Losh
fafbd94d8d
After committing the forgotten IFM_IEEE80211_HOSTAP stuff to if_media.h,
...
no need for the ifdefs here anymore.
2002-04-12 06:12:21 +00:00
Warner Losh
73ce5fac0e
Add hostap 802.11 media type.
...
From wi_hostap stuff by Thomas Skibo
2002-04-12 06:10:37 +00:00
Warner Losh
64fa2b20c6
-DWI_HOSTAP no longer needed
2002-04-12 06:01:49 +00:00
Warner Losh
b0152b2e40
unifdef -DWI_HOSTAP, like OpenBSD does
2002-04-12 06:01:28 +00:00
Alfred Perlstein
7344c0a194
ifdef WI_HOSTAP some stuff that seems like it needs to be ifdef'd.
2002-04-12 05:46:36 +00:00
Peter Wemm
a8f559e910
Really fix uniprocessor on IA64. Note to self: do not use variables before
...
they are initialized. I had correctly figured out that the UP problem was
the pcpu current_pmap thing, but didn't fix it right last time.
2002-04-12 05:17:15 +00:00
Warner Losh
e122b676e6
Replace the original host WEP implementation with the one in OpenBSD
...
(apparently by markus@, at least committed by him). This has the
advantage of not using the bad IV's from Fluhrer/Mantin/Shamir as well
as bringing the drivers a little closer together.
Also use a few constants in place of magic numbers in one place.
Obtained from: OpenBSD 1.25, 1.28, 1.36, 1.38, 1.42
2002-04-12 03:42:37 +00:00
Jeffrey Hsu
4037698769
Fix corner case where m_len was not being initialized.
...
Submitted by: Maksim Yevmenkin <myevmenk@digisle.net>
MFC after: 1 week
2002-04-12 00:01:50 +00:00
Warner Losh
f90d35eca1
Add ActionTec HWC01170 and Linksys IWN2
...
Obtained from: OpenBSD
2002-04-11 21:21:14 +00:00
Warner Losh
0d2a385fa9
Catchup to 1.32
2002-04-11 21:19:04 +00:00
Warner Losh
7afbcf5ed0
Add ACTIONTEC HWC01170 from OpenBSD
2002-04-11 21:18:17 +00:00
John Baldwin
59cfd37dd4
Use the proc lock to protect p_ucred while we read a few items from it.
2002-04-11 21:17:45 +00:00
John Baldwin
3aa68913bc
Make this compile again when UMASS_DEBUG isn't defined.
2002-04-11 21:09:41 +00:00
John Baldwin
b106d2f56a
- Set the base priority of an ithread that has no handlers when we set its
...
normal priority.
- Lock sched_lock while we dink with the priorities.
- Remove a few extra blank lines.
2002-04-11 21:03:35 +00:00
John Baldwin
5a882ddd66
Commented out locking that would be used in the ps command if locks were
...
used in ddb.
2002-04-11 21:01:34 +00:00
John Baldwin
8e4357a4cb
Use proc lock to protect p_ucred pointer while we deference it to read a
...
few values.
2002-04-11 21:00:38 +00:00
John Baldwin
0af24d5151
Use td_ucred in a few spots.
2002-04-11 21:00:05 +00:00
Alan Cox
ab9ab5702e
Regen
2002-04-11 17:35:53 +00:00
Alan Cox
a0805f6f7a
Remove the requirement that Giant be held around osigreturn(). All platform-
...
specific implementations are MPSAFE.
2002-04-11 17:34:38 +00:00
Alan Cox
0d36f49e63
Add a comment that osigreturn() is MPSAFE.
2002-04-11 17:13:08 +00:00
John Baldwin
2c823989e1
Fix a warning due to the code assuming sizeof(int) == sizeof(void *) which
...
is not true on the alpha. I think that other parts of this code also make
this implicit assumption as well.
2002-04-11 15:31:01 +00:00
Bernd Walter
0dc76ffdd4
LCA based systems can't handle more than 16 devices on pci bus 0.
...
Reviewed by: gallatin
Approved by: gallatin
2002-04-11 13:24:20 +00:00
Søren Schmidt
5b93eb04a9
Add yet another chip ID for a Promise TX2 chip.
2002-04-11 11:04:23 +00:00
Nick Hibma
b2f485ca0d
Delay umass_cam_rescan by 200 ms to make sure attach is finished by the
...
time we tell CAM to rescan the bus. Together with the previous patch
this should avoid the problem where the devices would wedge because they
got spoken to over two different pipes.
Tested by: Tomas Pluskal <plusik@pohoda.cz>
2002-04-11 10:34:15 +00:00
Peter Wemm
31c41f1b1e
Bandaid for a buffer overrun in the module searching code. When breaking
...
up the module_path string, we would walk one past the end of the buffer.
This hurting ia64 originally, but it was probably also happening on i386
occasionally as well. The effects were usually harmless, it would add
bogus "binary" search directories to the places it actually looked for
files.
2002-04-11 10:00:44 +00:00
Peter Wemm
2ab188f529
Finally fix loader completely for IA64. efifs_stat() wasn't setting
...
the S_IFREG bit for regular files. This caused the path search code to
skip it when it finally did find the kernel (after the common/module.c
buffer overrun bug was fixed)
2002-04-11 09:50:11 +00:00
KATO Takenori
f11aa8f5ca
MFi386: revision 1.517.
2002-04-11 09:45:41 +00:00
Paul Saab
2aa6b97298
Fix the I/O performance issues with the ciss driver where CAM was limiting
...
the number of transactions the device could handle to 1.
Obtained from: msmith
2002-04-11 09:28:09 +00:00
Pierre Beyssac
2b9592079f
Code cleanup, no functional change.
...
Patch adapted from PR.
PR: i386/36015
Submitted by: thomas@cuivre.fr.eu.org
MFC after: 1 week
2002-04-11 09:21:10 +00:00
Søren Schmidt
f8b318ce58
Only calculate Promise magic if a device is there for info.
2002-04-11 08:52:32 +00:00
Warner Losh
1bd2b5b4cd
Integrate the hostap stuff that Thomas Skibo <skibo@packbell.net>
...
wrote. This code was for 4.5-release, so I've ported it to -current
and made a few minor tweaks. The biggest non-style tweak was to not
make access point the default.
More changes will be needed to get this actually working, but I wanted
to get a relatively pure baseline. This doesn't seem to break what
works now.
2002-04-11 07:21:16 +00:00
Mike Barcroft
17dfcdfaed
Remove bogus include of <machine/ansi.h>.
2002-04-11 06:53:40 +00:00
Bill Paul
9a29439fb9
Nortel Networks sells a RealTek 8139-based NIC that's basically
...
the same thing as the SMC 1211, but with their own vendor ID.
Update the device list to support this NIC. (Discovered these
cards lying around the lab at work.)
2002-04-11 06:12:51 +00:00
Warner Losh
b0db732e54
Add two more IEEE80211 defines for status.
2002-04-11 05:43:10 +00:00
Warner Losh
ea185f8108
better init
2002-04-11 03:31:45 +00:00