Commit Graph

221407 Commits

Author SHA1 Message Date
skrll
aa4ef11d7e Track waiters/clients via lwp pointer and not pid. 2013-09-19 15:13:43 +00:00
skrll
57f93fe2e4 Use the common list.h 2013-09-19 14:43:39 +00:00
skrll
ab66887646 Call {lmutex,_sema)_destroy appropriately 2013-09-19 13:51:44 +00:00
rmind
f5730e945b npfctl: remove some n-code leftovers, fix the build, update the man pages. 2013-09-19 12:05:11 +00:00
tsutsui
47d496f11b Move physmem calculations before nptpage initialization.
Fixes mvme68k specific part of PR port-m68k/45915
(panic: pmap_enter_ptpage: can't get KPT page).
Reported and confirmed by Andrew Gillham on his MVME177:
http://mail-index.NetBSD.org/port-mvme68k/2013/09/17/msg000082.html

Should be pulled up to all netbsd-6 branches.
2013-09-19 12:04:36 +00:00
rmind
7b5edfdc0d NPF: G/C n-code in favour of BPF byte-code. Delete lots of code, mmm! 2013-09-19 01:49:07 +00:00
rmind
4e592132ab - Convert NPF to use BPF byte-code by default. Compile BPF byte-code in
npfctl(8) and generate separate marks to describe the filter criteria.
- Rewrite 'npfctl show' functionality and fix some of the bugs.
- npftest: add a test for BPF COP.
- Bump NPF_VERSION.
2013-09-19 01:04:45 +00:00
uwe
66143a4f4f Untabify the header definition to avoid misaligned comment on
str_delim in PostScript output.
2013-09-19 00:58:11 +00:00
uwe
9a878f03ee Use .Fa instead of .Ar to refer to header fields. 2013-09-19 00:53:55 +00:00
rmind
60d47add10 npfctl_rule: fixes for the dynamic rules. 2013-09-19 00:50:56 +00:00
rmind
514e2368ee bpf_validate_ext: allow COP to modify the memstore. 2013-09-19 00:48:48 +00:00
uwe
ffa10b6acf Now that we use "nbtool_config.h" we can use __dead again and drop
local attempts to define its equivalent.

Also drop the comment that warns this file is a tool; use of
"nbtool_config.h" makes it evident.
2013-09-19 00:34:00 +00:00
uwe
abab96f683 Don't define TRUE/FALSE, which may conflict with host headers.
TRUE is unused anyway.  Replace all instances of FALSE with 0.
2013-09-19 00:18:52 +00:00
rmind
cb633e2d0c Add bpf_filter_ext() to use with BPF COP, restore bpf_filter() as it was
originally to preserve compatibility.  Similarly, add bpf_validate_ext()
which takes bpf_ctx_t.
2013-09-18 23:34:55 +00:00
pgoyette
0d34da2a3d knf (blank line even if there are no local declarations) 2013-09-18 23:27:38 +00:00
uwe
d8e459b066 #include "nbtool_config.h" to pull in getprogname() declaration. 2013-09-18 23:18:14 +00:00
uwe
f09e72233a Fix previous: use PICFLAGS for crtbeginS.o
Should unbreak sh3 builds.

XXX: PICFLAGS is defined in bsd.lib.mk which lib/csu does not use.
For now supply a local definition.  joerg@, please fix appropriately.
2013-09-18 22:53:39 +00:00
christos
0105cbeff0 Use reference counting to keep track of construction and destruction of the
structures used by both the nfs server and client code. Tested by pgoyette@

1. mount remote fs via nfs (my /home directory), which autoloads nfs module
2. manually modload nfsserver
3. wait a bit
4. manually modunload nfsserver
5. wait a couple minutes
6. verify that client access still works (/bin/ls ~paul home dir)
7. manually modload nfsserver again
8. start an nfsd process
9. wait a bit
10. kill nfsd process
11. wait
12. manually modunload nfsserver again
13. verify continued client access

XXX: Note that nfs_vfs_init() calls nfs_init(), but nfs_vfs_done() does not
     call nfs_fini(). Also note that the destruction order is wrong in it,
     but probably does not matter. "someone" (!= me) should fix it :-) and
     run the above tests.
2013-09-18 16:33:14 +00:00
christos
8ff352ec00 s/if (cond) return true; else return false;/return cond;/ 2013-09-18 14:37:24 +00:00
macallan
e90dd473e5 a preliminary driver for nvidia geforce graphics chips
so far it only supports the GeForce 2MX, tested on macppc only
no acceleration yet, just some DAC setup
the main advantage over genfb is that this driver knows how to setup the
palette registers for the 2nd output
2013-09-18 14:30:45 +00:00
martin
6f0493943e Bump MAXTSIZ to 32 MB (it is an arbitrary limit anyway) 2013-09-18 13:31:39 +00:00
martin
52514ad340 When compiling kernel modules on sparc64 force the same memory model as
we force for the kernel (i.e. do not rely on compiler defaults here)
2013-09-18 09:25:20 +00:00
pooka
f12cd61cff Make it possible to run component constructors after mainbus attaches,
but before config_finalize() is run.
2013-09-17 23:55:16 +00:00
pooka
55184a0493 fix proto 2013-09-17 20:57:45 +00:00
wiz
bcd8a2345c If file argument is '-', read from stdin.
From Jérémie Courrèges-Anglas <jca@wxcvbn.org>.
2013-09-17 20:00:50 +00:00
wiz
4119c8fbd9 Sort sections: consistently put CODE REFERENCES directly before SEE ALSO. 2013-09-17 19:58:03 +00:00
skrll
8aed121f06 Add MODULAR 2013-09-17 07:13:13 +00:00
jakllsch
9463b0231c Use '\n' at the end of all aprint_error_dev() format strings. 2013-09-17 01:16:45 +00:00
pooka
21d147878b allow pcibus to attach to a rump kernel mainbus 2013-09-17 00:50:19 +00:00
martin
8d16ae7d3d Change __isinf and __isnan from macros to inline functions. The macros do
collide with newer gcc libstdc++.
2013-09-16 15:56:24 +00:00
martin
cc4812f36b Allow archs to provide __isinf() and __isnan() as inline functions instead
of macros.
2013-09-16 15:54:42 +00:00
martin
7e7cfe75c0 Retry previous 2013-09-16 15:33:24 +00:00
ast
d134b5afd8 After discussions with cristos regarding the previous commit, he
convinced me it was sufficient to define GZIP_CMD only in
distrib/utils/embedded/mkimage and not again in the config files
beagleboard.conf, rpi.conf, and rpi_inst.conf similar to how the
other variables $src, $release, $mnt, ... are only defined there.
2013-09-16 15:23:57 +00:00
martin
0422e3f47d Make it compile on archs where NAN is not defined - previously it only
compiled by chance (and details of the __isnan macro) on vax.
2013-09-16 15:22:51 +00:00
hannken
18e8787ae5 Function ffs_reload() works on a read-only mount, so remove the call
to ffs_snapshot_mount() as it would panic later with "already on list"
when remounting read-write.

Should fix PR kern/48211 (Unclean shutdown with active snapshot causes
panic during reboot)
2013-09-16 12:36:54 +00:00
martin
db355f514c Fix inverted ktrop() return value - oops!
Noted by Nicolas Joly.
2013-09-16 09:25:56 +00:00
martin
54a1f468e1 Fix botch in previous 2013-09-15 19:27:22 +00:00
phx
159a4dcdce New version can read the MAC address for QNAP systems from flash. 2013-09-15 18:22:57 +00:00
martin
bff32430d6 Remove unused variable 2013-09-15 16:12:00 +00:00
martin
30e0cf1ad8 Mark a potentially unused variable 2013-09-15 16:10:45 +00:00
martin
4dc1fa2759 Mark potentially unused variables 2013-09-15 16:08:28 +00:00
martin
7dbdb14bec Remove unused variable 2013-09-15 15:57:26 +00:00
martin
e3d7ae4a6e Mark potentially unused variables 2013-09-15 15:56:07 +00:00
martin
42bc764bd2 Mark potentialy unused variables 2013-09-15 15:54:23 +00:00
martin
fe4c70af15 Mark a variable as potentially unused 2013-09-15 15:52:35 +00:00
martin
6f4b436c36 Remove unused variable 2013-09-15 15:51:23 +00:00
martin
744d947a38 Remove unused variables 2013-09-15 15:49:38 +00:00
martin
4bb23a02ca Remove unused variable 2013-09-15 15:47:27 +00:00
martin
659c5d63ed Avoid unused variable warnings 2013-09-15 15:46:33 +00:00
martin
552e97dc1b ifdef variable like their use 2013-09-15 15:44:53 +00:00