Commit Graph

237091 Commits

Author SHA1 Message Date
christos afb2c8bbbf handle c99 nested struct initialization { .data.foo[0] = 1 } 2015-07-28 17:56:56 +00:00
christos 4de23ec610 fix member list deallocation; remove #if 0'ed code. 2015-07-28 17:55:13 +00:00
kamil 638c990b9a Compatibility fixes in reallocarr(3)
Make this work on !NetBSD platforms:
- replace __CTASSERT() with platform agnostic solution SQRT_SIZE_MAX
- include nbtool_config.h for cross builds to get definition of __RCSID()
- restore errno in the last rare code path for platforms affecting errno(2)
  in memcpy(2)

While there: rename parameter name 'num' to 'number' to be in sync with
the calloc(3) parameter naming.

Reported by scole_mail at the current-users ml.
2015-07-28 17:13:34 +00:00
christos f9da13407d fix build 2015-07-28 16:51:25 +00:00
christos d9b0abf9c6 fix build. 2015-07-28 16:50:12 +00:00
prlw1 43f47764df Print vndattach error 2015-07-28 13:12:47 +00:00
maxv 40e89e3a3c Introduce POOL_REDZONE. 2015-07-28 12:32:44 +00:00
rjs a0398aa0e8 Fix URL in comment, no functional change. 2015-07-28 12:27:55 +00:00
wiz 13974b8600 Use more Dv. 2015-07-28 09:52:43 +00:00
wiz 8ba2022d63 New sentence, new line. 2015-07-28 09:51:42 +00:00
maxv 807beaf028 Document KMEM_SIZE, KMEM_REDZONE and KMEM_GUARD. 2015-07-28 08:59:47 +00:00
msaitoh affb7484ec Print interrupt type correctly. 2015-07-28 07:15:03 +00:00
skrll a356d4b44c Remove unnecessary #include 2015-07-28 07:14:48 +00:00
mlelstv 1c4e86730e Be more verbose about errors. 2015-07-28 06:19:47 +00:00
mlelstv ff5bbabe6f cosmetic change only. 2015-07-28 06:17:53 +00:00
dholland e6aad7b613 Use lfs_accessors.h in conjunction with the cleaner's struct clfs.
Remove previous hacks.
2015-07-28 05:14:23 +00:00
dholland 62d11b422e Move struct salfs back inside libsa now that lfs_accessors.h is separate. 2015-07-28 05:13:14 +00:00
dholland 34f0d74c9e Add a new lfs header file: lfs_accessors.h.
This contains all the accessor functions and macros out of lfs.h.
Add an include of lfs_accessors.h after all uses of lfs.h... except
for code that wants to define its own struct lfs-alike that the
accessors are supposed to play along with. For these, set STRUCT_LFS
and include lfs_accessors.h after the necessary structure has been
defined, so that lfs_accessors.h can emit functions in terms of it.
2015-07-28 05:09:34 +00:00
knakahara 158635859e fix: panic at doing "vmstat -ev" after a PCIe device detached. 2015-07-28 01:57:55 +00:00
riastradh 76652ac562 ttm_bo_unreserve in case of ttm_bo_uvm_fault_idle restart.
Better chance of fixing PR kern/49862 by avoiding leaking a buffer
ww_mutex lock.
2015-07-28 01:25:00 +00:00
riastradh 1cb1e70748 Fix error branch: ttm_bo_unreserve on failure after ttm_bo_reserve.
Tiny chance this will fix PR kern/49862 by not leaking a ww_mutex
lock.
2015-07-27 22:26:50 +00:00
macallan 3940e348fc add a sysctl to optionally ender ddb when pressing the power button 2015-07-27 19:27:04 +00:00
martin 6ab712103f Make this work with newer perl versions.
Ok: mrg@
2015-07-27 18:09:27 +00:00
msaitoh 122c565fcd Add NVMe. 2015-07-27 15:46:03 +00:00
msaitoh 766e6e09f1 KNF. 2015-07-27 15:45:20 +00:00
martin 7b553b530b Add driver debug entries 2015-07-27 09:59:49 +00:00
maxv 66b146ac99 Several changes and improvements in KMEM_GUARD:
- merge uvm_kmguard.{c,h} into subr_kmem.c. It is only user there, and
   makes it more consistent. Also, it allows us to enable KMEM_GUARD
   without enabling DEBUG.
 - rename uvm_kmguard_XXX to kmem_guard_XXX, for consistency
 - improve kmem_guard_alloc() so that it supports allocations bigger than
   PAGE_SIZE
 - remove the canary value, and use directly the kmem header as underflow
   pattern.
 - fix some comments

(The UAF fifo is disabled for the moment; we actually need to register
the va and its size, and add a weight support not to consume too much
memory.)
2015-07-27 09:24:28 +00:00
skrll a85df79f98 Don't timeout waiting for ld_sdmmc_dobio in the IO thread to start.
XXX why does it take >1s to get scheduled?
2015-07-27 07:53:46 +00:00
pooka 4169abe3e4 Print the "halted\n" from previous commit to stdout, not stderr.
The putchar hypercall writes to stdout, so this change restores
the original "functionality" (which was not intended to change).

from gson, via tests
2015-07-27 07:31:00 +00:00
msaitoh 53b3110f9e Add ACPI_RESOURCE_TYPE_END_TAG and ACPI_RESOURCE_TYPE_ADDRESS64. 2015-07-27 04:50:50 +00:00
wiz d54956fea0 Spacing; Fn -> Xr for jemalloc. 2015-07-26 22:32:03 +00:00
wiz 66d1cd0cb5 Use An in AUTHORS section. 2015-07-26 22:22:24 +00:00
kamil f7f1e07c2d Update the ACPICA entry
Version:       20150410
Current Vers:  20150717
2015-07-26 19:31:19 +00:00
jmcneill 8e8646698a - Support multi-channel (> 2) output to HDMI sinks.
- Fix a bug in hdafg_set_params that could program converters using the
  wrong audio_params_t if auconv is in use
- Force Tegra124 HDMI codec to a fixed rate 44.1kHz
2015-07-26 19:06:26 +00:00
jmcneill 9ac658bba2 set HDAUDIO_FLAG_NO_STREAM_RESET quirk 2015-07-26 17:54:46 +00:00
jmcneill fd314950d4 Skip stream reset if HDAUDIO_FLAG_NO_STREAM_RESET flag is set. 2015-07-26 17:54:33 +00:00
kamil 01f63c44fd Bump date for recent changes 2015-07-26 17:37:38 +00:00
kamil 28de1b8a34 Sync parameter name with efun.c
This change is non-functional.
2015-07-26 17:36:38 +00:00
martin def993fa14 Defer using pthread keys until we are threaded.
From Christos, fixes PR port-arm/50087 by allowing malloc calls prior
to libpthread initialization.
2015-07-26 17:21:55 +00:00
kamil 13f3706081 Add history of allocators
Idea accepted by <christos>
No objctions from <riastradh>
2015-07-26 17:09:29 +00:00
christos c0c6a84ba3 From Timo Buhrmester: Fix wrong parameter description 2015-07-26 17:03:06 +00:00
kamil 4f643221a3 mandoc lint 2015-07-26 17:00:37 +00:00
abs df80c91dd1 Avoid NULL dev_priv->vlv_pctx-> deref in a WARN check on Lenovo B50-30,
add an additional check for the NULL dev_priv->vlv_pctx.
System now boots (though does not recognise any of the USB(3) ports)
pullup#7
2015-07-26 15:30:36 +00:00
kamil 382f8944d9 Bump shlib minor for new function: ereallocarr(3)
Noted by <mrg>
2015-07-26 15:15:31 +00:00
jmcneill 773727c6cf fix a few typos in the audio infoframe we build 2015-07-26 15:12:03 +00:00
tsutsui 5636e147a4 Don't set garbages into BAT registers, which was broken in rev 1.25.
Should fix PR port-macppc/50018 (though there is no response for 3 weeks),
and should be pulled up to netbsd-7.
2015-07-26 14:24:29 +00:00
kamil c4c10ad1a1 Add reallocarr(3) to tools/compat
This should unbreak libutil(3) creation on systems withot reallocarr(3).
2015-07-26 14:01:53 +00:00
mrg 69f3e6744c properly copy regs for kgdb, and define the number of registers properly.
from openbsd via Vicente Chaves and PR port-amd64/50091.
2015-07-26 10:49:05 +00:00
jmcneill 41a4a26eaf disable DEBUG and LOCKDEBUG 2015-07-26 10:09:53 +00:00
mrg 4bebf46978 remove unused files. 2015-07-26 09:04:15 +00:00