213260 Commits

Author SHA1 Message Date
manu
d256e38414 Fix regression that has been introduced when the lookup/reclaim race
condition was addressed in libpuffs by counting lookups.

The fix assumes that cookies map to struct puffs_cookie, which has not
been documented as a requirement for filesystems using libpuffs. As an
example, we got burnt by this assumption in libp2k (kern/46734), and
we fixed bit by actually mapping libp2k cookies to struct puffs_node.

It is unlikely, but there may be third party filesystems that use cookies
unmapped to struct puffs_node, and they were left broken for now.

- we introduce a puffs_init() flag PUFFS_FLAG_PNCOOKIE that let filesystems
inform libpuffs that they map cookies to struct puffs_node. Is that flag
is used, the lookup/reclaim race condition fix is enabled. We enable the
flag for libp2k.

- filesystems that use puffs_pn_new() obviouslty use struct puffs_node
and gain PUFFS_FLAG_PNCOOKIE automatically even if they did not specify
it in puffs_init(). This include all our PUFFS filesystem in-tree except
libp2k.

- for filesystems not willing to use struct puffs_node, we introduce a
reclaim2 vnop, which is reclaim with an additionnal lookup count argument.
This vnop let the filesystem implement the lookup/reclaim race fix on
its own.
2012-08-16 09:25:43 +00:00
martin
324d0ec850 Do not disturb the atf output with debugging echos 2012-08-16 08:39:43 +00:00
matt
1db7cc0142 Add L2_S_SEGSIZE which is the number of bytes that a L2 page table will map. 2012-08-16 07:26:23 +00:00
matt
ce2664ec55 Tweak max addresses a bit so that [r1, #off] can't overflow them. 2012-08-16 07:25:37 +00:00
matt
58fdbdbd66 Already uses _C someplace, use _CSUM instead 2012-08-16 07:24:25 +00:00
matt
30a859f903 Add ARM cpus to those MACHINE_ARCH which USE_COMPILERCRTSTUFF=no 2012-08-16 05:30:55 +00:00
matt
98f742e168 Add debug version of librumpnet_npf.so.0 2012-08-16 04:52:55 +00:00
matt
2f1e74f8c5 Add a pthread__smt_wake and add support for it on arm along with
pthread__smt_pause.  These are implemented using the ARM instructions
SEV (wake) and WFE (pause).  These are treated as NOPs on ARM CPUs that
don't support them.
2012-08-16 04:49:47 +00:00
zafer
d4798304b1 Pretty print multipath routes. From FreeBSD.
ok christos@
2012-08-16 00:40:28 +00:00
pgoyette
36a61444ae Part 2 of librumpnet_npf 2012-08-15 22:14:47 +00:00
alnsn
196af63e15 Test contiguous buffer as well. 2012-08-15 21:36:00 +00:00
alnsn
1969739699 MINDEX() macro has 'return 0;' statement. It doesn't set *err to
1 before return when invoked from m_xword() and m_xhalf() functions.
The caller doesn't set it to 1 either. So, set *err to 1 before
invoking MINDEX().
2012-08-15 21:31:39 +00:00
pgoyette
8f60a9447f Add librumpnet_npf 2012-08-15 21:03:09 +00:00
alnsn
55f9a36d99 Fix two bugs introduced by recent commit.
- When handling contiguous buffer in _bpf_tap(), pass its real size
   rather than 0 to avoid reading packet data as mbuf struct on
   out-of-bounds loads.
 - Correctly pass pktlen and buflen arguments from bpf_deliver() to
   bpf_filter() to avoid reading mbuf struct as packet data.
   JIT case is still broken.

Also, test pointers againts NULL.
2012-08-15 20:59:51 +00:00
matt
c38df71e0c Export <arm/vfpreg.h> 2012-08-15 20:38:49 +00:00
rmind
e0cfa502eb Add npf_state_setsampler() for _NPF_TESTING case. This also fixes the build. 2012-08-15 19:47:38 +00:00
tsutsui
ece81734fb Make sure to take proc_lock mutex on calling psignal(9) in EV_WAKEUP() macro
as sys/dev/sun/event_var.h does.
Fixes immediate KASSERT(mutex_owned(proc_lock)) panic during running Xserver
on DIAGNOSTIC kernel.

Should be pulled up to netbsd-6.
2012-08-15 19:13:58 +00:00
rmind
49540518f9 - {npf_mk_rproc,npf_nat_save}: fix the fetching of {rproc-ptr,id_ptr}.
- npf_rproc_setlog: initialise variables to 0, as keys may not exist.

Bugs found by mlelstv@ while testing on Amiga.
2012-08-15 18:44:56 +00:00
rmind
bd7e78888a Enable the build of librumpnet_npf. 2012-08-15 17:56:58 +00:00
macallan
2d5d33f2d3 don't forget to clear the screen and wipe the glyph cache when re-entering
terminal emulation mode
2012-08-15 17:43:59 +00:00
matt
656513acb3 Add SWP enable bit to system control register (Cortex-A9). 2012-08-15 17:20:27 +00:00
macallan
0950a8b00e some cleanup:
- get rid of some redundant variables ( sc_*phys and sc_*base were essentially
  the same )
- we don't access video memory directly anymore, so:
  * no more need for byte order tests
  * don't map video memory if we have a MMIO register aperture
  * get rid of various bits of support code dealing with video memory
    access
- use MMIO register aperture if available, turn off register blocks in the main
  aperture if not in use, to avoid overlap with video memory on 8MB cards
- don't scissor off access to off-screen memory. How the hell did this work on
  Rage II? Apparently Rage XL treats the scissor registers slightly different.
Now this works properly on 8MB and Rage XL boards like Sun's PGX64.
2012-08-15 17:02:41 +00:00
riz
80b5c6d82f Add sbin/gpt to i386 install ramdisk. 2012-08-15 16:49:09 +00:00
riz
442814cf0d Add sbin/gpt to amd64 install ramdisk. 2012-08-15 16:48:41 +00:00
apb
03766ceab0 Remove the ability to specify multiple colon-separated file names with
a single "-s" option.  Multiple "-s" options must now be used instead.
We have been printing a warning about this since 2008-09-14.
2012-08-15 16:26:41 +00:00
apb
1de7d5f1b7 Remove the ability to specify multiple colon-separated fiel names with
a single "-s" option.  Multiple "-s" options must now be used instead.
We have been printing a warning about this since 2008-09-14.
2012-08-15 16:21:41 +00:00
macallan
eda34a2767 add a few register definitions 2012-08-15 15:39:23 +00:00
manu
5fe2cf73eb Fix make test on powermac G5. Patch from Nakano Takaharu 2012-08-15 14:51:30 +00:00
drochner
b0ce37c2b0 return errno if pthread_create hits the system limit, not just -1
(this is not entirely correct because it can return ENOMEM which is
not mentioned in the spec, but there are other places in pthread_create
whete ENOMEM is returned -- it at all, this should be fixed everywhere)
2012-08-15 13:28:32 +00:00
apb
611a930af0 Add HOST_SH to _POSTINSTALL_ENV; needed for
usr.sbin/postinstall/postinstall revision 1.145.
2012-08-15 12:50:12 +00:00
apb
74a992e866 Don't rely on stat(1) with format "%SHr" to print the correct names.
That uses devname(3) internally, which doesn't work at all in a cross
build environment, and doesn't do what I thought even in a native
environment.

Instead, parse the device major numbers for the pty master and slave
devices from the output of "MAKEDEV -s pty0" and check those against the
actual device node that we are thinking of removing.
2012-08-15 12:48:19 +00:00
sborrill
1c873a3e8f Bump VM_PHYSSEG_MAX to 16 from 10. Modern IBM hardware requires
VM_PHYSSEG_MAX to be turned up to 11 to avoid an early panic.
2012-08-15 08:09:57 +00:00
christos
bf2f922fd2 PR/46801: Izumi Tsutsui:
- downgrade the error of not finding a file to load to a debug message.
  Statically linked OpenPAM (like on sun2) does not have shared objects.
- make sure we preserve errno around dlclose() which will call munmap()
XXX: Pullup to 6
2012-08-15 06:16:41 +00:00
macallan
0cfd9fa3bc more ',rump' sprinkling - now mips64el builds with MKRUMP=no too 2012-08-15 05:55:43 +00:00
macallan
5a289bb968 sprinkle ',rump', now sgimips64 with MKRUMP=no builds properly 2012-08-15 04:22:45 +00:00
matt
a557077bb3 Add macros for all of the E and C flags in the FPSCR. 2012-08-15 03:57:58 +00:00
matt
e3dfed33b6 Add .init_array/.fini_array support (conditionalized on HAVE_INITFINI_ARRAY). 2012-08-15 03:46:06 +00:00
msaitoh
f84c7ada5b Add EXSYS EX-41098-2 UARTs support. The clock frequency is
different from other card(s).
Fixes PR#46362 reported by Wolfgang Stukenbrock.
2012-08-15 01:03:16 +00:00
joerg
dcdf3b2d8d Fix memset usage. 2012-08-15 00:16:06 +00:00
rmind
68f7a7bc54 Move and rename librumpdev_npf to librumpnet_npf. 2012-08-14 22:31:43 +00:00
matt
149143c7a4 Add __HAVE_CPU_COUNTER support for ARM11 and Cortex CPUs 2012-08-14 21:12:59 +00:00
matt
110a919a82 Kill curpcb/ci_curpcb. Use device_t in cpu_info.
Add ci_softc (where ci_curpcb was so cpu_info doesn't change).
2012-08-14 20:42:33 +00:00
matt
d33dd4cbcd Use device_t 2012-08-14 20:39:49 +00:00
alnsn
a5a1874fdf Add __RCSID and and make a couple of stylistic changes. 2012-08-14 19:40:30 +00:00
alnsn
e7e64dcaa1 Build and install t_bpfilter. 2012-08-14 19:13:54 +00:00
alnsn
a385466d91 Add t_bpfilter test. At the moment, it only checks
that bpf program can read bytes from mbuf chain.
2012-08-14 19:09:15 +00:00
chs
0eb63e4bdf move evcnt_attach_dynamic() calls later to avoid assertions. 2012-08-14 15:46:21 +00:00
tsutsui
cfc3227cd9 Add recent user visible changes I committed and pulled up to netbsd-6. 2012-08-14 15:17:53 +00:00
jruoho
dd68a56f79 Use _PATH_URANDOM from paths(3). 2012-08-14 14:41:07 +00:00
jruoho
ce0335d479 Use KM_SLEEP. 2012-08-14 14:38:02 +00:00