Commit Graph

250710 Commits

Author SHA1 Message Date
martin
033147ebac Provide stupid uvm_map() and uvm_unmap1() immplementations - might be enough
to get audio tests in rump going again.
XXX needs a RUMP chef to review/replace by something sane!
2017-05-07 14:20:50 +00:00
skrll
0e38d65d7b When compiled with DEBUG/DIAGNOSTIC memset uses the stack so don't ask
it to overwrite it.  64 bytes is enough stack for any memset.
2017-05-07 12:22:22 +00:00
skrll
23f714ae41 Trailing whitespace 2017-05-07 12:20:50 +00:00
martin
6e53169a58 Add a dummy (non-working) uvm_map().
XXX someone with a clue please fix this for real!
2017-05-07 11:48:39 +00:00
martin
dc8051aeb0 Limit some rintl usage to #ifdef __HAVE_LONG_DOUBLE.
XXX should probably declare some aliases in the #else case
2017-05-07 11:29:21 +00:00
kre
e0f1e1647f POSIX says that the arg to break or continue is to be a positive integer
(by which they mean > 0).  We were checking for negative numbers, but
not for 0.  More by chance of the implementation than any specific design
(I suspect) "break 0" was being treated the same as "break" or "break 1".
Since 3 ways to achieve the same thing is overkill, let's do what posix
wants and forbid "break 0" and "continue 0".
2017-05-07 10:37:00 +00:00
hannken
4f4cfe27b2 Enter fstrans from _vfs_busy() and leave from vfs_unbusy().
Adapt sched_sync() and do_sys_sync().
2017-05-07 08:26:58 +00:00
hannken
01d31ceb6d Return ENOENT if trying to suspend an unmounted file system. 2017-05-07 08:25:54 +00:00
hannken
c18a56f135 Move fstrans initialization to vfs_mountalloc(). 2017-05-07 08:24:20 +00:00
hannken
12ad3b05fd Handle the case where the mount is gone and its mnt_transinfo is NULL. 2017-05-07 08:23:28 +00:00
hannken
2aedd7ca2a Move v_writecount adjustment from revoke to reclaim. 2017-05-07 08:21:57 +00:00
hannken
853d034c97 Remove now invalid comment. 2017-05-07 08:21:08 +00:00
nat
204972d45c Audio mmap now works with all devices as hw->mappage is no longer used.
Audio ring buffers are now uvm objects.

This was made possibile with help from christos@ and much help and mmap
functions written by riastradh@.
2017-05-07 08:19:39 +00:00
mbalmer
fd9f13421f Fix a bug that gerenates wrong code for a goto followed by a label inside an
'if' (see https://www.lua.org/bugs.html).
2017-05-07 08:14:06 +00:00
skrll
455e0a8369 Check the TLB entry ASID against base (a0) and limit (a1), and not
limit (a1) and random register value (a2)

While here shave an instruction off
2017-05-07 05:50:39 +00:00
skrll
c506851d87 Save/restore pgMask in tlb_record_asids 2017-05-07 05:48:01 +00:00
skrll
66e429480f opt_multiprocessor.h police 2017-05-07 05:45:07 +00:00
skrll
70774969f0 Call an ASID an ASID in comments 2017-05-07 04:59:19 +00:00
skrll
5a99893d60 Fix a comment 2017-05-07 04:15:50 +00:00
skrll
bb312a98cc KNF 2017-05-07 04:14:20 +00:00
skrll
13cbdcf6d9 Trailing whitespace 2017-05-07 04:12:35 +00:00
kamil
57d34a8f17 Fix MKPAM=no build
Blacklist PAM debug file
2017-05-07 02:05:56 +00:00
htodd
345db1d03b Debug build fix. 2017-05-07 00:43:01 +00:00
palle
c5c3306c87 sun4v: The %ver register is not available on sun4v - use GET_MAXCWP introduced in rev. 1.361. Verified using qemu (sun4u and sun4v) and on real sun4v hw (t2000) 2017-05-06 21:46:31 +00:00
joerg
4f77b889d0 Extend the mmap(2) interface to allow requesting protections for later
use with mprotect(2), but without enabling them immediately.

Extend the mremap(2) interface to allow duplicating mappings, i.e.
create a second range of virtual addresses references the same physical
pages. Duplicated mappings can have different effective protections.

Adjust PAX mprotect logic to disallow effective protections of W&X, but
allow one mapping W and another X protections. This obsoletes using
temporary files for purposes like JIT.

Adjust PAX logic for mmap(2) and mprotect(2) to fail if W&X is requested
and not silently drop the X protection.

Improve test cases to ensure correct operation of the changed
interfaces.
2017-05-06 21:34:51 +00:00
christos
6c1b86451b new OpenPAM 2017-05-06 19:56:41 +00:00
christos
9d6eb33b9f bump libpam. 2017-05-06 19:54:41 +00:00
christos
6b9cab4173 Bump version 2017-05-06 19:52:25 +00:00
christos
4cb4af11b1 merge conflicts 2017-05-06 19:50:09 +00:00
christos
5ca1223004 OpenPAM Resedacea 2017-04-30
- BUGFIX: Reinstore the NULL check in pam_end(3) which was removed in
   OpenPAM Radula, as it breaks common error-handling constructs.

 - BUGFIX: Return PAM_SYMBOL_ERR instead of PAM_SYSTEM_ERR from the
   dispatcher when the required service function could not be found.

 - ENHANCE: Introduce the PAM_BAD_HANDLE error code for when pamh is
   NULL in API functions that have a NULL check.

 - ENHANCE: Introduce the PAM_BAD_ITEM, PAM_BAD_FEATURE and
   PAM_BAD_CONSTANT error codes for situations where we previously
   incorrectly used PAM_SYMBOL_ERR to denote that an invalid constant
   had been passed to an API function.

 - ENHANCE: Improve the RETURN VALUES section in API man pages,
   especially for functions that cannot fail, which were incorrectly
   documented as returning -1 on failure.
============================================================================
OpenPAM Radula							2017-02-19

 - BUGFIX: Fix an inverted test which prevented pam_get_authtok(3) and
   pam_get_user(3) from using application-provided custom prompts.

 - BUGFIX: Plug a memory leak in pam_set_item(3).

 - BUGFIX: Plug a potential memory leak in openpam_readlinev(3).

 - BUGFIX: In openpam_readword(3), support line continuations within
   whitespace.

 - ENHANCE: Add a feature flag to control fallback to "other" policy.

 - ENHANCE: Add a pam_return(8) module which returns an arbitrary
   code specified in the module options.

 - ENHANCE: More and better unit tests.
2017-05-06 19:32:37 +00:00
christos
464b32545a Replace our rounding functions with the ones from FreeBSD 2017-05-06 18:03:24 +00:00
christos
f7c6682327 add missing namespace.h 2017-05-06 18:02:52 +00:00
skrll
bee0152fd3 KNF 2017-05-06 13:05:59 +00:00
nat
cfa9904812 Improved hw draining. Draining of hw will only complete if silence has
been played in the mix ring.

Must hold sc_intr_lock when gettin used value of mix ring.

Clearing of the next block to be written to of the mix ring has moved into
audio_mix.
2017-05-06 00:13:25 +00:00
ginsbach
ee02cf6bab add EEE, MII, RGMII, SGMII 2017-05-05 14:23:47 +00:00
christos
9a21bc9318 fix the tools build. reported by Utkarsh Anand 2017-05-05 12:21:28 +00:00
nat
b62ca4089b Revert to previous.
Simplification of copying data from mix ring to hw ring.
2017-05-05 05:46:49 +00:00
nat
aa09de23c4 Bounds checking inside the mixing of the audio block.
Addresses PR kern/52175.
2017-05-05 00:38:50 +00:00
dholland
824d8f0e42 a thing. 2017-05-04 19:12:53 +00:00
christos
259acaa246 Arrays can't be NULL 2017-05-04 17:17:28 +00:00
sevan
f7a3540ecf Drop main() prototype. 2017-05-04 16:26:09 +00:00
hauke
417ab50e8d Recognize the Sierra un2430 WWAN/GPS Module as found e.g. in HP's
Elitebook 2170p. Note the device will not do much without its
proprietary firmware loaded.
2017-05-04 14:21:01 +00:00
hauke
2c1adfbe92 Recognize the Ralink RT5370 adapter. It has been in usbdevs for a while. 2017-05-04 14:07:34 +00:00
roy
55c5fc2560 Remove __VALGRIND__ guard .... just clean up. 2017-05-04 14:07:33 +00:00
roy
e04b9c5743 Whitespace and formatting. 2017-05-04 13:53:36 +00:00
kamil
1627fdf3a4 Set clear comment about EI_OSABI and EI_ABIVERSION
/*
 * NetBSD sets generic SYSV OSABI and ABI version 0
 * Native ELF files are distinguishable with NetBSD specific notes
 */

No functional change.
2017-05-04 11:12:23 +00:00
kamil
ec80600208 Use consistently "bufq_private(bufq)" instead of "bufq->bq_private"
No functional change.
2017-05-04 11:03:27 +00:00
kamil
df97a42593 Correct typo in the comment
No functional change.
2017-05-04 11:01:16 +00:00
roy
34c6060f1f Clean up some more warnings. 2017-05-04 09:46:30 +00:00
roy
04f58b4824 Clean up some compile warnings. 2017-05-04 09:42:23 +00:00