228663 Commits

Author SHA1 Message Date
lneto
ba791a5e52 lua(4): added support for running Lua scripts in intr context
* using kmem_intr on lua_alloc
* using mutex directly on klua_lock
* added ipl arg on klua_newstate()
* added kluaL_newstate function
* fixed synchronization: locking the Lua state on luaioctl
2014-07-19 17:13:22 +00:00
lneto
5df591ffe3 lua(4): preventing division by zero
* note: we should raise an error instead of return INTMAX_MAX
2014-07-19 17:11:52 +00:00
lneto
f3c23d8032 lua(4): cleaned stubs 2014-07-19 17:10:02 +00:00
wiz
0a3068e150 Use Nx. 2014-07-19 14:58:50 +00:00
roy
1ae594017c Document that our use of pthread_mutex_unlock(3) is async-signal-safe
and as such can be used in a phtread_atfork(3) child handler.
2014-07-19 14:53:22 +00:00
erh
a57dc65e45 Fix bootxx_* and boot on machines where the bios sets high bits of %eax on success. 2014-07-19 14:50:21 +00:00
alnsn
07e0a97a8f Sljit doesn't support MIPS I. Make sljitarch.h obsolete. 2014-07-19 14:35:10 +00:00
skrll
5d7c2f3f3f Bump date for previous. 2014-07-19 14:21:34 +00:00
skrll
7efd42934c PR/48998: uhso(4) support for Globetrotter HSUPA Modem 2014-07-19 14:20:46 +00:00
skrll
3624c95215 Regen 2014-07-19 14:19:04 +00:00
skrll
2d1f19ef7a PR/48998 (uhso(4) support for Globetrotter HSUPA Modem)
Add the product id.
2014-07-19 14:17:49 +00:00
gson
6aaac7c3e2 Do not assert that the two threads do not simultanously notify each
other, because sometimes they do.  Should fix PR kern/46464.  OK pooka.
2014-07-19 14:14:21 +00:00
skrll
b83cf9b0dc Don't return an error in urndis_init if IFF_RUNNING is set on entry.
That is, fix my mistake in handling PR/48964
2014-07-19 08:38:28 +00:00
hikaru
a088d42522 Correct return value handling.
m_defrag(9) is different from OpenBSD one,
it returns new mbuf pointer on success, not zero.
2014-07-19 06:12:24 +00:00
matt
192fbfde2e fix typo reported in PR/48948 2014-07-18 22:54:53 +00:00
riastradh
2ef9395ae2 Fix formatting and locking errors.
Format time_t by casting to intmax_t and using PRIdMAX, since we have
no PRIxyz for time_t.

We already hold the irq lock on entry to i915_record_ring_state, so
don't take it again.
2014-07-18 19:48:34 +00:00
alnsn
a168439b5a Disable FPU in kernel space. 2014-07-18 19:38:02 +00:00
riastradh
adbb470385 Don't cast ptrdiff_t to unsigned long before formatting it with %td.
Noted by Robert Swindells and Patrick Welche.
2014-07-18 19:34:59 +00:00
tsutsui
f6ba350205 Use kmem(9) instead of malloc(9). 2014-07-18 18:17:54 +00:00
tsutsui
f3b63fd9e2 Use C99 struct initialization for wsdisplay_accessops. 2014-07-18 18:03:36 +00:00
tsutsui
b454c4acb3 Minor KNF. No binary changes. 2014-07-18 18:02:08 +00:00
tsutsui
2f4855795f More tweaks to GENERIC.
- reduce maxusers from 32 to 8 as other m68k ports
- make NFS_BOOT_DHCP default rather than NFS_BOOT_BOOTP
  (and move these options in "Networking options" block)
- use 8x16 font instead of 12x22 for machines with small screen like HP362
2014-07-18 17:59:12 +00:00
tsutsui
44d12ee93b Shrink GENERIC and enable MODULAR instead. 2014-07-18 17:51:27 +00:00
tsutsui
1300ef63c3 Enable INET6 (for modern network) and MODULAR, and disable accept filters. 2014-07-18 17:30:52 +00:00
maxv
549e231932 Make DPRINTF more understandable, and replace my previous #ifdef DIAGNOSTIC... 2014-07-18 17:24:34 +00:00
tsutsui
f4763f29dc Shrink GENERIC and enable MODULAR instead. 2014-07-18 17:19:35 +00:00
tsutsui
651b21090e Enable NULLFS and MODULAR, and disable UMAPFS, accf_data and accf_http.
No particular comments on port-x68k@.
2014-07-18 17:06:13 +00:00
maxv
b83cbf05a3 Fix the ATF failures caused by my recent smbfs change (smbfs_vfsops.c -r1.103).
ok pooka@
2014-07-18 16:25:17 +00:00
dholland
885875e18f Remove
Users should not depend on the memory sharing semantics of vfork() as
     other ways of speeding up the fork process may be developed in the
     future.

as we are not planning to deprecate vfork. Besides NetBSD's
compatibility policy means we wouldn't change it anyway but introduce
something new.

Add
     Portable applications should not depend on the memory sharing semantics
     of vfork() as implementations exist that implement vfork() as plain
     fork(2).

because this is or used to be a real hazard.

ok christos
2014-07-18 16:02:50 +00:00
prlw1
efb45e7161 drmkmsbus has gone away 2014-07-18 16:01:07 +00:00
dholland
b50dcf12b2 Clarify HISTORY and bump date. 2014-07-18 15:58:51 +00:00
dholland
bacb19df9d fix typo and minor usage issue 2014-07-18 15:56:44 +00:00
christos
fa7c13505e Document MAP_INHERIT_ZERO. 2014-07-18 12:39:17 +00:00
christos
e93cdeae9b Add MAP_INHERIT_ZERO 2014-07-18 12:36:57 +00:00
christos
33f99f08ae Add t_minherit. 2014-07-18 12:36:18 +00:00
christos
0579ed8b30 Add new minherit test. 2014-07-18 12:34:52 +00:00
christos
9aaf8e57e5 Split out the minherit code into separate functions for readability (allows
us to indent them properly), and merge the new vm_map_entry creation into
a common function to avoid code duplication. No functional change.
2014-07-18 12:19:09 +00:00
njoly
9e00c924f2 Add missing end list (El) macro. 2014-07-18 11:14:18 +00:00
riastradh
34216073bb Don't forget to pmap_update after pmap_kremove! 2014-07-18 03:11:55 +00:00
ozaki-r
dd5f48796e Don't set SOFTINT_MPSAFE to vioif_rx_softint
vioif_rx_softint calls vioif_populate_rx_mbufs that is not MPSAFE.
vioif_populate_rx_mbufs is also called via vioif_ioctl and so can
be called by two LWPs simultaneously, resulting in kernel panic.

PR kern/49007
2014-07-18 02:10:55 +00:00
riastradh
2f97720d54 We need just a VA, not wired physical pages too. 2014-07-18 00:00:51 +00:00
riastradh
964a628c0e Don't double-free obj->pages, with two different allocators to boot! 2014-07-17 21:14:24 +00:00
riastradh
db544f2dc6 Destroy the DMA subregion tag on error in drm_pci_detach.
Now that drm_pci_attach calls the driver load function, rather than
deferring it to the caller, the DMA subregion tag can be created
here.
2014-07-17 21:13:49 +00:00
riastradh
df1a87486b Elide up to one excess driver-named component from firmware pathnames. 2014-07-17 20:56:14 +00:00
riastradh
5820ca24c6 In radeon_device_init, use ddev->dev, not &pdev->dev, for rdev->dev.
ddev->dev is the actual device_t, and we need it for firmware load.
&pdev->dev is a dummy structure that serves no purpose except some
kludge in our Linux PCI compatibility crap.  In Linux the two should
be the same, so no need to #ifdef __NetBSD__ this.
2014-07-17 20:41:22 +00:00
riastradh
852bd97d54 Tweak failure case for Linux firmware API.
request_firmware is guaranteed to yield null on failure;
release_firmware on null is guaranteed to be a no-op.
2014-07-17 20:37:01 +00:00
bouyer
ecf710daf3 Try to recover from vbus errors. Some devices draw too much
current at plug time, causing a trancient error.
2014-07-17 19:58:18 +00:00
riastradh
598514d2bc Need <sys/atomic.h> for atomic_cas_uint. 2014-07-17 19:23:40 +00:00
riastradh
6be38beda3 Don't touch task after calling it. 2014-07-17 18:53:34 +00:00
riastradh
071b7abfaa Fix usb task queue locking. 2014-07-17 18:42:37 +00:00