Commit Graph

214818 Commits

Author SHA1 Message Date
martin
3e441138b1 Provide an assembler version of _atomic_cas_up for sparc - the C code
does not compile to something usable in a RAS. See PR 38482.
2012-11-28 21:39:59 +00:00
royger
f301a1b2e9 xen: prevent adding duplicate xenwatches
When a xenstore watch triggers, the event is processed on process_msg
and if a valid handle it's found the handler is queued for execution
on the pending xen watches queue (watch_events).

This may present a problem if we trigger a xenwatch several times and
then disconnect the device. If several xenwatch events are added to
the watch_events queue and the device is disconnected afterwards, the
first processed xenwatch event will disconnect the device, remove the
watch and free all resources. This triggers a panic if there are
pending xenwatch events for that device already queued in the local
queue of the function xenwatch_thread, since when the next watch that
has the same handler tries to execute we get a panic due to the fact
that the device is already disconnected and all resources had been
freed:

xenbus_watch: 0xffffa0000b7cd1d0
xbw_callback: 0xffffffff80755dd4
otherend_changed: backend/vif/1/0
backend/vif/1/0/state 6
backend/vif/1/0 -> Closed
backend/vif/1/0 -> backend_device, b_detach: 0xffffffff8075a2bf
xenbus_watch: 0xffffa0000b7cd1d0
xbw_callback: 0xfc5ec02183e547a8
fatal protection fault in supervisor mode
trap type 4 code 0 rip ffffffff80756596 cs e030 rflags 10246 cr2
7f7ff7b4c020 ilevel 0 rsp ffffa000e6d82c50
curlwp 0xffffa0000a72d580 pid 0 lid 36 lowest kstack
0xffffa000e6d7f000
kernel: protection fault trap, code=0
Stopped in pid 0.36 (system) at netbsd:xenwatch_thread+0xc7:    call
*10(%rax
)
xenwatch_thread() at netbsd:xenwatch_thread+0xc7
ds          f
es          5987
fs          2c40
gs          1460
rdi         ffffa0000b7cd1d0
rsi         ffffa0000a5477f0
rbp         ffffa000e6d82c70
rbx         ffffa0000b7c14c0
rdx         2
rcx         f
rax         ffffa0000b7cd1d0
r8          78
r9          ffffffef
r10         deadbeef
r11         1
r12         ffffa000e6d82c50
r13         ffffa0000a72d580
r14         ffffa0000a72d580
r15         0
rip         ffffffff80756596    xenwatch_thread+0xc7
cs          e030
rflags      10246
rsp         ffffa000e6d82c50
ss          e02b
netbsd:xenwatch_thread+0xc7:    call    *10(%rax)
2012-11-28 16:26:59 +00:00
nakayama
9dae46742e Various fixes for smbfs:
- Implement NGONE to fix caching issue described in PR kern/25070.
  Mostly taken from FreeBSD r125637.

- Revert revision 1.70 of smbfs_vnops.c to fix setattr to opened
  direcotry.  In case of SMB_CAP_NT_SMBS, NOPEN is set after
  smbfs_smb_ntcreatex() call.  If NOPEN is set in front, it will
  immediately return by condition at do_open label.

- In smbfs_close(), call smbfs_smb_close() and drop NOPEN bit in
  the case of direcotry.  Otherwise smbfs_rmdir() fails when the
  directory was opened.
2012-11-28 13:34:24 +00:00
blymn
9a57dec753 Fix error message when trying to add a group using -g =uid that
that already exists, the old version printed the wrong GID.
2012-11-28 11:31:27 +00:00
blymn
2da0bfd2ff Google Code In bug fix by Philip Hayes, fixes bin/41049 2012-11-28 11:20:58 +00:00
wiz
de03e2f2f4 binutils-2.23.1 out. 2012-11-28 09:43:16 +00:00
wiz
27d0951af6 Add some articles. Remove trailing whitespace. Fix a typo. 2012-11-28 09:31:15 +00:00
wiz
575e708575 Bump date for previous, remove duplicate word. 2012-11-28 09:29:47 +00:00
wiz
759d63f41f Remove trailing whitespace, sort SEE ALSO, comment out reference
to non-existing libbz2(3).

XXX: bn(3) references correct? (man page doesn't exist in NetBSD)
2012-11-28 09:23:14 +00:00
matt
b160e122c8 Add missing registers. 2012-11-28 02:18:24 +00:00
matt
2a1ae60c15 Add missing debug files. 2012-11-28 01:40:19 +00:00
matt
d9e09e3051 Optimize. 2012-11-28 01:35:05 +00:00
matt
a96852fc0d Use the armv6 rev/rev16 if armv6 or later 2012-11-27 23:57:07 +00:00
jakllsch
3d61196b02 Whitespace. 2012-11-27 20:32:58 +00:00
jakllsch
793070a537 Until such time as the swap subsystem can be converted to use The One True
Allocator, prevent panics if (MAXPHYS/PAGE_SIZE) > BLIST_MAX_ALLOC.
From Wolfgang Stukenbrock in PR#41765.
2012-11-27 20:15:55 +00:00
jkunz
baa08254b2 Fix typo. 2012-11-27 20:06:36 +00:00
jkunz
32c0cb2823 According to the i.MX23 Reference Manual section 3.1, Page 3-3:
"The i.MX23 always operates in litle-endian mode."
So build elftosb and bootloader for this processor only for evbarm(-el).
2012-11-27 20:00:38 +00:00
matt
f82647e665 Make the 85xx get closer to spinning up the secondary CPUs.
Don't assume TLB1[0] has the mapping for VA/PA 0.
Make sure the TLB1 entries that map physical memory have the M (memory
coherent) bit set.
2012-11-27 19:24:45 +00:00
jakllsch
9dc12b580b Add fsbsizeovermaxbsize test that tests mouting a FS with block size greater
than MAXBSIZE.
2012-11-27 16:01:49 +00:00
jakllsch
4ab3368ede Rename fsbsize2big to fsbsizeovermaxphys to accurately match what it tests.
Additionally, compute failing size dynamically by doubling MAXPHYS instead
of assuming 128K will be too big enough.
2012-11-27 15:59:15 +00:00
mrg
b136469b73 since usb task add/remove is supposed to be callable in any usb
context, make sure the lock is OK for such.  ie, not a sleeping lock.
fixes PR#47244.
2012-11-27 04:54:58 +00:00
rkujawa
083cec6ba5 Note support for more boards. 2012-11-26 23:02:53 +00:00
rkujawa
d2a8a7584b Try to make z3rambd less crude. Also support BigRamPlus, FastLane Z3 RAM and
DKB3128.
2012-11-26 22:58:24 +00:00
christos
d37f0585f1 put back rest of the lines that got cut off. 2012-11-26 21:15:34 +00:00
rmind
5111d7eafd npfctl: extend syntax for extracting interface IP address(es) by the family. 2012-11-26 20:34:28 +00:00
pooka
4037e69f4e Attempt 2 at fixing DragonFly util.h conflicts: include util.h only for
non-tool builds.
(why does the tool build prefer host headers instead of compat headers?)
2012-11-26 20:13:54 +00:00
pooka
4fd1e9198b fix previous 2012-11-26 20:03:40 +00:00
pooka
48528ba2e9 One more thing required by DragonFly 2012-11-26 19:57:24 +00:00
pooka
169dfff670 revert previous commit since it breaks the build on NetBSD and
apparently that's considered important
2012-11-26 19:53:41 +00:00
drochner
6eb7501d2c collect common rules in the shared Makefile, this propagates the .OBJDIR
fix done for i386 last year to all other ports
2012-11-26 18:57:33 +00:00
phx
5bb0fdf44e Add another NH-231 clone to the list: Vibe NS-349-S 2012-11-26 17:56:17 +00:00
pooka
149f3bccf4 Support DragonFly BSD. 2012-11-26 17:55:11 +00:00
pooka
0d8e694036 PTHREAD_PROCESS_SHARED private doesn't seem to work on DragonFly, so
init the spin lock _PRIVATE (we don't really care which it is).
2012-11-26 17:54:51 +00:00
christos
5add84500d regen 2012-11-26 17:36:35 +00:00
christos
a75eb7450c PR/47245: Toby Karyadi: more matches for AX88772B usb ethernet. 2012-11-26 17:36:27 +00:00
christos
df3a955cfc PR/47245: Toby Karyadi: More identifiers for AX88772B usb ethernet 2012-11-26 17:34:45 +00:00
pooka
1fedf4b3c8 When including this from a tools build, avoid defining _PWD_H_ since
that macro causes DragonFly's util.h to define conflicting routines.
2012-11-26 17:18:39 +00:00
pooka
303e3a3aa0 FreeBSD fixes.
from philip@freebsd.org
2012-11-26 17:03:15 +00:00
pooka
23a1592d75 const poison is the cure 2012-11-26 17:00:54 +00:00
pooka
cdb7042197 Build gmake iff we're going to need it. 2012-11-26 16:57:25 +00:00
pooka
2f56710909 Since SA_SETLEN() is used only for sockaddr_in, convert it to SIN_SETLEN()
to avoid compiler whining on breaking strict aliasing rules.
2012-11-26 16:30:14 +00:00
drochner
9d483431fd allow to enable ffs "discard" by update mounts, make the flag visible
to userland
2012-11-26 16:22:21 +00:00
alnsn
fb02065311 Add sljitarch.h. 2012-11-26 08:05:47 +00:00
riastradh
d9faecf37c Match the Intel 7 Series SMBus Controller in ichsmb(4).
Tested on a Thinkpad W530.
2012-11-26 03:01:28 +00:00
rkujawa
df0940144b Add z3rambd(4) man page to distribution list. 2012-11-26 00:41:48 +00:00
rkujawa
e732b9231e Last commit to this file was accidental, Flipper is not really supported yet. 2012-11-26 00:38:15 +00:00
rkujawa
f2107c7363 Add man page for newly added z3rambd(4) driver. 2012-11-26 00:36:01 +00:00
rkujawa
b51b09fe9f Note z3rambd(4). 2012-11-26 00:23:53 +00:00
rkujawa
a686c0b3de Regen configs. 2012-11-25 23:37:28 +00:00
rkujawa
0b22320279 Argh, commited wrong file. Add z3rambd. 2012-11-25 23:37:10 +00:00