manu
08a69f7d15
Make killproc really public, and while we are there, constify.
2002-07-28 22:18:51 +00:00
christos
42f6b6f836
Patches from Frank Kardel:
...
- length was one off in names and secrets.
- add win 98 kludge but we keep it disabled for now.
- setup the authorization bit early so that we don't end up doing ppp
negotiations without authorization.
2002-07-28 22:16:47 +00:00
christos
c5c71978de
add utmpx support; lots of code can be shared now with w.
2002-07-28 21:46:34 +00:00
christos
f04f8bc949
add utmpname()
2002-07-28 21:45:39 +00:00
christos
156b33bc4e
skip blank entries.
2002-07-28 20:47:57 +00:00
christos
f084e3ca9b
make this behave like utmp, ie. return all entries and setutent() rewinds.
2002-07-28 20:46:43 +00:00
christos
59d3d6c274
Don't throw away the name and the secret lengths. This eliminates all the
...
strlen() calls, and there was a whole bunch of them.
2002-07-28 19:54:47 +00:00
jdolecek
4be499b52b
Convert to use p_opptr rather than p_oppid. Part of fix for
...
security/14444 by David Sainty.
2002-07-28 18:42:41 +00:00
thorpej
7b652cb939
Change the way that DMA map syncs are done. Instead of remembering
...
the virtual address for each DMA segment, just cache a pointer to the
original buffer/buftype used to load the DMA map, and use that. This
lets us shrink the bus_dma_segment_t down from 12 bytes to 8, and the
cache flushing is also more efficient.
Tested on an i80321 -- changes to others are mechanical.
2002-07-28 17:54:05 +00:00
christos
08ea4bc534
my card prints transmit aborted and then hangs. Let's try to reset it.
2002-07-28 15:41:00 +00:00
augustss
1d1e817466
Fix typo in macro.
2002-07-28 15:22:06 +00:00
manu
3966af389b
Enable USE_MBR for all arm ports.
2002-07-28 15:17:38 +00:00
christos
450091b937
avoid modifying the buffers, by checking for matching lengths first. From
...
Frank Kardel.
2002-07-28 15:12:29 +00:00
grant
b4dfc38d21
add blank lines to editpart, ala editparttable.
...
this stops the table of partitions jumping about while using the mbr
editor.
2002-07-28 08:58:59 +00:00
chs
23ec03fb27
add a config for GENERIC + MP.
2002-07-28 07:40:13 +00:00
chs
0724ffc87a
restructure the FPU and AltiVEC code so that it works for MP.
2002-07-28 07:38:34 +00:00
chs
03315186b6
install atomic.h.
2002-07-28 07:11:25 +00:00
chs
a7171ee431
add some atomic operations.
2002-07-28 07:09:28 +00:00
chs
fccc379b30
restructure the FPU and AltiVEC code so that it works for MP.
2002-07-28 07:07:44 +00:00
chs
f1953a9667
terminate the MP idle stack for the boot CPU.
2002-07-28 07:07:00 +00:00
chs
b06c12694c
clean up secondary CPU startup.
...
use atomic operators for IPIs.
restructure the FPU and AltiVEC code so that it works for MP.
2002-07-28 07:06:45 +00:00
chs
64094057a1
resync the MP and non-MP trap_subr's.
2002-07-28 07:06:27 +00:00
chs
a7763f6e2c
create a syscall_plain() like on other platforms
...
and avoid getting the kernel lock for MPSAFE syscalls.
2002-07-28 07:05:53 +00:00
chs
0e5816fca3
remove a local copy of mfmsr().
2002-07-28 07:05:19 +00:00
chs
7f81a49168
propagate the MP idle-loop fix to ppc from the other ports:
...
Move call to sched_unlock_idle to later in the context switch to
eliminate a race where another processor could grab the outgoing
process before we were done saving our state into it, with predictable
results.
Bug spotted by Frank van der Linden <fvdl@wasabisystems.com>
also, don't re-enable interrupts temporarily in the middle of
switching to a new process, just wait until we're completely switched.
this didn't work on MP and it's not worth the effort.
2002-07-28 07:05:06 +00:00
chs
badae2dc11
disable the PTE_EXEC optimization for MP for now.
...
PTE_EXEC needs to become a per-CPU flag eventually.
2002-07-28 07:03:47 +00:00
chs
9b01e8d8ce
split off the part of cpu_attach_common() that pokes at special CPU registers
...
into a separate function so that we can run it on each CPU we configure
rather than always on the boot CPU.
2002-07-28 07:03:15 +00:00
chs
84b41b2adb
rearrange the PCB structure a bit so it's easier to look at in ddb.
2002-07-28 07:02:54 +00:00
chs
4b5a2a3f79
define CPU_INFO iterators so that the CPU-states sysctl works for MP.
2002-07-28 07:02:29 +00:00
chs
1fab9d5375
remove a spurious printf.
2002-07-28 07:00:58 +00:00
bjh21
2e5fd793fb
Set the volume ID on CDs produced my "make iso-image" to something meaningful,
...
rather than the default of "CDROM". The volume ID now looks like
"NETBSD_ACORN26_16D".
2002-07-28 01:21:07 +00:00
christos
a2e4cf52ec
use the fname we passed in.
2002-07-28 00:45:11 +00:00
christos
1e703dc185
add utmpx support.
2002-07-27 23:58:40 +00:00
christos
7908c76c97
Add utmp processing functions
2002-07-27 23:57:39 +00:00
christos
2004baccd5
add some utmp processing functions.
2002-07-27 23:57:02 +00:00
christos
06596adfbd
add utmpx/wtmpx processing support.
2002-07-27 23:49:47 +00:00
christos
8720535dd6
add utmpx/wtmpx processing routines.
2002-07-27 23:49:23 +00:00
christos
d857e8ec8a
add utmpx/wtmpx processing routines
2002-07-27 23:49:00 +00:00
christos
51de4d82f7
make this compile without SUPPORT_UTMPX
2002-07-27 22:58:07 +00:00
christos
48715dcc0c
Factor out the utmp/wtmp/lastlog updating and add utmpx/wtmpx/lastlogx updating.
...
Both are turned on for now.
2002-07-27 20:10:32 +00:00
christos
fef92308ac
add lastlogx implementation.
2002-07-27 19:38:29 +00:00
christos
230d3c5bc9
updates to lastlogx implementation.
2002-07-27 19:38:08 +00:00
christos
ca989d9a38
Use strcmp() instead of memcmp() because if we get passed a 0 length name
...
and secret, we'll authenticate successfully! While there, rename passwd to
secret so that code looks nicer.
2002-07-27 19:09:07 +00:00
chs
e697956ce6
we can't use the vnode's v_usecount to track how many times the vnode
...
has been VOP_OPEN()'d. if the fifo is being accessed via a layered fs,
v_usecount is always one (representing the hold by the layered vnode)
regardless of how many times the vnode has been opened. instead, keep a
separate counter for opens. fixes PR 17195 and probably 17724.
2002-07-27 16:43:36 +00:00
fredette
ee28fd70d7
Fixed kgdb support by including <sun2/dev/cons.h>.
2002-07-27 15:55:36 +00:00
christos
d1ccf94413
reset fp when we are done with it.
2002-07-27 15:44:45 +00:00
chs
ebe4c850ef
allocate the bufq after zeroing the swapdev structure, not before.
2002-07-27 14:37:00 +00:00
hannken
ba3784ca91
Convert to new device buffer queue interface.
...
Approved by: Reinoud Zandijk <reinoud@netbsd.org>
2002-07-27 11:09:35 +00:00
hannken
69d849b171
Convert to new device buffer queue interface.
...
Approved by: Marcus Comstedt <marcus@netbsd.org>
2002-07-27 11:07:35 +00:00
grant
32c14ac1fc
refresh screen before processing menus.
2002-07-27 10:02:50 +00:00