Commit Graph

246792 Commits

Author SHA1 Message Date
nat
3af52eea80 Fix building of the spkr module. The module now is the synthesized speaker.
Reported by joerg@
2016-12-08 21:42:42 +00:00
nat
da633c5ed5 MCLOSE class->flag. Found by hannken@ 2016-12-08 20:53:12 +00:00
nat
4bb9801b95 spkr->speaker. Found by kamil@ 2016-12-08 20:44:24 +00:00
nat
e73c2a631e Fix a build error. Found by joerg@ 2016-12-08 20:33:52 +00:00
christos
a582531a1a finish arm regeneration 2016-12-08 19:35:10 +00:00
christos
5398e0956f more stuff needs -mfpu=vfp 2016-12-08 18:42:01 +00:00
kamil
4b927362a8 Fix Clang/LLVM build
Reported error:
    src/tests/kernel/t_ptrace_wait.c:4401:33:
    error: missing field 'pl_event' initializer
            [-Werror,-Wmissing-field-initializers]

Line in the code:
    struct ptrace_lwpinfo info = {0};

Appease it with initializing info to {0, 0}.

Sponsored by <The NetBSD Foundation>
2016-12-08 13:32:17 +00:00
mlelstv
95b40fadb3 invoke optional d_label callback to give the driver the possibility
to adjust the label with driver specific data.
2016-12-08 12:22:56 +00:00
mlelstv
a80956dfbe Add driver entry point to augment a default disklabel with driver specific
data. Legacy data like RPM values, typenames but also special paritioning
representing disk formats.

Bump kernel rev.
2016-12-08 12:21:54 +00:00
nat
a60401d684 Synthesized PC speaker(4) device. 2016-12-08 11:34:40 +00:00
nat
03783bb56a Add a synthesized pc beeper and keyboard bell for platforms with an audio
device.
2016-12-08 11:31:08 +00:00
nat
d33023d925 New audio sub-system changes - in kernel mixing 2016-12-08 11:17:36 +00:00
nat
82924a36bf The audio sub-system now supports the following features as
posted to tech-kern:

    * Simultaneous playback and mixing of multiple streams
    * Playback streams can be of different encoding, frequency, precision
      and number of channels
    * Simultaneous recording to different formats
    * One audio device per process
    * Sysctls to set the common format frequency, precision and channels
    * Independent mixer controls for recording/playback per stream
    * Utilizes little cpu time for multiple streams / good performance
    * Compatible with existing programs that use OSS/NetBSD audio
    * Changes to audioctl(1) to allow specifying process id for corresponding
      audio device
2016-12-08 10:28:44 +00:00
msaitoh
29ceb203f4 - Remove "pcommit".
- Add "rdt_a".
2016-12-08 06:28:21 +00:00
ozaki-r
5baee62c70 Use psref for ip_rtaddr
ip_rtaddr will be sleepable soon. So use psref instead of pserialize.
2016-12-08 06:25:43 +00:00
msaitoh
9f7ea7417b Add CLWB bit. 2016-12-08 06:11:03 +00:00
ozaki-r
4c25fb2f83 Add rtcache_unref to release points of rtentry stemming from rtcache
In the MP-safe world, a rtentry stemming from a rtcache can be freed at any
points. So we need to protect rtentries somehow say by reference couting or
passive references. Regardless of the method, we need to call some release
function of a rtentry after using it.

The change adds a new function rtcache_unref to release a rtentry. At this
point, this function does nothing because for now we don't add a reference
to a rtentry when we get one from a rtcache. We will add something useful
in a further commit.

This change is a part of changes for MP-safe routing table. It is separated
to avoid one big change that makes difficult to debug by bisecting.
2016-12-08 05:16:33 +00:00
christos
db332cd014 factor out expression. 2016-12-08 03:25:35 +00:00
christos
86dd6d287c move sh3 to new binutils 2016-12-08 03:22:36 +00:00
ozaki-r
c0e7885f20 Apply deferred if_start framework
if_schedule_deferred_start checks if the if_snd queue contains packets,
so drivers don't need to check it by themselves.
2016-12-08 01:12:00 +00:00
ozaki-r
0cfa5e16fd Introduce deferred if_start framework
The framework provides a means to schedule if_start that will be executed
in softint later. It intends to be used to avoid calling if_start,
especially bpf_mtap, in hardware interrupt.

It adds a dedicated softint to a driver if the driver requests to use the
framework via if_deferred_start_init. The driver can schedule deferred
if_start by if_schedule_deferred_start.

Proposed and discussed on tech-kern and tech-net
2016-12-08 01:06:35 +00:00
kamil
9d8a67c608 Stop using atf_utils_fork() in tests/kernel/arch/amd64/t_ptrace_wait.c
Switch from:
    child = atf_utils_fork();
to:
    ATF_REQUIRE((child = fork()) != -1);

Prefer the latter as working as intended and not outputing to files with
danger to overwrite files' content after each fork in test-suite.

Discussed with Christos Zoulas.

Sponsored by <The NetBSD Foundation>
2016-12-07 22:24:44 +00:00
christos
87fc2c3144 Don't apply the suffix (curdir) to MAKEOBJDIR 2016-12-07 19:57:09 +00:00
macallan
6c348400f0 - don't flush the engine after every blitter operation
- make sure we don't overrun the pipeline in pm3fb_init()
2016-12-07 18:39:04 +00:00
macallan
b39242796e fix downward scrolling, set BUS_SPACE_MAP_PREFETCHABLE 2016-12-07 15:50:30 +00:00
christos
c977da2cd4 Refactor and simplify objdir setting code. 2016-12-07 15:00:46 +00:00
isaki
46880bc98c Fix sign of zero in case of x > -(2^18).
# By the way, I will modify this case later.
2016-12-07 11:27:18 +00:00
pgoyette
02a1db30fb Fix comment: s/ACCD/ADDC/ 2016-12-07 10:03:29 +00:00
kre
7a3aec16f6 Actually guarantee that the returned buffer from link_ntoa() is always
NUL terminated, even when called by malicious/broken applications.
2016-12-07 09:52:34 +00:00
nonaka
8ff00e79c9 Device ID 0xa01 also matches Catalyst CAT34TS02C.
Found on SMD-N8G28CTP-18ML-BK.
2016-12-07 04:58:39 +00:00
pgoyette
d6b064e942 More tweaking... 2016-12-07 03:48:05 +00:00
ozaki-r
69eb3a85d8 Use percpuq if_input
It prevents sppp_input from running in hardware interrupt context.
2016-12-07 03:23:09 +00:00
pgoyette
dfa0a7c726 Update BUGS section to note the possibility of a truncated return value. 2016-12-07 03:22:14 +00:00
christos
2067ca0866 make it always return a NUL terminated string instead of NULL when the address
is truncated for compatibility with others.
2016-12-07 03:16:45 +00:00
christos
7143892b68 Add the terminating NUL as a regular character addition. 2016-12-07 02:48:54 +00:00
dholland
f118bedc12 Leave room for the null terminator. Spotted by DuClare on freenode. 2016-12-07 02:36:41 +00:00
christos
319746a2a5 switch to using fork so we can see the child output. 2016-12-06 18:59:00 +00:00
christos
8f4552233c Fix buffer copy without checking the size of input:
https://www.kb.cert.org/vuls/id/548487
2016-12-06 18:41:02 +00:00
maxv
533b7e32f0 Memory leak, found by Mootja 2016-12-06 15:09:04 +00:00
maxv
d92ef3ce1d Use __kernel_end instead. Does not change anything, but will be meaningful
soon.
2016-12-06 15:05:07 +00:00
knakahara
2126b5df9a remove unnecessary extern declaration.
inetsw has been declared since r1.1, however sctp6_usrreq.c can be built
without the declaration. It must be removed.
2016-12-06 08:58:16 +00:00
ozaki-r
e736997f34 Don't check if the frame is for us in the driver
It's done normally by ether_input now. And also if drop packets here,
bridge(4) doesn't work with the driver.
2016-12-06 08:21:47 +00:00
kamil
f38bfbe41f Clean up after fixes and refactoring by Christos Zoulas
No functional change, remove dead and unneeded code.

Sponsored by <The NetBSD Foundation>
2016-12-06 08:03:09 +00:00
ozaki-r
74d1e7740b Remove obsolete ancient optimization for bpf
The optimization code was obsoleted over 15 years ago.
We can remove it safely.
2016-12-06 07:49:25 +00:00
rin
d71ba65a0e PR port-evbppc/51564 (myself): wait for console input after halting the machine.
ok joerg
2016-12-06 07:34:22 +00:00
ozaki-r
d437b4afd9 Use if_percpuq_enqueue, not if_input
Because gmac_hwqueue_rxconsume is called in hardware interrupt.
2016-12-06 07:09:38 +00:00
knakahara
ec7a5d403a add API to manipulate ifa->ia_hash and ia_hash_pslist_entry, and fix ia_hash_pslist_entry race by using them.
in_ifaddr_lock is required before writing ifa->ia_hash and
ia_hash_pslist_entry to serialize writer processings.

reviewed by ozaki-r@n.o.
2016-12-06 07:01:47 +00:00
isaki
4f47d0e1ff Fix sign of NAN. Found by XM6i. 2016-12-06 06:41:14 +00:00
isaki
67d39dde58 Remove fpu_cordit2() and atanh_table[] completely.
Since cordit1 (for trigonometric functions) and cordit2 (for
hyperbolic functions) are very similar, so I implemented both
at first, but I didn't use cordit2 after all :(
2016-12-06 05:58:19 +00:00
jnemeth
85fec0c0ed update floating holidays for 2017 in preparation for pullup for 7.1 release 2016-12-06 04:54:00 +00:00