christos
4cc3f6a334
add clear=1
2008-12-13 23:30:03 +00:00
ad
70a01ab869
softint_disestablish: the soft interrupt could still be running on a CPU
...
somewhere in the system. If it is, wait for it to complete before tearing
it down. The caller commits to not trigger the interrupt again once
disestablish is set in motion.
2008-12-13 21:13:30 +00:00
mrg
5adba7ec2c
- read AgentID out of the schizo CSR and use that, rather than the
...
passed in portid, to calculate the IGN.
- don't logical-or in the IGN always, possible twice
2008-12-13 21:00:09 +00:00
ad
7a3593355a
Fix a comment.
2008-12-13 20:49:49 +00:00
mrg
983a8c07d8
look for "portid" as well as "upa-portid".
2008-12-13 20:48:10 +00:00
ad
24da1f6ca4
PR kern/36183 problem with ptrace and multithreaded processes
...
Fix the famous "gdb + threads = panic" problem.
Also, fix another revivesa merge botch.
2008-12-13 20:43:38 +00:00
sketch
8be734c633
Fix PGTBL sizes.
2008-12-13 20:12:13 +00:00
alc
796eb5e086
Atheros open-source HAL
2008-12-13 19:50:49 +00:00
christos
64193bedec
more debugging in the dump path.
2008-12-13 19:38:20 +00:00
ad
2e606b7b1b
sigchecktrace: process SIGKILL before everything else.
2008-12-13 18:55:01 +00:00
dholland
ee1b2317fb
fix typo in comment
2008-12-13 18:11:53 +00:00
tsutsui
3eda3c7d85
Revert part of previous that reverted part of rev 1.14
...
which didn't affect the bug. (use __func__ to print function names)
2008-12-13 17:32:53 +00:00
pooka
5ca3e3371e
* fix pmap_extract() prototype
...
* sparc64 also defines __sparc__. deal with it
2008-12-13 17:11:34 +00:00
pooka
1bc395ab02
Get rid of local machine/{mutex,rwlock}.h files by treating the
...
object storage as a single pointer (all archs have at least one
uintptr_t in the objects).
(forgot to commmit with others)
2008-12-13 15:37:13 +00:00
pooka
22c85f18af
Get rid of local machine/{mutex,rwlock}.h files by treating the
...
object storage as a single pointer (all archs have at least one
uintptr_t in the objects).
2008-12-13 15:34:48 +00:00
dsl
8a143811b9
Use NULL instead of -1 cast to the relavant type (usually via NIL).
...
This was a suggestion from christos - so blame him if there is a deep
reason for using -1 :-)
2008-12-13 15:19:29 +00:00
dsl
40e0ab7a8f
Do not let the variable name "" be set from the command line (-D "")
...
or from ::= modifiers (${::=foo}).
2008-12-13 14:26:10 +00:00
pooka
29f99fff05
_VMPARAM_H_ -> _$MACHINE_VMPARAM_H_
2008-12-13 14:07:10 +00:00
pooka
5e4ac10274
wrap in #ifdef __x86_64__
2008-12-13 13:36:04 +00:00
chris
aa5f67e8e7
Add -lutil to allow linking to find the e-functions.
2008-12-13 12:21:50 +00:00
dsl
e8915d2e05
Actually we need 'long int' to avoif a stupid 'truncating long to int'
...
warning.
2008-12-13 11:53:25 +00:00
dsl
abd4a7f6d0
Change type of 'n' to 'int' so that it can be printed with %d.
...
The domain of the value is [-1..sizeof (int)] so a type of 'int' is fine.
2008-12-13 11:48:46 +00:00
ad
b5413f0358
It's easier for kernel reserve pages to be consumed because the pagedaemon
...
serves as less of a barrier these days. Restrict provision of kernel reserve
pages to kmem and one of these cases:
- doing a NOWAIT allocation
- caller is a realtime thread
- caller is a kernel thread
- explicitly requested, for example by the pmap
2008-12-13 11:34:43 +00:00
ad
9d315c5bc9
PR 40027/pagedaemon loops on memory shortage
...
uvmpd_scan_queue:
- Fix a bug that prevented the pagedaemon from making forward progress
if (a) swap was full (b) the first 16 pages on the inactive list were
unbusy anons not already backed by swap.
- Remove redundant uvm_swapisfull() check and just try to allocate a slot.
If it fails we know swap is full.
2008-12-13 11:26:57 +00:00
ad
f9a4aaf41f
PR kern/40027 pagedaemon loops on memory shortage
...
uvm_swapisfull: don't count some small portion as it may be inaccessible to
us at any given moment, for example if there is lock contention or if pages
are busy.
2008-12-13 11:22:09 +00:00
tsutsui
593ae76032
Suppress false -Wuninitialized warning on gcc -O1.
2008-12-13 09:17:48 +00:00
tsutsui
791606eb62
Sync usage with man page.
2008-12-13 09:05:56 +00:00
mrg
a375e7c55a
fix much of the interrupt mapping/establishment code. still does
...
not yet work, but we are now seeing spurious interrupts (that should
be mapped to some handler..)
2008-12-13 08:07:23 +00:00
mrg
f4cdd8a3bc
remove unused variable.
2008-12-13 05:54:57 +00:00
alc
0a5dd2a285
Restore a valid call to ath_hal_wait() and wrap the if() statement with curly bracket.
...
Fix build wrt the original HAL, prevent the next call to OS_REG_WRITE() to be skipped
if HALDEBUG() is not defined.
pointed out by <sam>
2008-12-13 05:16:28 +00:00
mrg
6a475604d6
- enable schizo_dmamap_create() after fixing it
...
- clean up some debug code
- remove unused schizo_intr_map()
- setup our iommu state properly
- for now, implement a 'struct schizo_iommureg' and use it in schizo.
XXX this should be merged with iommu*
interrupts are still not working but we get to scsi probe now.
2008-12-13 04:56:32 +00:00
mrg
5fe53803ec
DPRINTF() the new protection in sparc_bus_map()
2008-12-13 04:53:09 +00:00
dholland
2adcd1a3c2
Don't deadlock on rename("foo/foo", "foo") in the case where foo/foo is a
...
directory. This doesn't affect non-wapbl renames; it affects wapbl because
one of the lock acquisitions was moved up past where this case otherwise
fails.
PR 40163 from Lloyd Parkes.
2008-12-13 04:45:28 +00:00
mrg
223aed87aa
if the "interrupt-map-mask" property is larger than the static 100 int
...
array, dynamically allocate the desired size and try again.
fixes crashes in OF_mapintr() when there are 102 entries.
2008-12-13 04:44:38 +00:00
isaki
b3a08741f8
Fix a broken 'Front power switch' signal.
...
Use softint(9), instead of using psignal(9) in
hardware interrupt. Thanks to soda-san.
2008-12-13 02:49:10 +00:00
njoly
b4f0a0e86c
+tabs.debug
2008-12-12 23:49:28 +00:00
njoly
6b9fe0233d
Regen for clock_nanosleep.
2008-12-12 23:38:13 +00:00
njoly
99688b74d2
Add clock_nanosleep syscall.
2008-12-12 23:36:18 +00:00
christos
47b2a9219c
document svc_getrpccaller
2008-12-12 23:22:26 +00:00
christos
809d48d0cb
back emalloc out, I don't want it.
2008-12-12 23:10:08 +00:00
christos
56a682bfb8
- handle memory allocations gracefully using e-functions instread of
...
core-dumping.
- if the display is too small bail out.
2008-12-12 23:09:08 +00:00
lukem
65288d6d2c
nvi expandtab
2008-12-12 23:07:47 +00:00
lukem
e7617fb9ab
Bump the version to ""nvi-1.81.6nb1" for NetBSD changes:
...
expandtab
gtagsmode
matchchars
WARNS=4
Per discussion with Christos.
2008-12-12 23:05:36 +00:00
lukem
534002bc26
Implement "expandtab" option:
...
expandtab, et [off]
Prevent the use of <tab> characters in leading whitespace when
shifting text, autoindenting, indenting with <control-T>, or
outdenting with <control-D>.
2008-12-12 22:55:55 +00:00
christos
c8164f5d15
RTAX_GENMASK and RTAX_AUTHOR could cause kernel memory corruption because
...
info struct members could be pointing to free'd memory. Fix from dyoung.
XXX: Pullup to 5.0
2008-12-12 22:34:58 +00:00
christos
bc71c61926
Bring in our changes:
...
- netbsd specific support
- header files
- our ioctls to get/set bssid and ssid
- use __FUNCTION__ instead of __func__
- correct handling of interfaces appearing and dissappearing, fixing
unreached code!
- debugging messages for event changes
- keep a local copy of the interface status so that we can tell if we
have notified wpa_supplicant yet about the interface change or not.
XXX: There was a byte swapping line that I commented out and I am not
sure if it is correct.
2008-12-12 21:44:54 +00:00
christos
04fb6a55d2
don't need this anymore.
2008-12-12 21:41:04 +00:00
alc
c3d9f7dbb1
Don't display the global kernel symbol `version' but the *eeprom* version, as done in the original code.
2008-12-12 21:31:49 +00:00
cegger
9d34af294b
make i386 ALL kernel compile
2008-12-12 21:01:59 +00:00
hubertf
071bad8613
Move the build of libXi back to a point where libXext is definitely
...
built (i.e. behind the next .WAIT).
Suggested by veego@, tested successfully on the netbsd-5 branch on Solaris 10/x86
2008-12-12 19:59:52 +00:00