Ed Schouten
9b6e65b66f
Don't expose __generic() when not using C++.
...
According to the GCC documentation, the constructs used to implement
<tgmath.h> are only available in C mode. They only cause breakage when
used used with g++.
Reported by: tijl
2012-01-17 20:21:31 +00:00
Pyun YongHyeon
1f32d3b76f
Free allocated jumbo buffers when controller is stopped.
2012-01-17 19:36:53 +00:00
Pyun YongHyeon
cba163625e
Use a RX DMA tag to free loaded RX DMA maps.
...
Previously it used a TX DMA tag.
2012-01-17 19:31:03 +00:00
Adrian Chadd
a1f698ef1c
Tidy-up.
2012-01-17 18:20:34 +00:00
Gleb Smirnoff
bdc99a491d
The newhook method can be called in ISR context at
...
certain circumstances, so better use M_NOWAIT in it.
2012-01-17 18:10:25 +00:00
Konstantin Belousov
6db9cf559f
Add definitions for the FPU extended state header, legacy extended
...
state and AVX state.
MFC after: 1 week
2012-01-17 17:07:13 +00:00
Konstantin Belousov
e568229f50
Modernize the fpusave structures definitions by using uint*_t types.
...
MFC after: 1 week
2012-01-17 16:53:41 +00:00
Alan Cox
1dfab8025e
Explain why it is safe to unlock the vnode.
...
Requested by: kib
2012-01-17 16:20:50 +00:00
Gleb Smirnoff
3a8c7fa008
Allocate our mbuf with m_get2().
2012-01-17 12:14:26 +00:00
Gleb Smirnoff
0adbaa2b80
Provide a function m_get2() that allocates a minimal mbuf that
...
would fit specified size. Returned mbuf may be a single mbuf,
an mbuf with a cluster from packet zone, or an mbuf with jumbo
cluster of sufficient size.
2012-01-17 12:13:36 +00:00
Konstantin Belousov
dd4f5d2437
Implement xsetbv(), xsave() and xrstor() providing C access to the
...
similarly named CPU instructions.
Since our in-tree binutils gas is not aware of the instructions, and
I have to use the byte-sequence to encode them, hardcode the r/m operand
as (%rdi). This way, first argument of the pseudo-function is already
placed into proper register.
MFC after: 1 week
2012-01-17 07:30:36 +00:00
Konstantin Belousov
79937651ef
Add definitions related to XCR0.
...
MFC after: 1 week
2012-01-17 07:23:43 +00:00
Konstantin Belousov
5ba2a4998c
Add macro IS_BSP() to check whether the current CPU is BSP.
...
MFC after: 1 week
2012-01-17 07:21:23 +00:00
Sergey Kandaurov
37c2842272
Fix the "lock &zrl->zr_mtx already initialized" assertion by initializing
...
the allocated memory before calling mtx_init(9) on mtx pointing to it.
Otherwize, random contents of uninitialized memory might occasionally
trigger the assertion.
Reported by: Pavel Polyakov <bsd kobyla org>
Reviewed by: pjd
MFC after: 1 week
2012-01-17 06:23:25 +00:00
Kevin Lo
e0d3195bd6
Return EOPNOTSUPP since we only support update mounts for NFS export.
...
Spotted by: trociny
2012-01-17 01:25:53 +00:00
Kirk McKusick
86b571509a
There are several bugs/hangs when trying to take a snapshot on a UFS/FFS
...
filesystem running with journaled soft updates. Until these problems
have been tracked down, return ENOTSUPP when an attempt is made to
take a snapshot on a filesystem running with journaled soft updates.
MFC after: 2 weeks
2012-01-17 01:14:56 +00:00
Kirk McKusick
cc672d3599
Make sure all intermediate variables holding mount flags (mnt_flag)
...
and that all internal kernel calls passing mount flags are declared
as uint64_t so that flags in the top 32-bits are not lost.
MFC after: 2 weeks
2012-01-17 01:08:01 +00:00
Nathan Whitehorn
8d01a3b281
Revert r212360 now that PowerPC can handle large sparse arguments to
...
pmap_remove() (changed in r228412).
MFC after: 2 weeks
2012-01-17 00:31:09 +00:00
Alan Cox
292177e67a
Improve abstraction. Eliminate direct access by elf*_load_section()
...
to an OBJT_VNODE-specific field of the vm object. The same
information can be just as easily obtained from the struct vattr that
is in struct image_params if the latter is passed to
elf*_load_section(). Moreover, by replacing the vmspace and vm
object parameters to elf*_load_section() with a struct image_params
parameter, we actually reduce the size of the object code.
In collaboration with: kib
2012-01-17 00:27:32 +00:00
Stanislav Sedov
f6d505ea58
- Add ID for the BeagleBone FTDI serial over usb port.
...
MFC after: 3 days
2012-01-16 23:14:23 +00:00
Hans Petter Selasky
36dc69c414
Add support for more USB devices.
...
Submitted by: pav @
MFC after: 1 week
2012-01-16 22:26:25 +00:00
Sergey Kandaurov
037f43d3ef
Be pedantic and change // comment to C-style one.
...
Noticed by: Bruce Evans
2012-01-16 20:42:56 +00:00
David Schultz
a7eaecefba
Generate a warning if the kernel's arc4random() is seeded with bogus entropy.
2012-01-16 20:18:10 +00:00
David Schultz
cb659153f9
Fix the value of float_t to match what is implied by FLT_EVAL_METHOD.
2012-01-16 20:17:51 +00:00
David Schultz
b3088c8315
Change the definition of FLT_EVAL_METHOD from 1 to 0. A value of 1 implies
...
that the compiler promotes floats to double precision in computations, but
inspection of the output of a cross-compiler indicates that this isn't the
case on powerpc.
2012-01-16 20:17:29 +00:00
Ivan Voras
d83064751a
Add a bit of verbosity to the comment.
2012-01-16 15:47:42 +00:00
Kevin Lo
575cabed9e
Fix a style bug
...
Spotted by: avg
2012-01-16 14:54:48 +00:00
Gleb Smirnoff
15d2f18763
Make panic strings in m_gettype(), m_getzone(), m_cljset()
...
consistent.
2012-01-16 13:23:19 +00:00
Gleb Smirnoff
fe4ead276d
Add missing static.
2012-01-16 12:33:55 +00:00
Gleb Smirnoff
abe5a2ce52
Remove some disabled NOTYET code. Probability of enabling it is low,
...
if anyone wants, he/she can take it from svn.
2012-01-16 12:31:33 +00:00
Gleb Smirnoff
b4240b64aa
m_getzone() should return only cluster zones.
2012-01-16 10:58:14 +00:00
Hans Petter Selasky
96d87d2b69
Export ttyname instead of ttyunit via the sysctl interface.
...
Submitted by: Mykhaylo Yehorov
PR: usb/164090
MFC after: 1 week
2012-01-16 10:42:43 +00:00
Kevin Lo
57eb5548c9
Add nfs export support to tmpfs(5)
...
Reviewed by: kib
2012-01-16 10:25:22 +00:00
Gleb Smirnoff
56cf9dc1f6
Drop support for SIOCSIFADDR, SIOCSIFNETMASK, SIOCSIFBRDADDR, SIOCSIFDSTADDR
...
ioctl commands.
PR: 163524
Reviewed by: net
2012-01-16 09:53:24 +00:00
Hans Petter Selasky
3a4a1a7f8a
Export information about USB serial port unit and port numbers
...
directly via the sysctl interface.
Submitted by: Mykhaylo Yehorov
PR: usb/164090
MFC after: 1 week
2012-01-16 08:13:25 +00:00
Xin LI
b834944105
Match surrounding style.
...
Noticed by: avg
2012-01-16 06:00:44 +00:00
David Schultz
89c570d28d
Remove a confused comment and fix some minor bugs.
2012-01-16 05:23:27 +00:00
David Schultz
9c955049b4
Fix the definition of FLT_EVAL_METHOD and some minor bugs.
2012-01-16 05:23:13 +00:00
Adrian Chadd
a2d4a78a47
Stop overloading opt_global.h.
2012-01-16 05:07:32 +00:00
David Xu
29a06690ca
Eliminate branch and insert an explicit reader memory barrier to ensure
...
that waiter bit is set before reading semaphore count.
2012-01-16 04:39:10 +00:00
David Schultz
86d131a04a
Implement FLT_ROUNDS for arm. Some (all?) arm FPUs lack support for
...
dynamic rounding modes, but FPUless chips that use softfloat can support it
because everything is emulated anyway. (We presently have incomplete
support for hardware FPUs.)
Submitted by: Ian Lepore
2012-01-16 04:08:29 +00:00
Colin Percival
e69346d668
s/amd64/i386/ in comment.
2012-01-16 02:42:41 +00:00
Colin Percival
1934cbcc1a
Copy XENHVM config file from amd64, now that i386+XENHVM works.
2012-01-16 02:42:16 +00:00
Colin Percival
206d503b92
Make XENHVM work on i386. The __ffs() function counts bits starting from
...
zero, unlike ffs(3), which starts counting from 1.
2012-01-16 02:38:45 +00:00
Alexander Motin
20332cc2b2
Add check to avoid assertion panic on duplicate stop.
...
Reported by: Yuri Pankov <yuri.pankov@gmail.com>
MFC after: 2 months
2012-01-16 00:26:52 +00:00
Alan Cox
0b05cac3d2
When tmpfs_write() resets an extended file to its original size after an
...
error, we want tmpfs_reg_resize() to ignore I/O errors and unconditionally
update the file's size.
Reviewed by: kib
MFC after: 3 weeks
2012-01-16 00:26:49 +00:00
Tim Kientzle
79ca35f323
BeagleBone uses an FTDI chip with
...
an altered Product ID.
2012-01-15 23:00:33 +00:00
Andriy Gapon
996775de4b
dadump: don't leak the periph lock on i/o error
...
Reported by: az
MFC after: 1 week
2012-01-15 20:43:39 +00:00
Adrian Chadd
4aecc339cf
Fix the situation where net80211 is built with IEEE80211_SUPPORT_TDMA but a module
...
is used.
Although the module _builds_, it fails to load because of a missing symbol from
ieee80211_tdma.c.
Specifics:
* Always build ieee80211_tdma.c in the module;
* only compile in the code if IEEE80211_SUPPORT_TDMA is defined.
2012-01-15 19:45:23 +00:00
Adrian Chadd
46efd63a5b
Build some more things (random, bridge/gif/gre, gpio, USB) as modules as well
...
so some embedded platform builds can use these instead of a fully monolithic
kernel.
2012-01-15 19:43:56 +00:00