christos
409d07743a
- Enable Wedge support for MBR/BSDLABEL where it was commented out.
...
- Add apple partition support where it was missing
- Add comments where missing
2014-08-18 06:31:24 +00:00
riastradh
7bc9f99ca1
Don't leak in gre_clone_create error branch.
...
Noted by maxv@, compile-tested for amd64.
2014-08-18 04:28:55 +00:00
riastradh
75ecd5a308
Sizeof struct ievme, not sizeof size_t.
...
Noted by maxv@, compile-tested for sparc.
2014-08-18 04:26:38 +00:00
riastradh
4ce21324f0
Avoid leak in error branch, noted by maxv@, compile-tested for vax.
2014-08-18 04:16:59 +00:00
riastradh
fef866671e
Don't leak f on failure. Noted by maxv@.
...
Compile-tested only, with zaurus.
2014-08-18 03:59:27 +00:00
riastradh
54cec2dc8c
Fix leaks in oosiop_alloc_cb error branches, noted by maxv@.
...
While here, avoid a sketchy pointer cast that probably falls afoul of
strict aliasing rules.
Compile-tested only, with hppa.
2014-08-18 03:43:10 +00:00
riastradh
a3ea546522
Fix error branches to avoid leaks, noted by maxv@.
2014-08-18 03:14:12 +00:00
riastradh
5407cca9a3
Simplify previous.
2014-08-18 02:43:27 +00:00
riastradh
6f817c5016
For gem and ttm objects backed by uvm_aobjs, share the vmobjlock.
...
XXX pullup to 7
2014-08-18 01:21:03 +00:00
riastradh
b1a057f4fd
bus_space_mmap cookies are not paddrs, so don't pmap_enter them!
2014-08-18 01:17:34 +00:00
chs
99a9d84aad
eliminate COMPAT_OLDNOTE and just always recognize the old notes.
2014-08-17 23:03:58 +00:00
joerg
a26164117a
Reorganize symbol table embedding. The existing option SYMTAB_SPACE is
...
replaced by the make option COPY_SYMTAB set to any value. The copy of
the symbol table is no longer put into a buffer in kern_ksyms.o, but a
small helper object. This object is build first with a dummy size, then
the kernel is linked to compute the real dimension of the symbol table
buffer. After that, the helper object is rebuild and the kernel linked
again.
2014-08-17 21:17:43 +00:00
martin
1e232ed083
Revert previous (SCN*FAST*) and make PRI*FAST* identical.
...
Should fix the default (gcc 4.5 based) build.
2014-08-17 20:22:41 +00:00
justin
2ef27288ed
Fix memory leak on error case, as reported in
...
http://m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html#Report-2
2014-08-17 19:28:46 +00:00
wiz
3de47c839c
Add missing parameter in printf. From Henning Petersen in PR 49122.
2014-08-17 10:01:49 +00:00
tsutsui
05114bab99
Use C99 struct initializer. Also tweak some inconsistent TAB/space.
...
No binary change on i386.
2014-08-17 08:54:44 +00:00
sborrill
7d706cf73d
Switch size_t to uint64_t in appropriate places to ensure that ccd(4) works
...
with component and total sizes of > 2TB.
Add COMPAT_60 code for platforms where this alters userland-accessible
structures.
Make kernel print device information when a ccd configured.
Fix some typos in comments.
2014-08-16 19:27:27 +00:00
apb
a544a9c45e
Add commented out "#options COMPAT_70" to all kernel configuration
...
files that already had commented out "#options COMPAT_60".
2014-08-16 17:57:37 +00:00
apb
2275423cea
Add "no options COMPAT_70" to all kernel configuration files that
...
already had "no options COMPAT_60".
2014-08-16 17:57:02 +00:00
apb
30a0368950
Add "options COMPAT_70" to all kernel configuration files that
...
already had "options COMPAT_60".
2014-08-16 17:56:30 +00:00
maxv
b6cc446ce5
http://m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html#Report-2
...
#03-0x02: Memory leak
ok ozaki-r@
2014-08-16 17:27:09 +00:00
apb
f498235332
Add COMPAT_70 to conf/files; add compat_70 to kern/syscalls.conf
...
and compat/netbsd32/syscalls.conf.
2014-08-16 17:24:28 +00:00
manu
7642144c05
Add a oflags input field to open requests so that the filesystem can pass
...
back information about the file. Implement PUFFS_OPEN_IO_DIRECT, which
will force direct IO (bypassing page cache) for the file.
2014-08-16 16:19:41 +00:00
nakayama
f22f501132
Add support for Spatializer, 3D audio effects embedded in ES1869
...
and ES1879 to ess(4).
Tested on my old laptop, mobio NX.
2014-08-16 13:01:33 +00:00
hannken
b041904f72
Needs HASH_SLIST, not HASH_LIST.
2014-08-16 07:22:30 +00:00
ozaki-r
bd5b4bd1c6
Bump SHMIF_VERSION
2014-08-16 06:18:01 +00:00
nakayama
b80276722b
Remove redundant colon.
2014-08-15 19:55:23 +00:00
riastradh
5179cdd384
<sys/param.h> comes first, per /usr/share/misc/style.
2014-08-15 19:47:59 +00:00
justin
70b43d6df9
Fix header ordering
2014-08-15 18:23:42 +00:00
justin
2ebae814d9
add sys/atomic.h and order headers correctly
2014-08-15 17:45:00 +00:00
ozaki-r
a2a285fa68
bridge: reject non-IFF_SIMPLEX interfaces
...
bridge does not work with !IFF_SIMPLEX interfaces (PR/18035);
the bug is not yet fixed. Until it gets fixed, we should
reject non-IFF_SIMPLEX interfaces.
Discussed with pooka@
2014-08-15 15:32:24 +00:00
riastradh
2297b8f4c9
Call rnd_add_data asynchronously for the rump hyperentropy callback.
...
Avoids recursion rnd_getmore -> rnd_add_data -> rnd_getmore, which is
silly but I don't have time to fix it properly right now.
2014-08-15 15:04:33 +00:00
ozaki-r
5c34a7158d
Make shmif SIMPLEX
...
Add a sender field to a packet header on a shmif bus to identify
and ignore packets sent by itself.
This makes shmif work with bridges.
ok pooka@
2014-08-15 15:03:03 +00:00
hannken
912cfee7bf
Change ptyfs to vcache.
...
- Use (type, minor) as key.
- Change ptyfs_allocvp to return a referenced vnode and lock where needed.
- Remove unneeded vnode backpointer ptyfs_vnode.
- Keep a single hashlist for pty nodes to make their attributes persistent.
OK: Christos Zoulas
2014-08-15 13:40:39 +00:00
matt
d213a2bbbc
#include <sys/cdefs.h>
2014-08-15 11:58:13 +00:00
apb
5f48354283
If mutex_tryenter() fails, don't call mutex_exit().
2014-08-15 11:05:35 +00:00
martin
b9e7c24bbc
Fix the SCN*FAST* defines
2014-08-15 08:59:58 +00:00
martin
adeb9b3e44
Fix editor mishap
2014-08-15 07:53:37 +00:00
martin
3cc0e3b686
All FAST datatypes are int (32 bit) on both sparc and sparc64, only FAST64
...
variants are long (sparc64) or long long (sparc).
2014-08-15 07:45:31 +00:00
mrg
e1e8d3be37
avoid calling into time code when cold, and avoid calling nanotime()
...
if we're not going to use the result anyway.
XXX: not necessarily the best fix, but better than crashing *early*
boot due to too-early nanotime() calls.
XXX: pullup.
2014-08-15 07:39:25 +00:00
joerg
01186a294e
Do the wildcard symbol dance for the debug case as well.
2014-08-14 20:59:54 +00:00
joerg
6faaf3e4db
Use wildcards for stripping/preserving the mapping symbols on ARM and
...
AArch64. LLVM creates unique symbols in each file of the form $a.n etc.
2014-08-14 18:39:38 +00:00
joerg
fb363505f8
LLVM sshramdisk needs 8.9MB, so bump again.
2014-08-14 18:38:29 +00:00
maxv
709fefda49
http://m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html#Report-2
...
#06-0x01: Empty compiler block
ok christos@
2014-08-14 17:29:30 +00:00
joerg
31fca0faec
Remove tautologies.
2014-08-14 16:55:02 +00:00
riastradh
76be0e7906
Zero ttm_agp objects on creation.
2014-08-14 16:50:22 +00:00
riastradh
1a58402320
Use ttm_dma_tt_init in ttm_agp_tt_create so we can use ttm_bus_dma.
2014-08-14 16:47:52 +00:00
martin
e451d25590
Bump ramdisk size (since we added loads of firmware to it)
2014-08-14 16:32:11 +00:00
riastradh
2e29e09879
Restore placement of percpu_init in rump_init.
...
Probably doesn't matter, but let's avoid needless churn around the
real bug fix.
2014-08-14 16:28:49 +00:00
riastradh
b018e9788e
Lock cprng->cs_lock around rndsink_request to avoid race with callback.
2014-08-14 16:28:30 +00:00