Commit Graph

214723 Commits

Author SHA1 Message Date
rkujawa e732b9231e Last commit to this file was accidental, Flipper is not really supported yet. 2012-11-26 00:38:15 +00:00
rkujawa f2107c7363 Add man page for newly added z3rambd(4) driver. 2012-11-26 00:36:01 +00:00
rkujawa b51b09fe9f Note z3rambd(4). 2012-11-26 00:23:53 +00:00
rkujawa a686c0b3de Regen configs. 2012-11-25 23:37:28 +00:00
rkujawa 0b22320279 Argh, commited wrong file. Add z3rambd. 2012-11-25 23:37:10 +00:00
rkujawa b082659a3a Add z3rambd, commented out. 2012-11-25 23:36:37 +00:00
rkujawa 2505fa9409 Add z3rambd driver, it allows using Zorro III RAM boards as block devices.
This makes sense in machines equipped with RAM on accelerator boards, where
difference between accelerator RAM and Zorro III RAM is significant. Hacks
were needed in amiga_init.c and zbus.c, but they are only enabled if this
driver is present in kernel. Otherwise user will get the usual behaviour.
2012-11-25 23:33:55 +00:00
alnsn 9fa58a12c5 EVPMIPS -> MIPS in include guard. 2012-11-25 23:04:51 +00:00
christos 9fec33d631 PR/47245: Toby Karyadi: Add AX88772B support to axe(4), e.g. for DLINK
DUB-E100 C1
2012-11-25 22:22:39 +00:00
alnsn 079dc4d907 Add sljitarch.h to all mips machines. 2012-11-25 21:55:50 +00:00
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