Skip to content
Snippets Groups Projects
  1. Feb 23, 2017
  2. Jun 10, 2016
  3. May 18, 2016
  4. Apr 04, 2016
    • Alessandro Rubini's avatar
      general: use an ELF section for tasks · d9d20c8b
      Alessandro Rubini authored
      
      This allows several functions to be static in the files where they
      are defined. See temperature.c for an example.
      
      But mainly, the idea is allowing ease addition of features (likely
      Kconfig'd ones) for specific WR users, without any modification to the
      main function and other generic code.  This will happen soon for snmp,
      for example.
      
      We may push this a little further, by moving all shell stuff into
      shell.c, the ptp task within ppsi itself, and so on. But now my time
      is over.
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      d9d20c8b
    • Alessandro Rubini's avatar
      vlan: add one VLAN in Kconfig as an option · a444be3e
      Alessandro Rubini authored
      
      WARNING: wr_switch_defconfig doesn't build, this is fixed in next commit
      
      Unfortunately this commit makes the internal communication between
      minic and lan asymmetric: on receive the tag is discarded (and the
      longer header falls into the payload) while on transmit it must be
      provided by lan.c.
      
      The reason is that on receive we can trim 4 bytes from the payload,
      but on send we can't add 4 bytes without a memmove.  The functions
      receive pointers to two different header structures, so hopefully
      user errors will be signalled by the compiler.
      
      Still, users interact with net.c, which hides vlan completely from
      them.
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      a444be3e
  5. Feb 16, 2016
  6. Jan 20, 2016
  7. Oct 30, 2015
    • Alessandro Rubini's avatar
      general: add missing copyright notes. · 5e844431
      Alessandro Rubini authored
      
      This commit fixes all copyright notes, using "git blame" as a
      reference.  For simple files I just added a 2-lines boilerplate about
      being WR and GPL.
      
      Some parts I left untouched:
      
        trivial-init and related files (unclear to me what this is,
        and pf-microcode.h is magic binary pfilter values).
      
        tools/lm32-etheruart: I don't know what this is and who the author is
      
        libsdbfs: this comes from another repo and I'd better not change it
      
        sfp_lib.h and hal_shmem.h: I lost track about the origin of this,
        among the several packages.
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      5e844431
  8. Oct 27, 2015
  9. Oct 15, 2015
  10. Jan 09, 2015
  11. Nov 18, 2014
  12. Sep 08, 2014
  13. Aug 05, 2014
  14. Feb 11, 2014
  15. Feb 10, 2014
  16. Oct 17, 2013
  17. May 23, 2013
  18. May 14, 2013
  19. May 06, 2013
    • Alessandro Rubini's avatar
      wrc.h: define printf as pp_printf · 0bcbe429
      Alessandro Rubini authored
      
      Sometimes a printf happens in the code, and it eventually prevents the
      wrc to link because it pick up the whole of libc.  While ptp-noposix
      already has a definition of printf to mprintf, we don't have the
      same for ppsi, so let's add it.
      
      Currently, rxts_calibrator.c includes calls to printf, and didn't
      build with CONFIG_PPSI until this commit.
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      0bcbe429
  20. Mar 29, 2013
    • Alessandro Rubini's avatar
      trivial: headers: include two files more · ae19fd81
      Alessandro Rubini authored
      
      1- wrc.h now includes syscon.h. This is a prerequisite to a non-inline
      implementation of usleep (the current inline one is just a random
      loop, 10x wrong on the spec). Without this we should modify sockitowm
      where it calls usleep, but I'd better not touch sockitowm.
      
      2- syscon.h includes <sys/types.h>.  This is needed to have
      useconds_t.  I'd better have usleep take unsigned long, but some file
      already includes sys/types.h, so our prototype must match that one.
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      ae19fd81
  21. Mar 22, 2013
  22. Mar 18, 2013
    • Alessandro Rubini's avatar
      kill mprintf, since pp_printf is better and solid · 634b29f2
      Alessandro Rubini authored and Grzegorz Daniluk's avatar Grzegorz Daniluk committed
      
      mprintf is of uncertain copyright status, and that's why
      we added pp_printf (actually, that's why I picked pp_printf
      fro ptp-proposal and made it a standalone thing).
      
      Now that everyone involved confirms pp_printf is well tested,
      let's remove mprintf.  We still accept mprintf in the callers,
      because the name is used by our ptp-noposix submodule, and I'm
      sure people has it in their fingers and it will appear again.
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      634b29f2
  23. Feb 19, 2013
  24. Feb 12, 2013
  25. Nov 01, 2012