Re: svn commit: r262351 - head/sys/netinet6

2014-02-24 Thread Craig Rodrigues
On Feb 23, 2014 2:56 PM, "Bjoern A. Zeeb"  wrote:
>
>
> On 23 Feb 2014, at 01:27 , Craig Rodrigues  wrote:
>
> > Author: rodrigc
> > Date: Sun Feb 23 01:27:22 2014
> > New Revision: 262351
> > URL: http://svnweb.freebsd.org/changeset/base/262351
> >
> > Log:
> >  Remove KASSERT from in6p_lookup_mcast_ifp().
> >
> >  When the devel/jenkins port, version 1.551 was started,
> >  the kernel would panic if INVARIANTS was enabled in the kernel config.
> >
> >  Suggested by: bms
>
> This reads to me "we hit the assert, bms suggested to remove it".  Great!
 Caught a bug!  Where is it?  In no way the commit message tells me why?
Why did we not hit the assert in the last n years? What has changed that we
hit it now? Was the assert wrong from the beginning?  Did we hit a real bug
elsewhere and now lost the tracking for it?
>
> Could you please at least for the archives explain?

Bruce suggested that I remove the KASSERT here:

http://lists.freebsd.org/pipermail/freebsd-net/2013-October/036806.html

--
Craig
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r262351 - head/sys/netinet6

2014-02-24 Thread Andrey V. Elsukov
On 24.02.2014 12:34, Craig Rodrigues wrote:
> 
> On Feb 23, 2014 2:56 PM, "Bjoern A. Zeeb"  > wrote:
>>
>>
>> On 23 Feb 2014, at 01:27 , Craig Rodrigues  wrote:
>>
>> > Author: rodrigc
>> > Date: Sun Feb 23 01:27:22 2014
>> > New Revision: 262351
>> > URL: http://svnweb.freebsd.org/changeset/base/262351
>> >
>> > Log:
>> >  Remove KASSERT from in6p_lookup_mcast_ifp().
>> >
>> >  When the devel/jenkins port, version 1.551 was started,
>> >  the kernel would panic if INVARIANTS was enabled in the kernel config.
>> >
>> >  Suggested by: bms
>>
>> This reads to me “we hit the assert, bms suggested to remove it”.
>  Great!  Caught a bug!  Where is it?  In no way the commit message tells
> me why?   Why did we not hit the assert in the last n years? What has
> changed that we hit it now? Was the assert wrong from the beginning?
>  Did we hit a real bug elsewhere and now lost the tracking for it?
>>
>> Could you please at least for the archives explain?
> 
> Bruce suggested that I remove the KASSERT here:
> 
> http://lists.freebsd.org/pipermail/freebsd-net/2013-October/036806.html

There was my analysis:
http://lists.freebsd.org/pipermail/freebsd-net/2013-August/036545.html

I think it is safe to remove this KASSERT.

-- 
WBR, Andrey V. Elsukov
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r262439 - head/sys/dev/usb/input

2014-02-24 Thread Hans Petter Selasky
Author: hselasky
Date: Mon Feb 24 10:44:42 2014
New Revision: 262439
URL: http://svnweb.freebsd.org/changeset/base/262439

Log:
  Update ATP driver:
  - Add support for emulating a mouse wheel, Z-axis.
  
  Submitted by: Rohit Grover 
  MFC after:2 weeks

Modified:
  head/sys/dev/usb/input/atp.c

Modified: head/sys/dev/usb/input/atp.c
==
--- head/sys/dev/usb/input/atp.cMon Feb 24 09:40:03 2014
(r262438)
+++ head/sys/dev/usb/input/atp.cMon Feb 24 10:44:42 2014
(r262439)
@@ -2075,18 +2075,16 @@ atp_reap_sibling_zombies(void *arg)
break;
default:
/* we handle taps of only up to 3 fingers */
-   break;
+   return;
}
atp_add_to_queue(sc, 0, 0, 0, 0); /* button release */
 
-   } else if (n_slides_reaped == 2) {
-   if (n_horizontal_scrolls == 2) {
-   if (horizontal_scroll < 0)
-   atp_add_to_queue(sc, 0, 0, 0, 
MOUSE_BUTTON4DOWN);
-   else
-   atp_add_to_queue(sc, 0, 0, 0, 
MOUSE_BUTTON5DOWN);
-   atp_add_to_queue(sc, 0, 0, 0, 0); /* button release */
-   }
+   } else if ((n_slides_reaped == 2) && (n_horizontal_scrolls == 2)) {
+   if (horizontal_scroll < 0)
+   atp_add_to_queue(sc, 0, 0, 0, MOUSE_BUTTON4DOWN);
+   else
+   atp_add_to_queue(sc, 0, 0, 0, MOUSE_BUTTON5DOWN);
+   atp_add_to_queue(sc, 0, 0, 0, 0); /* button release */
}
 }
 
@@ -2369,8 +2367,12 @@ atp_intr(struct usb_xfer *xfer, usb_erro
u_int8_t n_movements = 0;
int dx = 0;
int dy = 0;
+   int dz = 0;
 
TAILQ_FOREACH(strokep, &sc->sc_stroke_used, entry) {
+   if (strokep->flags & ATSF_ZOMBIE)
+   continue;
+
dx += strokep->movement_dx;
dy += strokep->movement_dy;
if (strokep->movement_dx ||
@@ -2384,9 +2386,26 @@ atp_intr(struct usb_xfer *xfer, usb_erro
dy /= (int)n_movements;
}
 
+   /* detect multi-finger vertical scrolls */
+   if (n_movements >= 2) {
+   boolean_t all_vertical_scrolls = true;
+   TAILQ_FOREACH(strokep, &sc->sc_stroke_used, 
entry) {
+   if (strokep->flags & ATSF_ZOMBIE)
+   continue;
+
+   if (!atp_is_vertical_scroll(strokep))
+   all_vertical_scrolls = false;
+   }
+   if (all_vertical_scrolls) {
+   dz = dy;
+   dy = dx = 0;
+   }
+   }
+
sc->sc_status.dx += dx;
sc->sc_status.dy += dy;
-   atp_add_to_queue(sc, dx, -dy, 0, sc->sc_status.button);
+   sc->sc_status.dz += dz;
+   atp_add_to_queue(sc, dx, -dy, -dz, 
sc->sc_status.button);
}
 
case USB_ST_SETUP:
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r262424 - head/usr.sbin/pmcstat

2014-02-24 Thread Gleb Smirnoff
  Adrian,

On Mon, Feb 24, 2014 at 02:43:58AM +, Adrian Chadd wrote:
A> Log:
A>   Add a new option - 'a ' - which spits out annotated callgraphs.
A>   
A>   '-m ' spits out the given stream into  (eg, /dev/stdout).
A>   However, it only resolves the first symbol; it doesn't parse the entire
A>   callgraph.  If it fails to lookup then it doesn't print anything.
A>   
A>   '-a' instead does a symbol and file:line lookup for each address in each
A>   callgraph and will happily print the address itself with no lookup
A>   information if it couldn't look things up.
A>   
A>   This makes it much easier to pull out individual records from a
A>   pmc data file and look at the callgraph information without having to
A>   hand-decode the addresses.
A>   
A>   Sponsored by:  Netflix, Inc.

Is it possible to spend 5 minutes and document new features in pmcstat(8)?
Please!

-- 
Totus tuus, Glebius.
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r262440 - head/sys/boot/fdt/dts

2014-02-24 Thread Luiz Otavio O Souza
Author: loos
Date: Mon Feb 24 12:45:03 2014
New Revision: 262440
URL: http://svnweb.freebsd.org/changeset/base/262440

Log:
  Enable the second and the third I2C controllers on Beaglebone-black.
  
  The first I2C controller is only used to manage the on-board devices (PMIC
  and HDMI framer) and its bus is not exposed on the expasion headers.
  
  With this change the following pins on the P9 expansion headers are now
  reserved as I2C pins:
  
   Pin 17 - I2C1 SCL
   Pin 18 - I2C1 SDA
   Pin 19 - I2C2 SCL
   Pin 20 - I2C2 SDA
  
  The I2C2 is the bus that should be used to read the contents of cape
  eeproms.
  
  Approved by:  adrian (mentor, implicit)

Modified:
  head/sys/boot/fdt/dts/am335x.dtsi
  head/sys/boot/fdt/dts/beaglebone-black.dts

Modified: head/sys/boot/fdt/dts/am335x.dtsi
==
--- head/sys/boot/fdt/dts/am335x.dtsi   Mon Feb 24 10:44:42 2014
(r262439)
+++ head/sys/boot/fdt/dts/am335x.dtsi   Mon Feb 24 12:45:03 2014
(r262440)
@@ -210,6 +210,26 @@
i2c-device-id = <0>;
};
 
+   i2c1: i2c@4802a000 {
+   #address-cells = <1>;
+   #size-cells = <0>;
+   compatible = "ti,i2c";
+   reg =<  0x4802a000 0x1000 >;
+   interrupts = <71>;
+   interrupt-parent = <&AINTC>;
+   i2c-device-id = <1>;
+   };
+
+   i2c2: i2c@4819c000 {
+   #address-cells = <1>;
+   #size-cells = <0>;
+   compatible = "ti,i2c";
+   reg =<  0x4819c000 0x1000 >;
+   interrupts = <30>;
+   interrupt-parent = <&AINTC>;
+   i2c-device-id = <2>;
+   };
+
pwm@4830 {
compatible = "ti,am335x-pwm";
#address-cells = <1>;

Modified: head/sys/boot/fdt/dts/beaglebone-black.dts
==
--- head/sys/boot/fdt/dts/beaglebone-black.dts  Mon Feb 24 10:44:42 2014
(r262439)
+++ head/sys/boot/fdt/dts/beaglebone-black.dts  Mon Feb 24 12:45:03 2014
(r262440)
@@ -52,6 +52,12 @@
/* I2C0 */
"I2C0_SDA", "I2C0_SDA","i2c",
"I2C0_SCL", "I2C0_SCL","i2c",
+   /* I2C1 */
+   "SPI0_D1", "I2C1_SDA", "i2c",
+   "SPI0_CS0", "I2C1_SCL", "i2c",
+   /* I2C2 */
+   "UART1_CTSn", "I2C2_SDA", "i2c",
+   "UART1_RTSn", "I2C2_SCL", "i2c",
/* Ethernet */
"MII1_RX_ER", "gmii1_rxerr", "input_pulldown",
"MII1_TX_EN", "gmii1_txen", "output",
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r262441 - in head/lib: libc/iconv libiconv_modules/BIG5 libiconv_modules/HZ

2014-02-24 Thread Tijl Coosemans
Author: tijl
Date: Mon Feb 24 13:33:20 2014
New Revision: 262441
URL: http://svnweb.freebsd.org/changeset/base/262441

Log:
  Consistently pass around context information using a simple pointer.  This
  fixes some dereferencing bugs in Chinese character set conversions.
  
  PR:   185964
  MFC after:5 days

Modified:
  head/lib/libc/iconv/citrus_prop.c
  head/lib/libc/iconv/citrus_prop.h
  head/lib/libiconv_modules/BIG5/citrus_big5.c
  head/lib/libiconv_modules/HZ/citrus_hz.c

Modified: head/lib/libc/iconv/citrus_prop.c
==
--- head/lib/libc/iconv/citrus_prop.c   Mon Feb 24 12:45:03 2014
(r262440)
+++ head/lib/libc/iconv/citrus_prop.c   Mon Feb 24 13:33:20 2014
(r262441)
@@ -339,7 +339,7 @@ name_found:
 
 static int
 _citrus_prop_parse_element(struct _memstream * __restrict ms,
-const _citrus_prop_hint_t * __restrict hints, void ** __restrict context)
+const _citrus_prop_hint_t * __restrict hints, void * __restrict context)
 {
int ch, errnum;
 #define _CITRUS_PROP_HINT_NAME_LEN_MAX 255
@@ -435,8 +435,7 @@ _citrus_prop_parse_variable(const _citru
if (ch == EOF || ch == '\0')
break;
_memstream_ungetc(&ms, ch);
-   errnum = _citrus_prop_parse_element(
-   &ms, hints, (void ** __restrict)context);
+   errnum = _citrus_prop_parse_element(&ms, hints, context);
if (errnum != 0)
return (errnum);
}

Modified: head/lib/libc/iconv/citrus_prop.h
==
--- head/lib/libc/iconv/citrus_prop.h   Mon Feb 24 12:45:03 2014
(r262440)
+++ head/lib/libc/iconv/citrus_prop.h   Mon Feb 24 13:33:20 2014
(r262441)
@@ -42,7 +42,7 @@ typedef struct _citrus_prop_hint_t _citr
 
 #define _CITRUS_PROP_CB0_T(_func_, _type_) \
 typedef int (*_citrus_prop_##_func_##_cb_func_t) \
-(void ** __restrict, const char *, _type_); \
+(void * __restrict, const char *, _type_); \
 typedef struct { \
_citrus_prop_##_func_##_cb_func_t func; \
 } _citrus_prop_##_func_##_cb_t;
@@ -52,7 +52,7 @@ _CITRUS_PROP_CB0_T(str, const char *)
 
 #define _CITRUS_PROP_CB1_T(_func_, _type_) \
 typedef int (*_citrus_prop_##_func_##_cb_func_t) \
-(void ** __restrict, const char *, _type_, _type_); \
+(void * __restrict, const char *, _type_, _type_); \
 typedef struct { \
_citrus_prop_##_func_##_cb_func_t func; \
 } _citrus_prop_##_func_##_cb_t;

Modified: head/lib/libiconv_modules/BIG5/citrus_big5.c
==
--- head/lib/libiconv_modules/BIG5/citrus_big5.cMon Feb 24 12:45:03 
2014(r262440)
+++ head/lib/libiconv_modules/BIG5/citrus_big5.cMon Feb 24 13:33:20 
2014(r262441)
@@ -172,7 +172,7 @@ _citrus_BIG5_check_excludes(_BIG5Encodin
 }
 
 static int
-_citrus_BIG5_fill_rowcol(void ** __restrict ctx, const char * __restrict s,
+_citrus_BIG5_fill_rowcol(void * __restrict ctx, const char * __restrict s,
 uint64_t start, uint64_t end)
 {
_BIG5EncodingInfo *ei;
@@ -191,7 +191,7 @@ _citrus_BIG5_fill_rowcol(void ** __restr
 
 static int
 /*ARGSUSED*/
-_citrus_BIG5_fill_excludes(void ** __restrict ctx,
+_citrus_BIG5_fill_excludes(void * __restrict ctx,
 const char * __restrict s __unused, uint64_t start, uint64_t end)
 {
_BIG5EncodingInfo *ei;
@@ -237,7 +237,6 @@ static int
 _citrus_BIG5_encoding_module_init(_BIG5EncodingInfo * __restrict ei,
 const void * __restrict var, size_t lenvar)
 {
-   void *ctx = (void *)ei;
const char *s;
int err;
 
@@ -259,9 +258,9 @@ _citrus_BIG5_encoding_module_init(_BIG5E
}
 
/* fallback Big5-1984, for backward compatibility. */
-   _citrus_BIG5_fill_rowcol((void **)&ctx, "row", 0xA1, 0xFE);
-   _citrus_BIG5_fill_rowcol((void **)&ctx, "col", 0x40, 0x7E);
-   _citrus_BIG5_fill_rowcol((void **)&ctx, "col", 0xA1, 0xFE);
+   _citrus_BIG5_fill_rowcol(ei, "row", 0xA1, 0xFE);
+   _citrus_BIG5_fill_rowcol(ei, "col", 0x40, 0x7E);
+   _citrus_BIG5_fill_rowcol(ei, "col", 0xA1, 0xFE);
 
return (0);
 }

Modified: head/lib/libiconv_modules/HZ/citrus_hz.c
==
--- head/lib/libiconv_modules/HZ/citrus_hz.cMon Feb 24 12:45:03 2014
(r262440)
+++ head/lib/libiconv_modules/HZ/citrus_hz.cMon Feb 24 13:33:20 2014
(r262441)
@@ -505,12 +505,12 @@ _citrus_HZ_encoding_module_uninit(_HZEnc
 }
 
 static int
-_citrus_HZ_parse_char(void **context, const char *name __unused, const char *s)
+_citrus_HZ_parse_char(void *context, const char *name __unused, const char *s)
 {
escape_t *escape;
void **p;
 
-   p = (void **)*context;
+   p = (void **)context;
escape = (escape_t *)p[0];
 

svn commit: r262442 - head/lib/libiconv_modules/HZ

2014-02-24 Thread Tijl Coosemans
Author: tijl
Date: Mon Feb 24 13:43:11 2014
New Revision: 262442
URL: http://svnweb.freebsd.org/changeset/base/262442

Log:
  Fix Simplified Chinese character set conversions by switching around the
  fields of an internal struct so it corresponds with the way variables of
  this type are initialised.
  
  PR:   185964
  Submitted by: Manuel Mausz 
  MFC after:5 days

Modified:
  head/lib/libiconv_modules/HZ/citrus_hz.c

Modified: head/lib/libiconv_modules/HZ/citrus_hz.c
==
--- head/lib/libiconv_modules/HZ/citrus_hz.cMon Feb 24 13:33:20 2014
(r262441)
+++ head/lib/libiconv_modules/HZ/citrus_hz.cMon Feb 24 13:43:11 2014
(r262442)
@@ -65,8 +65,8 @@ typedef enum {
 } charset_t;
 
 typedef struct {
-   int  end;
int  start;
+   int  end;
int  width;
 } range_t;
 
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r262447 - head/lib/libiconv_modules/VIQR

2014-02-24 Thread Tijl Coosemans
Author: tijl
Date: Mon Feb 24 14:40:28 2014
New Revision: 262447
URL: http://svnweb.freebsd.org/changeset/base/262447

Log:
  Fix an array index out of bounds bug in iconv VIQR (Vietnamese) module.
  
  PR:   185964
  Submitted by: Manuel Mausz 
  MFC after:5 days

Modified:
  head/lib/libiconv_modules/VIQR/citrus_viqr.c

Modified: head/lib/libiconv_modules/VIQR/citrus_viqr.c
==
--- head/lib/libiconv_modules/VIQR/citrus_viqr.cMon Feb 24 13:59:23 
2014(r262446)
+++ head/lib/libiconv_modules/VIQR/citrus_viqr.cMon Feb 24 14:40:28 
2014(r262447)
@@ -457,7 +457,7 @@ _citrus_VIQR_encoding_module_init(_VIQRE
return (errnum);
}
}
-   for (i = 0;; ++i) {
+   for (i = 0; i < mnemonic_ext_size; ++i) {
p = &mnemonic_ext[i];
n = strlen(p->name);
if (ei->mb_cur_max < n)
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r262424 - head/usr.sbin/pmcstat

2014-02-24 Thread Adrian Chadd
I'll sit down with a docs person and get the manpage markup done. It
was on my todo list; I just wanted to get the code committed now.

Thanks,


-a


On 24 February 2014 03:06, Gleb Smirnoff  wrote:
>   Adrian,
>
> On Mon, Feb 24, 2014 at 02:43:58AM +, Adrian Chadd wrote:
> A> Log:
> A>   Add a new option - 'a ' - which spits out annotated callgraphs.
> A>
> A>   '-m ' spits out the given stream into  (eg, /dev/stdout).
> A>   However, it only resolves the first symbol; it doesn't parse the entire
> A>   callgraph.  If it fails to lookup then it doesn't print anything.
> A>
> A>   '-a' instead does a symbol and file:line lookup for each address in each
> A>   callgraph and will happily print the address itself with no lookup
> A>   information if it couldn't look things up.
> A>
> A>   This makes it much easier to pull out individual records from a
> A>   pmc data file and look at the callgraph information without having to
> A>   hand-decode the addresses.
> A>
> A>   Sponsored by:  Netflix, Inc.
>
> Is it possible to spend 5 minutes and document new features in pmcstat(8)?
> Please!
>
> --
> Totus tuus, Glebius.
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r262451 - head/share/man/man7

2014-02-24 Thread Eitan Adler
Author: eadler
Date: Mon Feb 24 17:14:08 2014
New Revision: 262451
URL: http://svnweb.freebsd.org/changeset/base/262451

Log:
  hier(7): Add /usr/lib/private
  
  Requested by: theraven
  MFC After:3 days

Modified:
  head/share/man/man7/hier.7

Modified: head/share/man/man7/hier.7
==
--- head/share/man/man7/hier.7  Mon Feb 24 17:03:02 2014(r262450)
+++ head/share/man/man7/hier.7  Mon Feb 24 17:14:08 2014(r262451)
@@ -383,6 +383,9 @@ a.out backward compatibility libraries
 DTrace library scripts
 .It Pa engines/
 OpenSSL (Cryptography/SSL toolkit) dynamically loadable engines
+.It Pa private/
+Private system libraries not for use by third-party programs.
+ABI and API stability are not guaranteed.
 .El
 .Pp
 .It Pa libdata/
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r262452 - head/sys/boot/common

2014-02-24 Thread Robert Watson
Author: rwatson
Date: Mon Feb 24 18:44:03 2014
New Revision: 262452
URL: http://svnweb.freebsd.org/changeset/base/262452

Log:
  Build 64-bit ELF support into little-endian 64-bit MIPS boot-loader
  fragments; while this won't actually be used for anything (yet), it
  doesn't hurt to ensure it is exposed to the tinderbox.
  
  Requested by: imp, jmallett
  MFC after:3 weeks

Modified:
  head/sys/boot/common/Makefile.inc

Modified: head/sys/boot/common/Makefile.inc
==
--- head/sys/boot/common/Makefile.inc   Mon Feb 24 17:14:08 2014
(r262451)
+++ head/sys/boot/common/Makefile.inc   Mon Feb 24 18:44:03 2014
(r262452)
@@ -18,7 +18,7 @@ SRCS+=load_elf32.c reloc_elf32.c
 SRCS+= load_elf64.c reloc_elf64.c
 .elif ${MACHINE_CPUARCH} == "sparc64"
 SRCS+= load_elf64.c reloc_elf64.c
-.elif ${MACHINE_ARCH} == "mips64"
+.elif ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el"
 SRCS+= load_elf64.c reloc_elf64.c
 .endif
 
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r262453 - head/sys/boot/ficl

2014-02-24 Thread Robert Watson
Author: rwatson
Date: Mon Feb 24 18:44:22 2014
New Revision: 262453
URL: http://svnweb.freebsd.org/changeset/base/262453

Log:
  Build FICL support into little-endian 64-bit MIPS boot-loader fragments;
  while this won't actually be used for anything (yet), it doesn't hurt to
  ensure it is exposed to the tinderbox.
  
  Requested by:   imp, jmallett
  MFC after:  3 weeks

Modified:
  head/sys/boot/ficl/Makefile

Modified: head/sys/boot/ficl/Makefile
==
--- head/sys/boot/ficl/Makefile Mon Feb 24 18:44:03 2014(r262452)
+++ head/sys/boot/ficl/Makefile Mon Feb 24 18:44:22 2014(r262453)
@@ -5,7 +5,7 @@ FICLDIR?=   ${.CURDIR}
 
 .if !defined(FICL64)
 .PATH: ${FICLDIR}/${MACHINE_CPUARCH:S/amd64/i386/}
-.elif ${MACHINE_ARCH} == "mips64"
+.elif ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el"
 .PATH: ${FICLDIR}/${MACHINE_ARCH}
 .else
 .PATH: ${FICLDIR}/${MACHINE_CPUARCH}
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r262424 - head/usr.sbin/pmcstat

2014-02-24 Thread John-Mark Gurney
Adrian Chadd wrote this message on Mon, Feb 24, 2014 at 07:54 -0800:
> I'll sit down with a docs person and get the manpage markup done. It
> was on my todo list; I just wanted to get the code committed now.

Also, don't forget to document EVFILT_SENDFILE too!

> On 24 February 2014 03:06, Gleb Smirnoff  wrote:
> >   Adrian,
> >
> > On Mon, Feb 24, 2014 at 02:43:58AM +, Adrian Chadd wrote:
> > A> Log:
> > A>   Add a new option - 'a ' - which spits out annotated callgraphs.
> > A>
> > A>   '-m ' spits out the given stream into  (eg, /dev/stdout).
> > A>   However, it only resolves the first symbol; it doesn't parse the entire
> > A>   callgraph.  If it fails to lookup then it doesn't print anything.
> > A>
> > A>   '-a' instead does a symbol and file:line lookup for each address in 
> > each
> > A>   callgraph and will happily print the address itself with no lookup
> > A>   information if it couldn't look things up.
> > A>
> > A>   This makes it much easier to pull out individual records from a
> > A>   pmc data file and look at the callgraph information without having to
> > A>   hand-decode the addresses.
> > A>
> > A>   Sponsored by:  Netflix, Inc.
> >
> > Is it possible to spend 5 minutes and document new features in pmcstat(8)?
> > Please!

-- 
  John-Mark Gurney  Voice: +1 415 225 5579

 "All that I will do, has been done, All that I have, has not."
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r262454 - head/sys/dev/usb/input

2014-02-24 Thread Hans Petter Selasky
Author: hselasky
Date: Mon Feb 24 19:19:35 2014
New Revision: 262454
URL: http://svnweb.freebsd.org/changeset/base/262454

Log:
  Fix compiler warning.
  
  Reported by:  David Wolfskill 
  MFC after:2 weeks

Modified:
  head/sys/dev/usb/input/atp.c

Modified: head/sys/dev/usb/input/atp.c
==
--- head/sys/dev/usb/input/atp.cMon Feb 24 18:44:22 2014
(r262453)
+++ head/sys/dev/usb/input/atp.cMon Feb 24 19:19:35 2014
(r262454)
@@ -794,11 +794,6 @@ static void atp_convert_to_slide(st
 static void atp_reset_buf(struct atp_softc *);
 static void atp_add_to_queue(struct atp_softc *, int, int, int, 
uint32_t);
 
-static const sensor_data_interpreter_t 
atp_sensor_data_interpreters[TRACKPAD_FAMILY_MAX] = {
-   [TRACKPAD_FAMILY_FOUNTAIN_GEYSER] = fg_interpret_sensor_data,
-   [TRACKPAD_FAMILY_WELLSPRING]  = wsp_interpret_sensor_data,
-};
-
 /* Device methods. */
 static device_probe_t  atp_probe;
 static device_attach_t atp_attach;
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r262455 - head/share/man/man4

2014-02-24 Thread Hans Petter Selasky
Author: hselasky
Date: Mon Feb 24 19:27:26 2014
New Revision: 262455
URL: http://svnweb.freebsd.org/changeset/base/262455

Log:
  Update ATP manual page.
  
  Submitted by: Rohit Grover 
  MFC after:2 weeks

Modified:
  head/share/man/man4/atp.4

Modified: head/share/man/man4/atp.4
==
--- head/share/man/man4/atp.4   Mon Feb 24 19:19:35 2014(r262454)
+++ head/share/man/man4/atp.4   Mon Feb 24 19:27:26 2014(r262455)
@@ -27,7 +27,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd February 23, 2014
+.Dd February 24, 2014
 .Dt ATP 4
 .Os
 .Sh NAME
@@ -58,8 +58,9 @@ Single finger tap generates a left\-butt
 middle button; whereas a three\-finger tap gets treated as a right button
 click.
 .Pp
-There is support for 2-finger horizontal scrolling, which translates to
-page\-back/forward events.
+There is support for 2\-finger horizontal scrolling, which translates to
+page\-back/forward events; vertical multi\-finger scrolling emulates the mouse
+wheel.
 .Pp
 A double\-tap followed by a drag is treated as a selection gesture; a
 virtual left\-button click is assumed for the lifespan of the drag.
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r262456 - in head/sys: arm/conf boot/fdt/dts

2014-02-24 Thread Ruslan Bukin
Author: br
Date: Mon Feb 24 19:32:15 2014
New Revision: 262456
URL: http://svnweb.freebsd.org/changeset/base/262456

Log:
  Add support for Quartz Module.
  
  Quartz is a tiny module utilized Freescale VF6xx
  system-on-chip and development kit produced by
  Device Solutions.
  
  Quartz is available in a form of LGA (38x38x2mm)
  or as a module with high-density connectors.
  
  Sponsored by: Device Solutions

Added:
  head/sys/arm/conf/QUARTZ   (contents, props changed)
  head/sys/boot/fdt/dts/vybrid-quartz.dts   (contents, props changed)

Added: head/sys/arm/conf/QUARTZ
==
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/sys/arm/conf/QUARTZMon Feb 24 19:32:15 2014(r262456)
@@ -0,0 +1,26 @@
+# Kernel configuration for Device Solutions Quartz Module.
+#
+# For more information on this file, please read the config(5) manual page,
+# and/or the handbook section on Kernel Configuration Files:
+#
+#
http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
+#
+# The handbook is also available locally in /usr/share/doc/handbook
+# if you've installed the doc distribution, otherwise always see the
+# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
+# latest information.
+#
+# An exhaustive list of options and more detailed explanations of the
+# device lines is also present in the ../../conf/NOTES and NOTES files.
+# If you are in doubt as to the purpose or necessity of a line, check first
+# in NOTES.
+#
+# $FreeBSD$
+
+include"VYBRID.common"
+ident  QUARTZ
+
+#FDT
+optionsFDT
+optionsFDT_DTB_STATIC
+makeoptionsFDT_DTS_FILE=vybrid-quartz.dts

Added: head/sys/boot/fdt/dts/vybrid-quartz.dts
==
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/sys/boot/fdt/dts/vybrid-quartz.dts Mon Feb 24 19:32:15 2014
(r262456)
@@ -0,0 +1,65 @@
+/*-
+ * Copyright (c) 2014 Ruslan Bukin 
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * $FreeBSD$
+ */
+
+/dts-v1/;
+
+/include/ "vybrid.dtsi"
+
+/ {
+   model = "Device Solutions Quartz Module";
+
+   memory {
+   device_type = "memory";
+   reg = < 0x8000 0x1000 >;/* 256MB RAM */
+   };
+
+   SOC: vybrid {
+   serial0: serial@40027000 {
+   status = "okay";
+   };
+
+   fec1: ethernet@400D1000 {
+   status = "okay";
+   iomux_config = < 54 0x1 55 0x1
+56 0x1 57 0x1
+58 0x1 59 0x1
+60 0x1 61 0x1
+62 0x1  0 0x2 >;
+   };
+
+   edma1: edma@40098000 {
+   status = "okay";
+   };
+   };
+
+   chosen {
+   bootargs = "-v";
+   stdin = "serial0";
+   stdout = "serial0";
+   };
+};
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r262447 - head/lib/libiconv_modules/VIQR

2014-02-24 Thread Glen Barber
On Mon, Feb 24, 2014 at 02:40:29PM +, Tijl Coosemans wrote:
> Author: tijl
> Date: Mon Feb 24 14:40:28 2014
> New Revision: 262447
> URL: http://svnweb.freebsd.org/changeset/base/262447
> 
> Log:
>   Fix an array index out of bounds bug in iconv VIQR (Vietnamese) module.
>   

This breaks gcc build.

http://tinderbox.freebsd.org/tinderbox-head-build-HEAD-ia64-ia64.full

Glen



pgpSmttav1pGD.pgp
Description: PGP signature


svn commit: r262461 - head/lib/libiconv_modules/VIQR

2014-02-24 Thread Xin LI
Author: delphij
Date: Mon Feb 24 23:56:09 2014
New Revision: 262461
URL: http://svnweb.freebsd.org/changeset/base/262461

Log:
  Patch 1/2:
  
  Pet gcc: enclose the for loop that currently do nothing with an if.
  
  Reviewed by:  sha256(1)
  X-MFC-With:   r262447

Modified:
  head/lib/libiconv_modules/VIQR/citrus_viqr.c

Modified: head/lib/libiconv_modules/VIQR/citrus_viqr.c
==
--- head/lib/libiconv_modules/VIQR/citrus_viqr.cMon Feb 24 21:48:03 
2014(r262460)
+++ head/lib/libiconv_modules/VIQR/citrus_viqr.cMon Feb 24 23:56:09 
2014(r262461)
@@ -457,6 +457,7 @@ _citrus_VIQR_encoding_module_init(_VIQRE
return (errnum);
}
}
+   if (mnemonic_ext > 0) {
for (i = 0; i < mnemonic_ext_size; ++i) {
p = &mnemonic_ext[i];
n = strlen(p->name);
@@ -469,6 +470,7 @@ _citrus_VIQR_encoding_module_init(_VIQRE
return (errnum);
}
}
+   }
 
return (0);
 }
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r262462 - head/lib/libiconv_modules/VIQR

2014-02-24 Thread Xin LI
Author: delphij
Date: Mon Feb 24 23:58:07 2014
New Revision: 262462
URL: http://svnweb.freebsd.org/changeset/base/262462

Log:
  Patch 2/2:
  
  Reindent the code after previous change.
  
  X-MFC-With:   r262447

Modified:
  head/lib/libiconv_modules/VIQR/citrus_viqr.c

Modified: head/lib/libiconv_modules/VIQR/citrus_viqr.c
==
--- head/lib/libiconv_modules/VIQR/citrus_viqr.cMon Feb 24 23:56:09 
2014(r262461)
+++ head/lib/libiconv_modules/VIQR/citrus_viqr.cMon Feb 24 23:58:07 
2014(r262462)
@@ -458,19 +458,19 @@ _citrus_VIQR_encoding_module_init(_VIQRE
}
}
if (mnemonic_ext > 0) {
-   for (i = 0; i < mnemonic_ext_size; ++i) {
-   p = &mnemonic_ext[i];
-   n = strlen(p->name);
-   if (ei->mb_cur_max < n)
-   ei->mb_cur_max = n;
-   errnum = mnemonic_append_child(ei->mroot,
-   p->name, p->value, ei->invalid);
-   if (errnum != 0) {
-   _citrus_VIQR_encoding_module_uninit(ei);
-   return (errnum);
+   for (i = 0; i < mnemonic_ext_size; ++i) {
+   p = &mnemonic_ext[i];
+   n = strlen(p->name);
+   if (ei->mb_cur_max < n)
+   ei->mb_cur_max = n;
+   errnum = mnemonic_append_child(ei->mroot,
+   p->name, p->value, ei->invalid);
+   if (errnum != 0) {
+   _citrus_VIQR_encoding_module_uninit(ei);
+   return (errnum);
+   }
}
}
-   }
 
return (0);
 }
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r262463 - head/lib/libiconv_modules/VIQR

2014-02-24 Thread Xin LI
Author: delphij
Date: Tue Feb 25 00:57:06 2014
New Revision: 262463
URL: http://svnweb.freebsd.org/changeset/base/262463

Log:
  Revert 262462 and 262461, they didn't solve the problem, in
  fact I should actually waited the build to be finished before
  committing.
  
  A proper fix would be committed once my test build passes.
  
  Pointy hat to:delphij

Modified:
  head/lib/libiconv_modules/VIQR/citrus_viqr.c

Modified: head/lib/libiconv_modules/VIQR/citrus_viqr.c
==
--- head/lib/libiconv_modules/VIQR/citrus_viqr.cMon Feb 24 23:58:07 
2014(r262462)
+++ head/lib/libiconv_modules/VIQR/citrus_viqr.cTue Feb 25 00:57:06 
2014(r262463)
@@ -457,18 +457,16 @@ _citrus_VIQR_encoding_module_init(_VIQRE
return (errnum);
}
}
-   if (mnemonic_ext > 0) {
-   for (i = 0; i < mnemonic_ext_size; ++i) {
-   p = &mnemonic_ext[i];
-   n = strlen(p->name);
-   if (ei->mb_cur_max < n)
-   ei->mb_cur_max = n;
-   errnum = mnemonic_append_child(ei->mroot,
-   p->name, p->value, ei->invalid);
-   if (errnum != 0) {
-   _citrus_VIQR_encoding_module_uninit(ei);
-   return (errnum);
-   }
+   for (i = 0; i < mnemonic_ext_size; ++i) {
+   p = &mnemonic_ext[i];
+   n = strlen(p->name);
+   if (ei->mb_cur_max < n)
+   ei->mb_cur_max = n;
+   errnum = mnemonic_append_child(ei->mroot,
+   p->name, p->value, ei->invalid);
+   if (errnum != 0) {
+   _citrus_VIQR_encoding_module_uninit(ei);
+   return (errnum);
}
}
 
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r262464 - head/lib/libiconv_modules/VIQR

2014-02-24 Thread Xin LI
Author: delphij
Date: Tue Feb 25 01:11:05 2014
New Revision: 262464
URL: http://svnweb.freebsd.org/changeset/base/262464

Log:
  Wrap for loop in #if block testing the size is actually greater
  than 0.  This silences gcc warning.
  
  Reviewed by:  sha256(1) with clang
  X-MFC-With:   r262447

Modified:
  head/lib/libiconv_modules/VIQR/citrus_viqr.c

Modified: head/lib/libiconv_modules/VIQR/citrus_viqr.c
==
--- head/lib/libiconv_modules/VIQR/citrus_viqr.cTue Feb 25 00:57:06 
2014(r262463)
+++ head/lib/libiconv_modules/VIQR/citrus_viqr.cTue Feb 25 01:11:05 
2014(r262464)
@@ -433,7 +433,6 @@ static int
 _citrus_VIQR_encoding_module_init(_VIQREncodingInfo * __restrict ei,
 const void * __restrict var __unused, size_t lenvar __unused)
 {
-   const mnemonic_def_t *p;
const char *s;
size_t i, n;
int errnum;
@@ -457,7 +456,10 @@ _citrus_VIQR_encoding_module_init(_VIQRE
return (errnum);
}
}
+#if mnemonic_ext_size > 0
for (i = 0; i < mnemonic_ext_size; ++i) {
+   const mnemonic_def_t *p;
+
p = &mnemonic_ext[i];
n = strlen(p->name);
if (ei->mb_cur_max < n)
@@ -469,6 +471,7 @@ _citrus_VIQR_encoding_module_init(_VIQRE
return (errnum);
}
}
+#endif
 
return (0);
 }
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r262465 - head/sys/dev/usb/wlan

2014-02-24 Thread Kevin Lo
Author: kevlo
Date: Tue Feb 25 01:42:02 2014
New Revision: 262465
URL: http://svnweb.freebsd.org/changeset/base/262465

Log:
  Add a flag to run's device list which uses a standard scsi eject.
  The flag indicates that the mcu doesn't need to load firmware.
  
  Tested by:Alex Deiter , myself
  Tested on:ASUS USB-N66

Modified:
  head/sys/dev/usb/wlan/if_run.c
  head/sys/dev/usb/wlan/if_runvar.h

Modified: head/sys/dev/usb/wlan/if_run.c
==
--- head/sys/dev/usb/wlan/if_run.c  Tue Feb 25 01:11:05 2014
(r262464)
+++ head/sys/dev/usb/wlan/if_run.c  Tue Feb 25 01:42:02 2014
(r262465)
@@ -100,7 +100,8 @@ SYSCTL_INT(_hw_usb_run, OID_AUTO, debug,
 static const STRUCT_USB_HOST_ID run_devs[] = {
 #defineRUN_DEV(v,p){ USB_VP(USB_VENDOR_##v, USB_PRODUCT_##v##_##p) 
}
 #defineRUN_DEV_EJECT(v,p)  \
-   { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, 0) }
+   { USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, RUN_EJECT) }
+#defineRUN_EJECT   1
 RUN_DEV(ABOCOM,RT2770),
 RUN_DEV(ABOCOM,RT2870),
 RUN_DEV(ABOCOM,RT3070),
@@ -315,7 +316,7 @@ static const STRUCT_USB_HOST_ID run_devs
 RUN_DEV(ZINWELL,   RT3072_2),
 RUN_DEV(ZYXEL, RT2870_1),
 RUN_DEV(ZYXEL, RT2870_2),
-RUN_DEV(ZYXEL, NWD2705),
+RUN_DEV_EJECT(ZYXEL,   NWD2705),
 RUN_DEV_EJECT(RALINK,  RT_STOR),
 #undef RUN_DEV_EJECT
 #undef RUN_DEV
@@ -707,6 +708,8 @@ run_attach(device_t self)
device_set_usb_desc(self);
sc->sc_udev = uaa->device;
sc->sc_dev = self;
+   if (USB_GET_DRIVER_INFO(uaa) != RUN_EJECT)
+   sc->sc_flags |= RUN_FLAG_FWLOAD_NEEDED;
 
mtx_init(&sc->sc_mtx, device_get_nameunit(sc->sc_dev),
MTX_NETWORK_LOCK, MTX_DEF);
@@ -1151,7 +1154,7 @@ run_load_microcode(struct run_softc *sc)
}
 
/* write microcode image */
-   if (sc->mac_ver != 0x3593) {
+   if (sc->sc_flags & RUN_FLAG_FWLOAD_NEEDED) {
run_write_region_1(sc, RT2870_FW_BASE, base, 4096);
run_write(sc, RT2860_H2M_MAILBOX_CID, 0x);
run_write(sc, RT2860_H2M_MAILBOX_STATUS, 0x);

Modified: head/sys/dev/usb/wlan/if_runvar.h
==
--- head/sys/dev/usb/wlan/if_runvar.h   Tue Feb 25 01:11:05 2014
(r262464)
+++ head/sys/dev/usb/wlan/if_runvar.h   Tue Feb 25 01:42:02 2014
(r262465)
@@ -154,6 +154,11 @@ struct run_softc {
device_tsc_dev;
struct usb_device   *sc_udev;
struct ifnet*sc_ifp;
+   int sc_need_fwload;
+
+   int sc_flags;
+#defineRUN_FLAG_FWLOAD_NEEDED  0x01
+
uint16_twcid_stats[RT2870_WCID_MAX + 1][3];
 #defineRUN_TXCNT   0
 #defineRUN_SUCCESS 1
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r262466 - head/sys/cddl/dev/systrace

2014-02-24 Thread Mark Johnston
Author: markj
Date: Tue Feb 25 02:58:11 2014
New Revision: 262466
URL: http://svnweb.freebsd.org/changeset/base/262466

Log:
  Make all 8 syscall arguments available to syscall probes in the same way
  that this is done for SDT probes. This fixes the syscall/tst.args.d test,
  which was failing because mmap(2)'s sixth argument wasn't available to the
  probe.
  
  MFC after:2 weeks

Modified:
  head/sys/cddl/dev/systrace/systrace.c

Modified: head/sys/cddl/dev/systrace/systrace.c
==
--- head/sys/cddl/dev/systrace/systrace.c   Tue Feb 25 01:42:02 2014
(r262465)
+++ head/sys/cddl/dev/systrace/systrace.c   Tue Feb 25 02:58:11 2014
(r262466)
@@ -168,6 +168,9 @@ static dtrace_pops_t systrace_pops = {
 static struct cdev *systrace_cdev;
 static dtrace_provider_id_tsystrace_id;
 
+typedef void (*systrace_dtrace_probe)(dtrace_id_t, uintptr_t, uintptr_t,
+uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t);
+
 #if !defined(LINUX_SYSTRACE)
 /*
  * Probe callback function.
@@ -211,7 +214,8 @@ systrace_probe(u_int32_t id, int sysnum,
}
 
/* Process the probe using the converted argments. */
-   dtrace_probe(id, uargs[0], uargs[1], uargs[2], uargs[3], uargs[4]);
+   ((systrace_dtrace_probe)(dtrace_probe))(id, uargs[0], uargs[1],
+   uargs[2], uargs[3], uargs[4], uargs[5], uargs[6], uargs[7]);
 }
 
 #endif
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r262467 - head/bin/sh

2014-02-24 Thread Daichi GOTO
Author: daichi (ports committer)
Date: Tue Feb 25 03:05:43 2014
New Revision: 262467
URL: http://svnweb.freebsd.org/changeset/base/262467

Log:
  sh: Add -h option to SYNOPSIS
  
  Reviewed by:  jilles
  MFC after:soon

Modified:
  head/bin/sh/sh.1

Modified: head/bin/sh/sh.1
==
--- head/bin/sh/sh.1Tue Feb 25 02:58:11 2014(r262466)
+++ head/bin/sh/sh.1Tue Feb 25 03:05:43 2014(r262467)
@@ -40,14 +40,14 @@
 .Nd command interpreter (shell)
 .Sh SYNOPSIS
 .Nm
-.Op Fl /+abCEefIimnPpTuVvx
+.Op Fl /+abCEefhIimnPpTuVvx
 .Op Fl /+o Ar longname
 .Oo
 .Ar script
 .Op Ar arg ...
 .Oc
 .Nm
-.Op Fl /+abCEefIimnPpTuVvx
+.Op Fl /+abCEefhIimnPpTuVvx
 .Op Fl /+o Ar longname
 .Fl c Ar string
 .Oo
@@ -55,7 +55,7 @@
 .Op Ar arg ...
 .Oc
 .Nm
-.Op Fl /+abCEefIimnPpTuVvx
+.Op Fl /+abCEefhIimnPpTuVvx
 .Op Fl /+o Ar longname
 .Fl s
 .Op Ar arg ...
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r262467 - head/bin/sh

2014-02-24 Thread Bryan Drewery
On 2/24/2014 9:05 PM, Daichi GOTO wrote:
> Author: daichi (ports committer)
> Date: Tue Feb 25 03:05:43 2014
> New Revision: 262467
> URL: http://svnweb.freebsd.org/changeset/base/262467
> 
> Log:
>   sh: Add -h option to SYNOPSIS
>   
>   Reviewed by:jilles
>   MFC after:  soon
> 
> Modified:
>   head/bin/sh/sh.1
> 
> Modified: head/bin/sh/sh.1
> ==
> --- head/bin/sh/sh.1  Tue Feb 25 02:58:11 2014(r262466)
> +++ head/bin/sh/sh.1  Tue Feb 25 03:05:43 2014(r262467)
> @@ -40,14 +40,14 @@
>  .Nd command interpreter (shell)
>  .Sh SYNOPSIS
>  .Nm
> -.Op Fl /+abCEefIimnPpTuVvx
> +.Op Fl /+abCEefhIimnPpTuVvx
>  .Op Fl /+o Ar longname
>  .Oo
>  .Ar script
>  .Op Ar arg ...
>  .Oc
>  .Nm
> -.Op Fl /+abCEefIimnPpTuVvx
> +.Op Fl /+abCEefhIimnPpTuVvx
>  .Op Fl /+o Ar longname
>  .Fl c Ar string
>  .Oo
> @@ -55,7 +55,7 @@
>  .Op Ar arg ...
>  .Oc
>  .Nm
> -.Op Fl /+abCEefIimnPpTuVvx
> +.Op Fl /+abCEefhIimnPpTuVvx
>  .Op Fl /+o Ar longname
>  .Fl s
>  .Op Ar arg ...
> 

.Dd bump is needed too.

-- 
Regards,
Bryan Drewery



signature.asc
Description: OpenPGP digital signature


Re: svn commit: r262467 - head/bin/sh

2014-02-24 Thread Daichi GOTO
Hi Bryan,

Yeah you are right. But it seems not very important for a change 
like this for .Dd bump.  Even so should I update .Dd ?

2014/02/25 12:08、Bryan Drewery  :
> On 2/24/2014 9:05 PM, Daichi GOTO wrote:
>> Author: daichi (ports committer)
>> Date: Tue Feb 25 03:05:43 2014
>> New Revision: 262467
>> URL: http://svnweb.freebsd.org/changeset/base/262467
>> 
>> Log:
>>  sh: Add -h option to SYNOPSIS
>> 
>>  Reviewed by:jilles
>>  MFC after:  soon
>> 
>> Modified:
>>  head/bin/sh/sh.1
>> 
>> Modified: head/bin/sh/sh.1
>> ==
>> --- head/bin/sh/sh.1 Tue Feb 25 02:58:11 2014(r262466)
>> +++ head/bin/sh/sh.1 Tue Feb 25 03:05:43 2014(r262467)
>> @@ -40,14 +40,14 @@
>> .Nd command interpreter (shell)
>> .Sh SYNOPSIS
>> .Nm
>> -.Op Fl /+abCEefIimnPpTuVvx
>> +.Op Fl /+abCEefhIimnPpTuVvx
>> .Op Fl /+o Ar longname
>> .Oo
>> .Ar script
>> .Op Ar arg ...
>> .Oc
>> .Nm
>> -.Op Fl /+abCEefIimnPpTuVvx
>> +.Op Fl /+abCEefhIimnPpTuVvx
>> .Op Fl /+o Ar longname
>> .Fl c Ar string
>> .Oo
>> @@ -55,7 +55,7 @@
>> .Op Ar arg ...
>> .Oc
>> .Nm
>> -.Op Fl /+abCEefIimnPpTuVvx
>> +.Op Fl /+abCEefhIimnPpTuVvx
>> .Op Fl /+o Ar longname
>> .Fl s
>> .Op Ar arg ...
>> 
> 
> .Dd bump is needed too.
> 
> -- 
> Regards,
> Bryan Drewery
> 

--
Daichi GOTO
CEO | ONGS Inc.
81-42-316-7945 | dai...@ongs.co.jp | http://www.ongs.co.jp
LinkedIn: http://linkedin.com/in/daichigoto

___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Re: svn commit: r262282 - in head: contrib/dma contrib/dma/debian contrib/dma/debian/migrate contrib/dma/debian/source contrib/dma/test etc/mtree libexec libexec/dma share/mk tools/build/mk tools/buil

2014-02-24 Thread Peter Jeremy
On 2014-Feb-22 13:14:38 +0100, Baptiste Daroussin  wrote:
>On Sat, Feb 22, 2014 at 07:23:50PM +1100, Peter Jeremy wrote:
>> I'd also query the reason for including Debian-specific code in the
>> FreeBSD base.

>Where have you seen debian specific code?

/usr/src/contrib/dma/debian - as far as I can tell, this directory is
Debion specific.  I thought we stripped out irrelevant code from third
party imports but looking wider, there is similarly irrelevant code in
a variety of other contrib imports.  I'll withdraw that objection.

-- 
Peter Jeremy


pgpV04w7lNV4M.pgp
Description: PGP signature


svn commit: r262471 - head/sys/sparc64/sparc64

2014-02-24 Thread Dimitry Andric
Author: dim
Date: Tue Feb 25 07:28:51 2014
New Revision: 262471
URL: http://svnweb.freebsd.org/changeset/base/262471

Log:
  In sys/sparc64/sparc64/spitfire.c, prevent signed shift overflow by
  casting to the appropriate type.  (Note this fix cannot be done in
  sys/sparc64/sparc64/spitfire.c, since that file is also included by
  assembly source files.)
  
  Reviewed by:  marius
  MFC after:3 days

Modified:
  head/sys/sparc64/sparc64/spitfire.c

Modified: head/sys/sparc64/sparc64/spitfire.c
==
--- head/sys/sparc64/sparc64/spitfire.c Tue Feb 25 06:29:56 2014
(r262470)
+++ head/sys/sparc64/sparc64/spitfire.c Tue Feb 25 07:28:51 2014
(r262471)
@@ -130,7 +130,7 @@ spitfire_icache_page_inval(vm_paddr_t pa
: "=r" (tag) : "r" (addr), "n" (ASI_ICACHE_TAG));
if (((tag >> IC_VALID_SHIFT) & IC_VALID_MASK) == 0)
continue;
-   tag &= IC_TAG_MASK << IC_TAG_SHIFT;
+   tag &= (u_long)IC_TAG_MASK << IC_TAG_SHIFT;
if (tag == target) {
PMAP_STATS_INC(spitfire_icache_npage_inval_match);
stxa_sync(addr, ASI_ICACHE_TAG, tag);
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r262472 - head/sys/sparc64/pci

2014-02-24 Thread Dimitry Andric
Author: dim
Date: Tue Feb 25 07:33:28 2014
New Revision: 262472
URL: http://svnweb.freebsd.org/changeset/base/262472

Log:
  Make sure a for loop in fire_alloc_msix() terminates, by making the loop
  counter signed.
  
  Reviewed by:  marius
  MFC after:3 days

Modified:
  head/sys/sparc64/pci/fire.c

Modified: head/sys/sparc64/pci/fire.c
==
--- head/sys/sparc64/pci/fire.c Tue Feb 25 07:28:51 2014(r262471)
+++ head/sys/sparc64/pci/fire.c Tue Feb 25 07:33:28 2014(r262472)
@@ -1688,7 +1688,7 @@ static int
 fire_alloc_msix(device_t dev, device_t child, int *irq)
 {
struct fire_softc *sc;
-   u_int i, msiq;
+   int i, msiq;
 
sc = device_get_softc(dev);
if ((sc->sc_flags & FIRE_MSIX) == 0)
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r262282 - in head: contrib/dma contrib/dma/debian contrib/dma/debian/migrate contrib/dma/debian/source contrib/dma/test etc/mtree libexec libexec/dma share/mk tools/build/mk tools/buil

2014-02-24 Thread Baptiste Daroussin
On Tue, Feb 25, 2014 at 05:22:22PM +1100, Peter Jeremy wrote:
> On 2014-Feb-22 13:14:38 +0100, Baptiste Daroussin  wrote:
> >On Sat, Feb 22, 2014 at 07:23:50PM +1100, Peter Jeremy wrote:
> >> I'd also query the reason for including Debian-specific code in the
> >> FreeBSD base.
> 
> >Where have you seen debian specific code?
> 
> /usr/src/contrib/dma/debian - as far as I can tell, this directory is
> Debion specific.  I thought we stripped out irrelevant code from third
> party imports but looking wider, there is similarly irrelevant code in
> a variety of other contrib imports.  I'll withdraw that objection.
> 
> -- 
> Peter Jeremy

Have you already looked at how contrib works? who cares FYI you can also find
some win32 specific code in there, debian packaging code, rpm spec files etc.

regards,
Bapt


pgpvwQ64M00z1.pgp
Description: PGP signature