<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Chris,<br>
    <br>
    I added this patch to rtems-tools. Attached is a patch to<br>
    RSB to use it for the sparc tools. If this looks OK, should<br>
    I make a similar update to all applicable 4.11 targets?<br>
    <br>
    --joel<br>
    <div class="moz-forward-container"><br>
      <br>
      -------- Original Message --------
      <table class="moz-email-headers-table" cellpadding="0"
        cellspacing="0" border="0">
        <tbody>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject:
            </th>
            <td>[PATCH] Add const qualifier in <sys/cpuset.h></td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
            <td>Mon, 14 Apr 2014 08:43:46 -0500</td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
            <td>Sebastian Huber
              <a class="moz-txt-link-rfc2396E" href="mailto:sebastian.huber@embedded-brains.de"><sebastian.huber@embedded-brains.de></a></td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
            <td><a class="moz-txt-link-abbreviated" href="mailto:newlib@sourceware.org">newlib@sourceware.org</a> <a class="moz-txt-link-rfc2396E" href="mailto:newlib@sourceware.org"><newlib@sourceware.org></a></td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">CC: </th>
            <td>Sebastian Huber
              <a class="moz-txt-link-rfc2396E" href="mailto:sebastian.huber@embedded-brains.de"><sebastian.huber@embedded-brains.de></a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <pre>newlib/ChangeLog
2014-04-14  Sebastian Huber  <a class="moz-txt-link-rfc2396E" href="mailto:sebastian.huber@embedded-brains.de"><sebastian.huber@embedded-brains.de></a>

        * libc/sys/rtems/sys/cpuset.h (CPU_SET_S): Add const qualifier.
        (CPU_SET): Likewise.
---
 newlib/libc/sys/rtems/sys/cpuset.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/newlib/libc/sys/rtems/sys/cpuset.h b/newlib/libc/sys/rtems/sys/cpuset.h
index 2818677..8fae475 100644
--- a/newlib/libc/sys/rtems/sys/cpuset.h
+++ b/newlib/libc/sys/rtems/sys/cpuset.h
@@ -153,14 +153,14 @@ static __inline void CPU_CLR(int cpu, cpu_set_t *set)
   CPU_CLR_S(cpu, sizeof(*set), set);
 }
 
-static __inline int CPU_ISSET_S(int cpu, size_t setsize, cpu_set_t *set)
+static __inline int CPU_ISSET_S(int cpu, size_t setsize, const cpu_set_t *set)
 {
   const cpu_set_word_t *w = &set->__bits[0];
 
   return ((w[__cpuset_index(cpu)] & __cpuset_mask(cpu)) != 0);
 }
 
-static __inline int CPU_ISSET(int cpu, cpu_set_t *set)
+static __inline int CPU_ISSET(int cpu, const cpu_set_t *set)
 {
   return CPU_ISSET_S(cpu, sizeof(*set), set);
 }
-- 
1.7.7

</pre>
      <br>
    </div>
    <br>
  </body>
</html>