Commit Graph

70011 Commits

Author SHA1 Message Date
dbj 5dc123ec73 add debugging assertion ensuring UBC_FAULTBUSY is only used with UBC_WRITE 2004-03-05 20:44:01 +00:00
drochner 571265fc35 deal with XMM exceptions
(I'm not sure whether it is right to clear the "sticky"
exception bits here, but in the i387 case even the whole
FPU is initialized...)
2004-03-05 17:20:13 +00:00
he efb05353c0 Remove the local proc_trampoline definition from this file as well. 2004-03-05 15:50:42 +00:00
junyoung 0f89803028 Drop trailing spaces. 2004-03-05 11:30:50 +00:00
junyoung 103afd6ebf lwp_exit2(): set lwp state to SZOMB at more appropriate point. 2004-03-05 11:17:41 +00:00
petrov 2f82eaf699 Check character if it in font limits before drawing it in rasops8_putchar
functions.
2004-03-05 08:33:53 +00:00
dbj f8e0478668 add some spltty() calls around TTY_LOCK() calls that didn't have them 2004-03-05 07:27:22 +00:00
oster bfeeabba13 Use RF_INCLUDE_PARITY_DECLUSTERING_DS to #if-out more unneeded bits.
(We can't do RF_DISTRIBUTE_SPARE bits without the parity declustering stuff.)
2004-03-05 03:58:21 +00:00
oster 7bd09b0f2b Introduce RF_DEBUG_DAG and use it to #if-out rf_dagDebug sections.
(i386 GENERIC kernel shrinks by 1.6K)
2004-03-05 03:22:05 +00:00
oster a0413593bc - remove the RF_*_INC's, as necessary. They are not needed any more.
- introduce RF_MIN_*'s, as necessary.  These will indicate the
low-water mark for pools as well as the pool_prime() value.
- add pool_setlowat() for the critical pools.
- pool_prime() and pool_setlowat() the raidframe_cbufpool.
- re-order some pool_prime()'s and pool_sethiwat()'s for clarity.
2004-03-05 02:53:55 +00:00
kleink 8e54f10bf7 * Turn isinf(3) and isnan(3) into C99-style macros.
* Make it possible for ports to override these (i.e., VAX).
* Remove isnanl(), which was internal to libc only.
2004-03-04 23:42:38 +00:00
drochner bb362b40bf fix some problems with FPU exception signaling:
-The MachFPTrap did generate pre-siginfo arguments to trapsignal(),
 leading to an immediate crash.
 Put the siginfo generation into a separate .c file for simplicity.
-The exception bits in MIPS_FPU_CSR didn't get cleared, leading to
 trouble later ("kernel used FPU" on pmax).
 XXX This should probably be done for the "unimplemented fpu instruction"
  case as well, but I don't know how to test this. Or, even better -
  centralize the CSR clearing before the branch in MachFPTrap.
2004-03-04 20:17:01 +00:00
jdc 162e36abb1 Make this include the Jornada 720 config and just change the memory size,
as it is exactly the same otherwise.
2004-03-04 19:57:59 +00:00
nathanw 797c90374e Centralize identical copies of proc_trampoline code.
(lots more opportunites here for the bored hacker, such as rei and trap0...)
2004-03-04 19:53:44 +00:00
abs 4bace323ed Add portuguese keyboard map - from Antonio Marques in PR kern/23295 2004-03-04 19:52:52 +00:00
dbj 1ea0a01420 fix comment about spllowersoftclock 2004-03-04 19:10:10 +00:00
wiz e8f4f5ba76 No need to include netinet/ip_mroute.h twice.
Closes PR 24652 by Kailash Sethuraman.
2004-03-04 15:15:06 +00:00
oster a57d045808 Remove a comment that is no longer relevant. 2004-03-04 03:27:30 +00:00
oster b6ec2bc708 Cleanup function prototypes. 2004-03-04 03:14:02 +00:00
oster 516b22a972 Another variable that was only ever initialized. Turf. 2004-03-04 03:02:01 +00:00
oster 5d768c003f Cleanup function prototypes. 2004-03-04 02:55:58 +00:00
oster 708c19adaf Fix mcpair locking issues -- we really don't need the lock held
the entire time we spend in calling rf_DiskIOEnqueue().
2004-03-04 02:49:58 +00:00
oster 409f2e3222 More function prototype cleanups. 2004-03-04 02:26:50 +00:00
oster 5102542bf2 Cleanup function prototype. 2004-03-04 02:25:13 +00:00
oster 65f967653e More leftover 'row' bits now removed. 2004-03-04 01:57:54 +00:00
oster 55cb2c9a0d Cleanup one more leftover 'row' variable. Cleanup function prototypes
in rf_diskqueue.h
2004-03-04 01:53:25 +00:00
oster 6e2928d6d5 resultNum isn't used anywhere. Good-bye. 2004-03-04 00:56:13 +00:00
oster 8b515e1496 rf_bwd1 and rf_bwd2 are holdovers from the "backward" error recovery.
Nuke them, and the little bit of code associated with them.
2004-03-04 00:54:30 +00:00
matt 1b4f540b78 Look at _UC_STACK to decide whether the process' SS_ONSTACK state needs to
be updated.  (This is needed to be compatible with how pre-SIGINFO signals
operated.  If you siglongjmp out of a signal handler, the SS_ONSTACK state
needs to be cleared.  This commit restores that functionality).
2004-03-04 00:05:58 +00:00
dsl 1288fac2ba No need to initialise [rw]pipe twice.
Initialise locks before trying to allocate pipe buffer, when allocate
fails we'll not explode trying to acquire the locks when tidying up.
2004-03-03 22:00:34 +00:00
christos 08230af71c initialize rpipe and wpipe to NULL, so that they are initialized in the
error path.
2004-03-03 21:35:52 +00:00
thorpej fc892593e5 Add new macros:
- RAS_DECL(name): declare the RAS "name"
- RAS_START(name): mark the start of the RAS "name"
- RAS_END(name): mark the end of the RAS "name"
- RAS_ADDR(name): compute the starting address of the RAS "name"
- RAS_SIZE(name): compute the size of the RAS "name"

RAS_START() and RAS_END() have implicit instruction reordering barriers.
RAS_ADDR() and RAS_SIZE() are to be used when registering a RAS.
2004-03-03 21:05:30 +00:00
drochner 302b606369 fix some problems with lazy fpu context handling:
-if a new process gets a CPU with an FPU state of another process, it
 needs to initialize it to a clean state
 (actually, put the "fninit" where it belongs logically)
-initialize mxcsr as well
minor cleanup/optimization
Signal delivery after unmasking some cause is still broken - it doesn't
care about xmm exceptions. For now, set at least si_code to something
positive so that it doesn't look like a user generated asynchonous signal.
2004-03-03 20:27:53 +00:00
oster 2fb9f8db54 Nuke some unnecessary casts. No functional changes. 2004-03-03 17:14:46 +00:00
oster 28bd6c8ea2 Introduce RF_REVENT_READ_FAILED, RF_REVENT_WRITE_FAILED and RF_REVENT_FORCEREAD_FAILED.
This removes 3 more RF_PANIC()'s (but we'll currently still panic if any of these cases occur).
fix up a few printf's.
XXX: still needs more cleanup and testing (and be taught to not panic).
2004-03-03 16:59:54 +00:00
oster b2784ea2d7 Cleanup function prototypes. 2004-03-03 16:12:28 +00:00
oster 992f7c8269 - cleanup unneeded 'row' from RF_CallbackDesc_s.
- remove callbackArg2 from RF_CallbackDesc_s -- it is only ever set,
never read.
- now that this is done, all callbacks should only take a single argument,
and we can simplify things further.
2004-03-03 13:29:00 +00:00
thorpej 8387ab32c5 Use IPSEC_PCB_SKIP_IPSEC() to short-circuit calls to ipsec{4,6}_hdrsiz_tcp(). 2004-03-03 05:59:38 +00:00
gavan bd6b4bb251 Add Creative Labs SB Audigy LS 2004-03-03 01:03:04 +00:00
oster dc851b8e23 Improve comments on rf_LookupRUStatus(). No functional changes. 2004-03-03 01:02:44 +00:00
oster edf3711f4e Cleanup function prototypes. 2004-03-03 00:58:03 +00:00
oster b3eae139eb - cleanup memory allocation in rf_AllocPSStatus()
- change function signature of rf_LookupRUStatus().  The last argument
is now a pointer to a new PSS, in case one is needed.  Rather than
having rf_LookupRUStatus() allocate a new PSS, we pre-allocate one
beforehand, where necessary, just in case.
- change callers of rf_lookupRUStatus() to deal with the new way of
calling rf_lookupRUStatus().

[no improvement or worsening of parity rebuild/initialization performance.]
2004-03-03 00:45:20 +00:00
dyoung 65e1a3b112 Oops, ath(4) tells dBm signal, not dB signal. 2004-03-03 00:05:16 +00:00
oster 564980b994 Another spot where we're willing to wait for pool_get to give us something
useful.
2004-03-02 19:36:21 +00:00
oster a37cdad459 A few more cases where RF_DEBUG_PSS can be used. 2004-03-02 16:40:10 +00:00
martin ce925f4f4f Interrupt descriptors might become invalid while being processed in
uhci_check_intr - so remember their next pointer before calling it.
Patch provided by Matthew Orgass in PR kern/24542.
2004-03-02 16:32:05 +00:00
oster 79a5cbaf41 DO_WAIT and DO_SIGNAL macros are a bit much, as they are only each used
in one place.  Simplify things a bit.  No functional change.
2004-03-02 16:03:00 +00:00
oster a7e422ac7f We're willing to wait, so we should always get something valid from
pool_get().
2004-03-02 15:55:56 +00:00
oster d2accf5991 Fix more cases where mutex locks were being held longer than necessary.
[For the record: The mcpair mutex is being used to protect mcpair->flag.
mcpair gets allocated before each call to rf_DispatchDAG(), so there is no
other process/thread that could be mucking with it.  It is only used to
detect the completion of a given parity unit, and rf_DispatchDAG()
only uses it to setup the callback argument for rf_MCPairWakeupFunc()
which will be called when the IO completes.  The code after the call
to rf_DispatchDAG() sits and waits for a 'wakeup' on mcpair->cond
(rf_MCPairWakeupFunc() does that).  If mcpair->flag is 0 when
rf_DispatchDAG() completes, then rf_MCPairWakeupFunc() hasn't been
called yet (the IO hasn't completed).  If it is 1, then the IO is
already done, and we continue on our merry way without sleeping.
Thus, we don't need to hold any lock on mcpair while calling
rf_DispatchDAG().]
2004-03-02 15:47:35 +00:00
fvdl 7e3d28789f During a control operation (like a reset), wait 10us after selecting
the drive. This fixes (or rather, works around) a timing problem
with WD Raptor drives attached to a Sil3114 SATA controller.

Should fix PR 23808, it fixes the same problem for me.
2004-03-02 13:13:57 +00:00
yamt 9359a18b6a uvm_fault: check loan_count of neighborhood object page properly.
PR/24595 from Stephan Uphoff.
2004-03-02 11:43:44 +00:00
yamt 471ef5f249 once exit1() releases big kernel lock, the struct proc can be freed and
re-used by another cpu immediately.  in that case, lwp_exit2() will
access freed memory.  to fix this:

- remove curlwp from p_lwps in exit1() rather than letting lwp_exit2() do so.
- add assertions to ensure freed proc has no lwps.

kern/24329 from me and kern/24574 from Havard Eidnes.
2004-03-02 09:15:26 +00:00
thorpej 2803ff0955 Use the new IPSEC_PCB_SKIP_IPSEC() to bypass a socket policy lookup
when possible.  This shaves several cycles from the output path for
non-IPsec connections, even if the policy is cached in the PCB.
2004-03-02 02:28:28 +00:00
thorpej 00f100daae Call ipsec_pcbconn() and ipsec_pcbdisconn() for FAST_IPSEC, too. 2004-03-02 02:26:28 +00:00
thorpej 076a26a516 Remove some left-over debugging code. 2004-03-02 02:24:02 +00:00
thorpej ce5ecc33b9 Bring the PCB policy cache over from KAME IPsec, including the "hint"
used to short-circuit IPsec processing in other places.

This is enabled only for NetBSD at the moment; in order for it to function
correctly, ipsec_pcbconn() must be called as appropriate.
2004-03-02 02:22:56 +00:00
thorpej db4fcd885b Augment the PCB cache with a "hint" that can be used to short-circuit
IPsec processing in other places.  The hint has 3 values: MAYBE, YES,
and NO.  Hints are initialized to MAYBE, and MAYBE is always used for
unconnected sockets (since the spidx may change for every packet
that is output).  For connected sockets, NONE and BYPASS policies cause
the hint to be set to NO, and all other policies to YES.

Also shuffle the PCB cache data structure, turning 3 arrays into a
single array of a struct.
2004-03-02 02:17:38 +00:00
thorpej 979f197a86 Define a sotoinpcb_hdr() macro (a'la sotoinpcb()). 2004-03-02 02:11:14 +00:00
thorpej 68020cebc0 iipsec4_get_ulp(): Fix a reversed test that would have caused us to access
bogus IP header data if presented with a short mbuf.
2004-03-02 00:50:57 +00:00
kleink 9ff09d5dff Pull in SPRs via <powerpc/spr.h> in this single instance, and dispose of
<machine/spr.h> again.
2004-03-02 00:35:54 +00:00
kleink 591762a7d0 Insert a newline after autoconf output. 2004-03-01 23:49:12 +00:00
kleink 02a87b49d9 Back out previous. 2004-03-01 23:46:44 +00:00
oster c7eaad6a14 Use RF_ACC_TRACE to #if out more chunks of code related only
to access tracing.  (not turned on yet)
2004-03-01 23:30:57 +00:00
thorpej fdbf515ae2 Add missing copyright notice (FreeBSD rev. 1.3.2.2). 2004-03-01 23:30:01 +00:00
thorpej 4f0ad651e0 Add missing copyright notice (FreeBSD rev. 1.1). 2004-03-01 23:28:02 +00:00
thorpej c82e44fc22 Add missing copyright notice (FreeBSD rev. 1.5.2.2). 2004-03-01 23:24:10 +00:00
thorpej 09a25ecbcd Add missing copyright notices (FreeBSD rev 1.2.4.2). 2004-03-01 23:20:53 +00:00
itojun 581091043b knf 2004-03-01 22:32:35 +00:00
kleink b66915a096 Cosmetics; add missing newline to autoconf output. 2004-03-01 20:29:24 +00:00
thorpej 31e39503c5 Merge netkey/key.c rev 1.51 (wiz):
va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
2004-03-01 18:33:03 +00:00
tron a188d6072b Don't leak memory if a copyin fails. 2004-03-01 13:54:02 +00:00
drochner 98dbb9f046 on (fast) syscall exit, force %ds to its standard value --
it might have been modified by a netbsd32 process
2004-03-01 12:10:41 +00:00
drochner 7925327e58 set MDP_IRET in cpu_setmcontext() - the normal (fast)
syscall exit is not able to propagate all register
arguments
2004-03-01 12:06:02 +00:00
dyoung 3644406951 Attach the ath(4) sysctls:
ath.dwell: channel dwell time (ms) for AP/station scanning
ath.calibrate: chip calibration interval (secs)
ath.outdoor: enable/disable outdoor operation
ath.countrycode: (opaque?) country code
ath.regdomain: (opaque?) regulatory domain
ath.debug: 0 (no debug messages), 1 (some messages), 2 (all messages)
2004-03-01 01:19:45 +00:00
oster e35e293611 We always wait until we get memory, so the NULL check doesn't buy us anything. 2004-03-01 01:12:22 +00:00
oster 63e07285f8 Bah. RF_ACC_TRACE bits need a bit more work before they can be turned off.
Re-enable until all parts can be disabled at the same time.
2004-02-29 23:27:24 +00:00
oster b5e62ef069 As a LOCK_DEBUG kernel complains, we should really initialze
rf_tracing_mutex.
2004-02-29 23:10:58 +00:00
oster 4b8d5fc8b6 Unlock the mcpair mutex before we call rf_DispatchDAG(), and re-lock it once
we are back.  Makes things much happier on SMP boxen.  Problem noted
by SimonB. (Thanks!)
2004-02-29 23:03:30 +00:00
oster e9ec029612 Oops.. might still need this mutex in a few places. 2004-02-29 22:32:37 +00:00
oster 65ba8db490 Minor shuffling of variable declarations to clean RF_ACC_TRACE #defines
up a bit.  No functional changes.
2004-02-29 22:11:54 +00:00
oster 0d2f3606aa Add "RF_ACC_TRACE" as a new #define to rf_archs.h.
Use it to conditionalize some of the access tracing and tracerec bits.
Chops about 4 K off of an i386 GENERIC kernel.
2004-02-29 21:38:41 +00:00
oster cf01eb78b2 Minor comment reformatting. 2004-02-29 20:47:37 +00:00
oster d272af6ed2 When the 'if' condition is true, the function will return, so there
is no need for this chunk of code to be in the 'else' part.
Remove the 'else', and left-shift the code.

No functional changes.
2004-02-29 20:11:26 +00:00
jdolecek 1c8e4dd167 add comment to smbfs_remove() regarding the limitation to only remove
unreferenced files
2004-02-29 12:19:15 +00:00
jdolecek b4b58e65b1 print info about active vnodes in reclaim/inactive if prtactive is set 2004-02-29 12:17:39 +00:00
jdolecek 1a3236aefa close the SMB handle when vnode is inactivated, rather than on file close,
so that mmap()ped regions remain accessible even when the file descriptor
is closed
g/c smbnode's n_opencount, and have single NOPEN flag instead

fixes PR kern/24516 by Lloyd Parkes

change obtained from FreeBSD, with only minor adjustments
2004-02-29 11:47:08 +00:00
jdolecek 4ba68533b9 use global prtactive setting instead of ntfs-specific variable;
this also changes default, to not print the active vnodes
2004-02-29 11:08:55 +00:00
oster 5a02af5b21 Adjust _rf_ShutdownCreate() so that it is willing to wait for more
memory.  Since we only now ever "return(0)", just return (void)
instead.

Cleanup all uses of rf_ShutdownCreate() to not worry about
it ever failing.  Shaves another 600 bytes off of an i386 GENERIC kernel.
2004-02-29 04:03:50 +00:00
oster da96c7f542 InitHdrNode() might as well return 'void'. Nothing ever pays attention
to what it returns anyway!
2004-02-29 01:50:23 +00:00
oster 4907fd699b rf_MakeAllocList() will always get memory. No point in checking for
a case that won't ever occur.
2004-02-29 01:49:13 +00:00
oster d4a8e64b16 We'd better have gotten a dag header from the pool. In any event, callers
arn't checking what we return anyway. (Cleanup memory allocations.)
2004-02-29 01:47:45 +00:00
oster 2e0cff190a TransferDagMemory() doesn't exist, so these lines are just wasting space. 2004-02-29 01:37:04 +00:00
oster 5e23bfcf9b Stripe functions are now handled by a linked-list instead of a
runtime-variable array.

Fix a bug where stripeFuncs was being freed, and then being used after
(in the case of numStripesBailed > 0).
2004-02-29 01:24:34 +00:00
dyoung d68ab48dd5 Update ath(4)'s Hardware Abstraction Layer (HAL) to version 0.9.6.11.
Both the API and ABI changed, hence the changes to so many .c and
.h files.
2004-02-29 00:47:21 +00:00
dsl 44eaa39982 Report errno value from boot1() - even though the standalone FS code
seems to translate everything into ENOENT.
2004-02-28 23:01:55 +00:00
dsl da7ffa3cbe Look for /boot in the 'a' partition (from the label in the mbr partition)
if it can't be found in a filesystem (or raid set) at the start of the
mbr partition.
2004-02-28 22:32:23 +00:00
dbj 5b782a2183 allow err of IREENT_MAGIC when looking for interrupt frames 2004-02-28 20:30:58 +00:00
simonb a50cc8bd42 Catch up with the November 2002 (!!) change to remove ABI exposure
from cpu_fork and the proc trampoline.  pthreads programs that fork
now work (at least the regress test case does).
Program reported by Florian Stöhr on port-sgimips.
2004-02-28 16:02:03 +00:00
simonb 7e050bc20e ANSIfy, wrap long lines. 2004-02-28 15:44:34 +00:00
jdolecek 8af8547957 smbfs_rename(): #ifdef notyet some code related to disabled smbfs_smb_move(),
and also fix a return in the code section - we need to do vnode cleanup
before returning error
2004-02-28 09:19:53 +00:00
jdolecek 0a48f48a91 smbfs_rename(): only touch attribute cache properties if the operation
is carried out; particularily, don't touch it if the rename files
due to EXDEV - the 'from' or 'to' vnode may not be on smbfs filesystem
at all in that case
this is the final fix for PR kern/24455 by Milos Urbanek
2004-02-28 09:04:00 +00:00
yamt 395e9958f2 change the way to handle NEW_BUFQ_STRATEGY option.
instead of putting #ifdefs into each drivers,
use a global variable to indicate default strategy.

XXX should have a way to specify other strategies.
2004-02-28 06:28:47 +00:00
dbj 0dcc30f1ff fix bug in tracing current process by explicit pid 2004-02-28 02:58:35 +00:00
dbj ba0f8cbecc fix an uninitialized variable problem that prevented t/u from working.
this also helps some when no symbols are available
2004-02-28 01:00:30 +00:00
sekiya d289507533 Blinkenlitzen for IP20 (Indigo). 2004-02-28 00:53:56 +00:00
dbj d3e00c7d64 fix backtracing through interrupt frames and system call frames 2004-02-27 22:52:03 +00:00
enami ac317107c7 Backout (part of) rev. 1.187, since the control no longer fall through. 2004-02-27 21:37:48 +00:00
scw c29e82af70 Must Test Before Committing... 2004-02-27 18:55:19 +00:00
martin 9e69fb321b Return PMS_UNKNOWN instead of 0 for clarity (it's the same, anyway). 2004-02-27 17:56:01 +00:00
jdolecek b1d292e1be add yet another ServerWorks variant
from PR port-i386/24570 by Ray Phillips
2004-02-27 09:01:26 +00:00
uwe 0ed7ecdd91 G/c unused "hdc" variable. 2004-02-27 04:22:26 +00:00
uwe c45485b3de Forgot to call ReleaseDC(). 2004-02-27 04:20:38 +00:00
uwe c23bdf5200 On winder HPC screens use wider Boot/Cancel buttons that looks better. 2004-02-27 03:53:33 +00:00
uwe 6212a368a7 Make sure the root window always has focus, so that hpcboot can be
operated using only the keyboard.  It should now be possible to boot
NetBSD on HPC devices with broken touchscreens.
2004-02-27 03:23:12 +00:00
oster 873f4a20f5 Add forgotten pool_destroy(). 2004-02-27 03:18:02 +00:00
oster 24099528e9 Use a dynamically allocated linked list of dagLists instead of using a
dynamically allocated variable-sized array (dagArray).  Convert code
to use the new linked list stuff instead of the array stuff (the ratio
of one dagList per stripe still applies).  The big advantage is in
being able to more efficiently allocate the dagLists on-the-fly, and
not have to know the size(s) of the array beforehand.
2004-02-27 02:55:17 +00:00
junyoung d177d4c744 More typos in comments. 2004-02-27 02:43:25 +00:00
uwe d6be11a58d Use realsize() to determine the size of the miniroot image.
It's now possible to boot from gzipped miniroots.
2004-02-27 02:02:16 +00:00
uwe 318e48690d Implement realsize() method. For gzipped files it reports the
uncompressed file size.
2004-02-27 02:00:32 +00:00
uwe 20c14b226b Shut up gcc3 warning that `metalbn' might be used uninitialized.
XXX: The warning is bogus and only triggered on sh3.
2004-02-27 00:19:36 +00:00
oster 19eeec0a9c Add a missing:
pool_destroy(&lfs_dinode_pool);

to lfs_done().

Approved-by: yamt
2004-02-26 22:56:55 +00:00
yamt f9571060ef lfs_putpages: fix a simple_lock mismatch. 2004-02-26 22:41:36 +00:00
petrov b062992f9d Correct VA_ALIAS_MASK. From Chuck Silvers. 2004-02-26 20:24:29 +00:00
petrov c8c8407406 Correct ffb attachment. 2004-02-26 20:23:17 +00:00
drochner 50e0a489c2 regen 2004-02-26 17:12:53 +00:00
drochner 949c33ef12 add intel e7501 host bridge 2004-02-26 17:12:09 +00:00
junyoung c5a0b24bb5 pgrpdump() is gone. 2004-02-26 11:29:41 +00:00
junyoung 213495299b - Fix typos.
- De-__P().
- Remove trailing spaces.
2004-02-26 11:20:08 +00:00
jdolecek 52197d307a pipelock() must release the pipe simplelock during tsleep()
fixes PR kern/24551 by Havard Eidnes
2004-02-26 08:15:31 +00:00
itojun 8ef33296ff KNF 2004-02-26 02:34:59 +00:00
itojun efcd57f822 m_cat() - if it is safe, copy data portion into 1st mbuf even if 1st mbuf
is M_EXT mbuf.
2004-02-26 02:30:04 +00:00
wiz 12cc2d2b2b Fix pasto, from when STAILQ* was added. Closes PR 24557 by Ron Roskens. 2004-02-26 01:20:47 +00:00
drochner 835771a879 On disconnect, set the "subdev" pointer to NULL, otherwise
free()d memory will be referenced through
usbd_add_dev_event(USB_EVENT_DEVICE_DETACH)->
usbd_fill_deviceinfo()
later.
might need more review, but at least it doesn't crash on
amd64 anymore
2004-02-25 21:52:59 +00:00
enami dab2cb5bb0 Whitespace nits. 2004-02-25 21:40:40 +00:00
enami f7b4bb80a5 Make ktrwrite() and ktrinitheader() private again. ktrsyscall32() no longer
exists.
2004-02-25 21:34:18 +00:00
perry 39c2ad666c fix another whitespace nit 2004-02-25 18:56:26 +00:00
perry c5e487ca2c juggle tabs and spaces so comments don't nuke line lengths as badly 2004-02-25 18:50:01 +00:00
drochner aaececd2f4 allow to start other emulations (eg native code)
from here: set p_execsw to the new thing, and call
the new emulation's syscall_intern()

XXX there are more differences to kern_exec.c, sa/ras
related afaics, this is harmliss for now since
netbsd32 doesn't support multithreaded programs yet --
one day one execve() implementation should be shared
by native and netbsd32 code.
2004-02-25 18:15:45 +00:00
dbj 5fd36718ae fix typo in comment s/MNT_LAXY/MNT_LAZY/ 2004-02-25 04:10:28 +00:00
oster d3f3b25e8d Poolify alloclist stuff. Saves a whopping 32 bytes while decreasing code
complexity.
2004-02-25 02:15:52 +00:00
christos 7088db9a48 remove error(1) comment. 2004-02-24 20:57:26 +00:00
drochner 6f1a2b7cbf deliver SIGSEGV/SEGV_ACCERR if code execution on stack is attempted,
tested by Juergen Hannken-Illjes
(there are more uninitialized ksi.ksi_code arguments)
2004-02-24 18:31:46 +00:00
drochner 45fc887212 deliver SIGSEGV/SEGV_ACCERR if code execution on stack is attempted,
tested by Chuck Silvers
2004-02-24 18:25:27 +00:00
drochner c6de49574c The interrupt claim stuff is broken -- data buffers
and external interrupt handlers should be completely
unrelated.
For now, just remove the obvious culprit in the nibble/ps2
case to make NTP pps signal capturing work again.
External handlers should be passed to the lower level,
and they should have full power and responsibility if
they are installed, and their lavel should be selected
by the frontend.
Being here, comment out <machine/intr.h> - it is not
used yet, and do some more conmetic cleanup.
2004-02-24 17:41:09 +00:00
wiz 516a72484d Spell through with two hs. From Peter Postma. 2004-02-24 15:24:35 +00:00
wiz e4612a6a03 achieved, not acheived. From Peter Postma. 2004-02-24 15:23:16 +00:00
wiz 73e1501b98 parameter with two es. From Peter Postma. 2004-02-24 15:22:01 +00:00
wiz 85746c6759 Spell interrupt with two rs. From Peter Postma. 2004-02-24 15:16:04 +00:00
wiz f05e6f1a3a occured -> occurred. From Peter Postma. 2004-02-24 15:12:51 +00:00
wiz dc4cc98b15 becuase -> because. From Peter Postma. 2004-02-24 15:05:53 +00:00
jandberg 4328680c2a regen after wsfont changes 2004-02-23 21:18:50 +00:00
jandberg c7998e2542 Add wsfont pseudo-device.
With this the custom font loading code isn't needed and is removed.
2004-02-23 21:14:08 +00:00
jandberg bd3891888b Replace an IBM-encoded wsfont with ISO-encoded one 2004-02-23 20:53:41 +00:00
uwe 0294b2b99a WinCE 2.11 doesn't support keyboard focus traversal for nested
dialogs, so implement poor man keyboard focus manager.  The goal is to
make it possible to use hpcboot on HPC devices with broken touch
screen.  (TODO: Make sure that when the window is activated, there is
a focused control).
2004-02-23 05:20:48 +00:00
itojun aaa4bd9a6c avoid out-of-bound memory access if len == 128.
from Ted Unangst via Colin Percival
2004-02-23 05:01:04 +00:00
uwe dc89f5be32 If MEMORY_DISK_IS_ROOT - don't compile/use get_device(), as setroot()
anyway will ignore the info we pass.
2004-02-23 03:32:23 +00:00
uwe 590efeca88 Wrap "unknown instruction in prologue" in TRACE_DEBUG. gcc3 reorders
instructions so that prologue code and function code get mixed, and
you get a lot of noice from this printf, making traceback very hard to
read if not useless.
2004-02-23 01:06:53 +00:00
jdolecek 4d49760268 use the new NOTE_SUBMIT to flag if the locking is necessary
for EVFILT_READ/EVFILT_WRITE knotes

fixes PR kern/23915 by Martin Husemann (pipes), and similar locking problem
in tty code
2004-02-22 17:51:25 +00:00
jdolecek 5bf0870e20 add internal kernel NOTE_SUBMIT; this will be used by some kqueue code
to skip some steps on initial knote submission
2004-02-22 17:45:26 +00:00
jdolecek 756045a44e fix PNBUF_PUT() calls:
* it should not be called for rmdir or remove vop
* for create and mkdir, it should only be called on error, or when
  SAVESTART flag is not set

fixes PR kern/24455 by Milos Urbanek
2004-02-22 11:14:08 +00:00
jdolecek 209952cca8 make VOP_UPDATE() trivially succeed (without doing anything), instead
of returning error

this makes it possible to mount other filesystems on directory on NTFS
filesystem
2004-02-22 10:26:14 +00:00
jdolecek 2ae728e7ef mount(2): if vinvalbuf() fails, we must also vput() the mountpoint vnode
fixes stale vnode lock after attempt to mount something on a NTFS directory
2004-02-22 09:56:26 +00:00
jdolecek d06e4401fa make sblock_try[] const 2004-02-22 08:58:03 +00:00
jdolecek ff7bf7ee82 use 64bit local variable for free space computation 2004-02-22 08:18:11 +00:00
mycroft 289d7af075 Remove PQUIRK_CDROM. It is definitely not correct -- witness that no other
OS needs such a hack, and the same drive works fine on Suns -- and is much
more likely to be a bug in the host adapter driver (which is corroborated by
the PQUIRK_NOLUNS).
2004-02-22 07:26:15 +00:00
sekiya bb60b4d04f Correct descriptive comment (these routines are not used for r5ksc). 2004-02-22 03:23:54 +00:00
dan 5819919614 micro-optimisation - if we're going to return 0, do so before doing
other unnecessary work
2004-02-22 01:00:41 +00:00
enami 18a61d4783 Backout an obvious bug introduced in rev. 1.145. 2004-02-22 00:26:43 +00:00
enami 06107df871 Modify pool page header allocation strategy as follows:
In addition to current one (i.e., don't wast so large part of the page),
- if the header fitsin the page without wasting any items, put it there.
- don't put the header in the page if it may consume rather big item.

For example, on i386, header is now allocated in the page for the pools
like fdescpl or sigapl, and allocated off the page for the pools like
buf1k or buf2k.
2004-02-22 00:19:48 +00:00
bjh21 859077437c Use 0 for integers, not NULL. 2004-02-21 23:25:01 +00:00
bjh21 af905e2600 RCSID() 2004-02-21 23:22:34 +00:00
bjh21 02d168952e Ensure file ends with a newline. 2004-02-21 23:20:53 +00:00
oster 8bf9613af8 unlockQNodes, unlockDataNodes, and unlockParityNodes are not used. Turf. 2004-02-21 20:06:29 +00:00
augustss 8666d19603 Make INSTALL kernel a little slimmer. 2004-02-21 11:38:28 +00:00
junyoung 2402a07435 - Locate comment in right place.
- Fix wrt protection against multiple inclusion.
2004-02-21 04:31:40 +00:00
atatat 56392ab40b Use KERN_PROCSLOP for struct kinfo_proc and KERN_LWPSLOP for
struct kinfo_lwp, and not vice versa.

Should solve the issue with top dying because it's unable to "allocate
memory".
2004-02-21 03:27:57 +00:00
jkunz 7006f1c550 Import ipmlementations for _bus_dmamap_load_buffer(), mbus_dmamap_load(), mbus_dmamap_load_mbuf(), mbus_dmamap_load_uio() and mbus_dmamem_mmap(), from sys/arc/vax/vax/bus_dma.c and rework mbus_dmamap_sync() based on sys/arc/arm/arm32/bus_dma.c. 2004-02-20 20:22:10 +00:00
jkunz c43db93399 hp700 has no PCI support yet. Enabling PCI devices breaks compilation, so disable all PCI devices for the moment. 2004-02-20 20:18:37 +00:00
drochner 972fe86c42 Provide a dummy cpu_exec_aout_makecmds() to make a kernel
with COMPAT_NETBSD32+COMPAT_AOUT link.
netbsd-1.3/i386 binaries are running now.
2004-02-20 18:11:16 +00:00
yamt 2becafcd79 don't assume that bus on intr_extra_buses has non-null pci_bridge_tag.
pchb's second bus doesn't have it.

ok'ed by Frank van der Linden.
2004-02-20 18:04:06 +00:00
yamt d749a2d0b4 defer pmap switching until it's really needed
to avoid frequent loading of cr3 register, which involves tlb flush.

with some fixes/improvements from Stephan Uphoff and Bang Jun-Young.
2004-02-20 17:35:01 +00:00
drochner b07c616019 did this ever work? The EXEC_32 flag must be set _before_
exec_aout_prep_*magic(), otherwise setup_stack() fails.
2004-02-20 17:04:27 +00:00
fvdl a043ba6b66 Actually match the nforce3 as well.. 2004-02-20 16:36:29 +00:00
drochner f0423dfad5 -MID_SPARC->NETBSD32_MID_MACHINE
-check for zero BSS size, as in kern/exec_aout.c rev. 1.23
2004-02-20 16:14:38 +00:00
drochner 289fa68010 provide a definition NETBSD32_MID_MACHINE which tells for the a.out MID
to look for in 32-bit emulation
2004-02-20 16:11:44 +00:00
drochner 2982fa170d use no-execute page permissions if supported 2004-02-19 17:18:38 +00:00
drochner fdeec1f029 define AMD64's CPUID_NOX bit (I'm curious where Intel puts this bit in the
ia32 extension just announced)
XXX there should be a better separation between generic and vendor
specific feature flags
2004-02-19 17:09:39 +00:00
drochner d2414542a3 -on instruction fetch fault from non-executable pages, signal
SIGSEGV/SEGV_ACCERR
-whitespace cleanup
2004-02-19 17:06:06 +00:00
drochner 893de0a21e signal SIGSEGV/SEGV_ACCERR if non-executable stack is jumped to 2004-02-19 17:02:44 +00:00
yamt 635ee237b0 support h/w assisted vlan tag insertion. 2004-02-19 14:21:40 +00:00
yamt 9324f158e1 support h/w assisted vlan tag removal. 2004-02-19 13:34:51 +00:00
uebayasi 5d41e06074 Update some URLs. 2004-02-19 12:23:47 +00:00
ragge 9a3ec25f87 Add media type 10GbaseLR. Change ifmb_baudrate and ifmedia_baudrate()
to u_quad_t instead of int (common speed today exceeds 2Gbit).
2004-02-19 11:58:30 +00:00
thorpej 816a869868 s/WTC_DTYP_D/WTX_DTYP_D/ 2004-02-19 05:19:52 +00:00
thorpej 881b8b9966 Fix typo in debug message. From Jeffrey Hsu. 2004-02-19 05:18:47 +00:00
atatat 42d379d041 Use new PTRTOUINT64() macro instead of local PTRTOINT64() macro. 2004-02-19 03:57:56 +00:00
atatat caea20e952 Add PTRTOUINT64() and UINT64TOPTR() macros to sys/sysctl.h for use by
kern.proc, kern.proc2, kern.lwp, and kern.buf.

Define more MIB for kern.buf so that specific buffers can be selected
(only all/all is supported right now), and use a 32/64 bit agnostic
structure for communcating buffer information to userland.

Convert systat to the new kern.buf method.

Clean up the vm.buf* handling a little.  There's no actual need to
record the dynamically assigned OIDs, since sysctl_data can tell us
what we're looking at.

Oh, and fix a typo in a comment.
2004-02-19 03:56:30 +00:00
matt cb57c6f8e9 Move detection of a special symbol into a separate function. Add some more
special symbols.
2004-02-19 03:42:01 +00:00
thorpej fd4acf29d4 Add missing txseg20 counter name. Pointed out by Jeffrey Hsu. 2004-02-19 02:13:23 +00:00
augustss 187630511a Add a serial adapter. From PR 24482 2004-02-19 01:12:05 +00:00
augustss 84fc0b7421 Regen. 2004-02-19 01:11:13 +00:00
augustss 6f5601f100 Add a serial adapter. From PR 24482 2004-02-19 01:10:42 +00:00
bjh21 fb330ce71b Remove pckbc_machdep_cnattach() -- it's no longer needed. 2004-02-19 01:03:45 +00:00
matt f01501b2c6 Support really large LKMs. Find out how much space is needed for symbols
and then allocate it on demand.  Rename some common symbols (__bss_start,
_edata, _end, __start_link_set_*, __stop_link_set_*) so that ".<module>"
is appended to them.  This shrinks an amd64 kernel by 20KB of BSS.
2004-02-18 23:44:49 +00:00
matt 004f0d503a s/sumbols/symbols/ 2004-02-18 20:41:09 +00:00
hannken c59d4851b8 Run pmap_deactivate() earlier in exit1(). Prevents a panic on sparc MP
where p->p_vmspace was 0xdeadbeef in pmap_deactivate().

Approved by: YAMAMOTO Takashi <yamt@netbsd.org>
2004-02-18 14:42:20 +00:00
matt 77effcd27e Don't waste space on likely unused sysmon structure.
Instead malloc them as needed.
2004-02-17 22:03:52 +00:00
dyoung 8ecfa06341 Move the RF Microdevices RF3000 & Silicon Laboratories SI4126/SI4136
register sets into their own header files for re-use by future
drivers.
2004-02-17 21:20:55 +00:00
jdolecek fc15b17c83 fix NT_OPEN_EXISTING to be really just 'open' and not include the 'create' bit
fixes the problem described in PR kern/22835 by Rob Quinn
2004-02-17 19:22:42 +00:00
kleink e436929104 Fix a (non-dangerous) malloc size botch in eso_allocm();
from Stephen Ma in PR kern/18342.
2004-02-17 17:39:55 +00:00
kleink d82820e03a Audio 2's DMA current address register implements only the least
significant 20 bits, so make sure its memory allocation won't cross
a 1M boundary.  From Stephen Ma in PR kern/18342.
2004-02-17 17:34:21 +00:00
simonb d7ee872c5f Don't shadow a function name with a parameter. 2004-02-17 11:36:01 +00:00
tron 7008209ace Include "sys/systm.h" to get the prototype for panic() which is required
for diagnostic kernels.
2004-02-17 08:22:12 +00:00
rtr 8845b1e975 split off the evcnt code (which is unrelated to autoconfiguration)
into a separate file

approved by simonb@
2004-02-17 05:03:15 +00:00
enami 456851e71a Some whitespace fix. 2004-02-17 01:45:34 +00:00
enami d59c88c291 The vnode capability id is gone. 2004-02-17 01:35:33 +00:00
enami 6a268a570b Rewind the `bp' advanced backward by cache_revlookup() if getcwd_getcache()
finally returns cache miss.

# Slightly modified from posted version so that it is cleanly patchable
# at least on 1.6 branch.
2004-02-17 01:29:39 +00:00
wiz bb3980ab7a Remove last traces of DUMMY_NOPS option that was removed some
time ago.
From Jeff Rizzo in PR 24442.
2004-02-16 17:11:26 +00:00
yamt 0e9e078e22 - raise ipl when calling buf_canrelease() because it traverses buffer queue.
- correct/add comments on buf_canrelease().
2004-02-16 09:34:15 +00:00
lukem 23743f47b8 Add some notes about the layout of the master/partition/floppy boot record. 2004-02-16 07:37:06 +00:00
thorpej e1e9cfd40a Comment out some SYSV* and *VERBOSE options to shrink these down so
they fit in the current boot floppies.
2004-02-16 02:43:53 +00:00
jdolecek cb3ab0a872 unlock the descriptor table simple lock after fd_getfile() call in
procfs_readdir()
fixes procfs locking problems reported on current-users@, problem place
found by enami tsugutomo
2004-02-15 22:18:17 +00:00
jdolecek 6d8183e508 add rnd hooks 2004-02-15 09:40:32 +00:00
kochi 93ec3b2720 Merge ACPI-CA 20040211. 2004-02-14 16:57:24 +00:00
dsl bcaf57b039 Fix prev. so it compiles 2004-02-14 16:40:22 +00:00
junyoung ff24ed0023 device<tab>
attach<tab>
2004-02-14 16:38:06 +00:00
junyoung 4d4de5b780 device<tab>
attach<tab>
file<tab>
2004-02-14 16:35:58 +00:00
bjh21 5aca86918f Add a new MI attribute, pckbc_machdep_cnattach, and change pckbc_cnattach()
to only call pckbc_machdep_cnattach() if this is present.  This allows
pckbc_machdep_cnattach() to be omitted entirely on most ports, where it only
returns ENXIO anyway.

The devices with this attribute at the moment are pc(4) on i386 and bebox, and
pckbc on sparc, where pckbc_machdep_cnattach() mysteriously returns 0 rather
than ENXIO.
2004-02-14 14:33:28 +00:00
bjh21 c1e3dd3d1f Remove "pc", "pcconskbd" and "pckbcport" on prep, since they've practically
not been there for two years.
2004-02-14 14:10:05 +00:00
bjh21 2e7e5cf29f Remove definitions of "pc" and "pcconskbd" devices which couldn't work since
they used arch/prep/isa/pccons.c, which was removed in late 2001.
2004-02-14 14:00:22 +00:00
jdolecek af46922ada add compat hook in check for zerodev; use this hook to recognize
the old ARM /dev/zero minor mapping #ifdef COMPAT_16
fixes second part of PR kern/23581 by Richard Earnshaw
2004-02-14 12:20:14 +00:00
jdolecek 159f41eca4 allocate wired memory for the marker kevent in kqueue_scan() instead
of using on-stack memory, so that this wouldn't eventually cause kernel
panic if the process get swapped out and another process runs kqueue_scan()
problem pointed out in kern/24220 by Stephan Uphoff
2004-02-14 11:56:28 +00:00
simonb aa459d7b32 Make everything in this file except for the sysctl CTL_MACHDEP related
information hidden outside the kernel.
2004-02-14 08:20:43 +00:00
bsh c9e2add10b add drivers for LCD and keyboard. 2004-02-14 07:32:31 +00:00
bsh 58613436a1 Support SMDK2410's 240x320 TFT LCD.
This can be configured with or without wsdisplay.
Only 8- and 16-bpp modes have been tested.
2004-02-14 07:26:35 +00:00
bsh 782b4d1e18 Keyboard driver for semtech SPICoder-SA06 on Samsung SMDK2410.
The board has a full keyboard. The controller is hooked to SPI port.
2004-02-14 07:23:30 +00:00
bsh ba2cd9f97b add lcd and spi 2004-02-14 07:20:20 +00:00
bsh 126ae44aa1 SPI support for Samsung S3C2410.
spi driver doesn't provide any actual I/O, and attaches child drivers
for devices that hooked to SPI ports.
2004-02-14 07:19:51 +00:00
bsh 0eedb024e6 Support S3C24X0's on-chip LCD controller.
lcd driver can be configured with or without wsdisplay.
With wsdisplay, it supports text mode using rasops in 8bpp or 16bpp.
Without it, users only can mmap(2) the framebuffer.

XXX: 1-, 2-, 4-, or 24- bpp mode is not supported yet.
XXX: S3C24x0's LCD controller can have virtual screen which is bigger
     than actual LCD panel. Our wsdisplay framework doesn't have
     features to utilize it.
2004-02-14 07:12:50 +00:00
hannken 142e9d5deb Add a generic copy-on-write hook to add/remove functions that will be
called with every buffer written through spec_strategy().

Used by fss(4). Future file-system-internal snapshots will need them too.

Welcome to 1.6ZK

Approved by: Jason R. Thorpe <thorpej@netbsd.org>
2004-02-14 00:00:56 +00:00
snj d02c32fcce s/rediculous/ridiculous/ 2004-02-13 22:47:04 +00:00
enami 6c4e6273df xs->timeout is in milliseconds so convert it to tick before passing
it to callout_reset().
2004-02-13 21:22:13 +00:00
shige f8b38a76cf Fix unlocking operation (RWEL register).
PR:		kern/24231
Submitted by:	KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>
2004-02-13 20:12:00 +00:00
drochner dc30e923ea plug kernel lock leaks 2004-02-13 18:57:19 +00:00
drochner 61c3181dd6 plug obvious kernel lock leaks
(untested)
2004-02-13 18:27:14 +00:00
wiz e365329be5 Spell length with h after t. Inspired by a commit by brad@openbsd. 2004-02-13 18:02:05 +00:00
drochner 8437e697bc plug 2 obvious kernel lock leaks
(compile tested only)
2004-02-13 18:01:44 +00:00
wiz e3fc4b66c3 Spell the plural of suffix "suffixes", not "suffices".
Inspired by PR 24400 by Todd Vierling.
2004-02-13 17:56:17 +00:00
drochner 41b5db514b make this compile whether DIAGNOSTIC is defined or not 2004-02-13 17:17:04 +00:00
drochner 8d3cefb29e grab the kernel lock during 32-bit syscalls too 2004-02-13 17:07:56 +00:00