Commit Graph

214713 Commits

Author SHA1 Message Date
cherry
aaa3520e6b Do not escalate the local spl while taking the interrupt handler list
lock. Re-entrance is protected against within the events handler
framework by toggling interrupts/events, so we don't need (and cannot
use) the spl framework in that path. The other consumers (interrupt
registration/removal code) are not spl sensitive wrt this lock.
2012-11-25 20:56:33 +00:00
pgoyette
c9184f08f1 For consistency, define the _KERNEL version of __swp() using a non-volatile
type, similar to how it is defined in non-KERNEL

Fixes the 'build.sh release' for evbarm-{eb,el}
2012-11-25 20:40:30 +00:00
christos
442672de03 readability fix. 2012-11-25 19:52:05 +00:00
riastradh
e035d5e86a Rework firmware reference counting and error messages in wpi(4).
. Clarify the shared firmware abstraction in wpi_cached_firmware
  and its new sibling wpi_release_firmware.
. Fix typo in wpa_cache_firmware error branch leading to free NULL.
. Fix leak in wpi_load_firmware error branch.
. Sprinkle some kasserts to executably document invariants.
. A little KNF here and there.

Based on a patch from dh in PR kern/44144.
2012-11-25 19:50:34 +00:00
jakllsch
a3904b0b1f Catch up to the kernel with respect to Ext2 huge_file feature. 2012-11-25 19:42:14 +00:00
jakllsch
afc2ce4252 e2di_nblock is (assuming the huge_file feature is not active) stored in
DEV_BSIZE units, not fs block size units.
2012-11-25 19:36:23 +00:00
rkujawa
906d076164 Use constants, not magic values. 2012-11-25 19:15:43 +00:00
christos
3d7bb1da45 support printing rnd descriptor info 2012-11-25 15:30:28 +00:00
christos
48ee8a077a add the context struct 2012-11-25 15:29:55 +00:00
christos
2afe045a2a add an snprintb format. 2012-11-25 15:29:45 +00:00
christos
3f97768e4e move context struct to a header for the benefit of fstat. 2012-11-25 15:29:24 +00:00
mbalmer
9d9e15ed7b Don't check mp for NULL twice. From Michael W. Bomardieri <mb@il.net>
via tech-net@NetBSD.org.  Thanks!
2012-11-25 09:06:43 +00:00
cherry
5629a5ffd3 Make hypervisor_set_ipending() and its consumers cpu unaware. This syncs syntax with semantics 2012-11-25 08:39:35 +00:00
cherry
8b26a56d50 hypervisor_set_ipending() should not set the pending flag across cpus. The reason for this is that the pending flag update is not atomic, or protected by a lock. Since its current (mis)use in evtchn_do_event() across cpus is to notify the remote cpu of an interrupt, we use hypervisor_send_event() instead, to trigger an event on the remote cpu, which in turn invokes evtchn_do_event() on that cpu and DTRT on it.
On the local cpu, we protect hypervisor_set_ipending() from re-entry via cli(). Remove a redundant and unprotected call to hypervisor_set_ipending().

Thanks to jym@ for spotting this discrepancy while reviewing a related patch.

See: http://mail-index.netbsd.org/tech-kern/2012/11/12/msg014374.html
2012-11-25 07:48:46 +00:00
isaki
0a50621b8b Make the end of image address absolute-long.
It allows to locate the end of image higher than 0x10000.
2012-11-25 04:06:59 +00:00
christos
72708a99b3 provide _ENTRY(x) because some code needs it. 2012-11-25 01:10:37 +00:00
christos
0548a80ae0 return stuff for ksem 2012-11-25 01:05:49 +00:00
christos
610818b251 expose ksem_t for fstat(8), and implement stat for future reference. 2012-11-25 01:05:04 +00:00
christos
9648f140ad do something reasonable with kernel semaphores. 2012-11-25 01:03:05 +00:00
christos
c7c1f1a254 - add more debugging.
- in misctrans() we need the file index not the file type.
2012-11-25 00:36:23 +00:00
christos
f60f86a673 XXX: rename data() to getdata(). This is to avoid an assembler botch on the
ppc64 toolchain where function names are prefixed with a period, so "data"
becomes ".data" and ".data" is confused by the assembler with the segment
directive with the same name. Clearly this is a toolchain issue; we should
be able to call functions "text" and "data" but it is simpler to fix the
code rather than the toolchain.
2012-11-24 22:29:09 +00:00
christos
79abd5ecae PR/47237: Steffen Nurpmeso: Detect more than 2 pad characters and mark as bad. 2012-11-24 21:40:02 +00:00
riastradh
8b7a790367 Match LEN0068 in thinkpad(4) too, as newer Thinkpads report.
Tested on a W530.  Lots of stuff is missing, though.
2012-11-24 20:56:39 +00:00
nakayama
5f60ff96cb - fix endian cofusion around FID, which is used as is, so no need
to do byte swapping.
- put right value to ByteCount of SMB_COM_NT_CREATE_ANDX request.

The fix makes smbfs actually works on big-endian port.
2012-11-24 19:48:24 +00:00
pgoyette
e1d0e8f360 File is common between pp6 and ppc64 ports, so define ARCH_ELFSIZE
accordingly.

From christos@, resolves the latest build break
2012-11-24 18:16:15 +00:00
christos
7655db5ec2 fix lint. 2012-11-24 15:20:58 +00:00
christos
33b3ee33ee mention that kevent returns now EOPNOTSUPP. 2012-11-24 15:16:52 +00:00
christos
4669372c9c - initialize kn_id
- in close, invalidate f_data and f_type early to prevent accidental re-use
- add a DIAGNOSTIC for when we use unsupported fd's and a KASSERT for f_event
  being NULL.
2012-11-24 15:14:32 +00:00
christos
7e72d438b2 Return EOPNOTSUPP for fnullop_kqfilter to prevent registration of unsupported
fds. XXX: We should really fix the fd's to be supported in the future.
Unsupported fd's have a NULL f_event, so registering crashes the kernel with
a NULL function dereference of f_event.
2012-11-24 15:07:44 +00:00
christos
0156034a08 Add a test for adding an event to an unsupported fd. 2012-11-24 15:05:45 +00:00
alnsn
fab5cb6386 Document MKSLJIT variable. 2012-11-24 14:01:28 +00:00
alnsn
012f33e5f2 Add sljit and bpfjit to evbmips. Not enabled by default. 2012-11-24 14:00:35 +00:00
apb
6f1f99ca7a Teach gcc4.1's cpp about the magic __COUNTER__ macro,
which returns a unique integer each time it is expanded.
This code was written without reference to any other
implementation of the same feature.
2012-11-24 09:07:44 +00:00
christos
bbd1e49222 Use __arraycount(), and cast to u_int. 2012-11-24 07:16:04 +00:00
christos
5c26317391 bufmem is unsigned. 2012-11-23 15:35:57 +00:00
joerg
463d2a0e8f Add RCS keyword. Avoid overflow in constant. 2012-11-23 14:48:31 +00:00
joerg
d3095eb543 Explicitly cast enum type. 2012-11-23 14:27:14 +00:00
njoly
a23dfbdc09 Adjust for usr/tests/lib/libc/c063 debug entries. 2012-11-23 08:36:47 +00:00
martin
5873910091 Split the test cases where root/non-root makes a difference in two and mark
them apropriately. Exact permission semantics are still under discussion,
this will have to be cleaned up once that discussion is settled.
For now, one test cases fails.
2012-11-23 08:24:20 +00:00
wiz
7ac72149a6 Grammar fix. 2012-11-23 07:29:52 +00:00
pgoyette
a5f70a7bc1 Fix format string to resolve build break 2012-11-23 06:44:38 +00:00
christos
0f21b86617 use more sysctl 2012-11-23 03:47:36 +00:00
christos
06cfe04c08 fix wrong sysctl 2012-11-23 03:46:35 +00:00
christos
9a3978f67e use more sysctl 2012-11-23 03:37:27 +00:00
christos
abc21e6c39 use sysctl 2012-11-23 03:33:05 +00:00
joerg
ab86636a8f Adding missing new lines in output. 2012-11-23 02:57:57 +00:00
matt
df86f8dd33 Enable ETTF. 2012-11-23 02:17:15 +00:00
christos
2696762d5f mbufs display was broken since the time we moved to percpu stats. 2012-11-23 01:43:10 +00:00
christos
f17f1ddf91 PR/47222: Manuel Bouyer: Fix syscall display to show something reasonable. 2012-11-23 00:05:18 +00:00
pooka
a733ce9a7a Support clang as EXTERNAL_TOOLCHAIN 2012-11-22 21:41:22 +00:00