1. 13 Jan, 2017 1 commit
  2. 07 Dec, 2016 1 commit
  3. 21 Nov, 2016 1 commit
  4. 25 Oct, 2016 2 commits
  5. 30 Sep, 2016 1 commit
    • Adam Wujek's avatar
      arch-wrs: in shmem, use pointers to structs intead of void pointers · 18b0f27d
      Adam Wujek authored
      Commit based on the commit from wrs-switch-sw described below.
      Apply changes to the arch-wrs/wrs-startup.c to follow declaration change of
      wrs_shm_alloc.
      
      userspace/libwr: in shmem, use pointers to structs intead of void pointers
      
      In shared memory functions take as parameters pinters to structures instead
      of void pointers. By this compiler will warn when wrong type of pointer is
      passed. For example when pointer to the data in shmem is passed instead of
      pointer to the header.
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      18b0f27d
  6. 20 Sep, 2016 1 commit
    • Alessandro Rubini's avatar
      Support E2E build without P2P. Saves 5kB in wrpc-sw · 3542ae48
      Alessandro Rubini authored
      Here in ppsi,
      
        ./MAKEALL wrpc_defconfig wrpc_pdelay_defconfig
      
      shows a very small difference, but most pdelay code is then
      discarded by the wrpc-sw link time, due to --gc-sections.
      This is the result:
      
         laptopo% ./MAKEALL spec_defconfig spec_pdelay_defconfig
         ##### Building with 'spec_defconfig'
         /opt/lm32-gcc-4.5.3/bin/lm32-elf-ar: creating libsdbfs.a
            text    data     bss     dec     hex filename
           87688    3492    6352   97532   17cfc wrc.elf
         ##### Building with 'spec_pdelay_defconfig'
         /opt/lm32-gcc-4.5.3/bin/lm32-elf-ar: creating libsdbfs.a
            text    data     bss     dec     hex filename
           93140    3492    6360  102992   19250 wrc.elf
      
      What is missing now is the run-time choice between e2e and p2p. Later....
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      3542ae48
  7. 16 May, 2016 2 commits
  8. 12 May, 2016 1 commit
  9. 01 Sep, 2015 1 commit
    • Alessandro Rubini's avatar
      general: cleanup prototypes · 1acf50d1
      Alessandro Rubini authored
      This adds -Wstrict-prototypes -Wmissing-prototypes and takes actions
      accordingly.
      
      Some of the solutions are ugly, especially in the bare architectures,
      but I prefer to be warned if I take dangerous paths wrt prototypes while
      writing further code.
      
      I'm upset by those two not being included in -Wall, as they used to.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      1acf50d1
  10. 06 Jul, 2015 2 commits
  11. 01 Jul, 2015 1 commit
  12. 18 Jun, 2015 1 commit
  13. 26 Feb, 2015 1 commit
  14. 11 Feb, 2015 2 commits
  15. 05 Feb, 2015 1 commit
  16. 05 Dec, 2014 2 commits
  17. 04 Dec, 2014 2 commits
  18. 27 Nov, 2014 1 commit
  19. 11 Nov, 2014 2 commits
  20. 07 Nov, 2014 2 commits
  21. 22 Sep, 2014 1 commit
  22. 21 Jul, 2014 1 commit
  23. 21 Mar, 2014 3 commits
    • Pietro Fezzardi's avatar
      config: removed global variables current_ppg and current_ppi · 899ab83e
      Pietro Fezzardi authored
      New prototype for cfg_handler to remove the global variable *current_ppg.
      The current ppg is now passed as argument to the cfg handler as follows:
      
      typedef int (*cfg_handler)(int lineno, struct pp_globals *ppg,
      				union pp_cfg_arg *arg);
      
      New variable added in include/ppsi/pp-instance.h:
      
      struct pp_globals_cfg {
      	int cfg_items;
      	int cur_ppi_n;
      };
      
      Now struct pp_globals has a new field:
      
      struct pp_globals {
      	[...]
      	struct pp_globals_cfg cfg;
      	[...]
      };
      
      The field cfg_items has been moved from pp_globals
      to pp_globals_cfg. The configuration routine uses the field
      cur_ppi_n inside pp_globals_cfg to store the current ppi being
      configured. So neither the global variable *current_ppi is needed
      anymore.
      
      The helper inline function CUR_PPI has been defined to make
      accesses to current ppi more readable.
      899ab83e
    • Grzegorz Daniluk's avatar
      arch-wrs: try connecting to HAL multiple times · 6b84951e
      Grzegorz Daniluk authored
      As it was done also in ptp-noposix. We need to try multiple times
      because sometimes it takes time for HAL to become ready (especially in
      the GrandMaster mode when it has to lock SoftPLL to an ext clock).
      6b84951e
    • Pietro Fezzardi's avatar
      use INST() to access instances everywhere · 0a8e929e
      Pietro Fezzardi authored
      given that INTS() is defined as inline it should not affect
      the performance even in time-critical cases.
      0a8e929e
  24. 02 Mar, 2014 2 commits
  25. 04 Nov, 2013 4 commits
    • Alessandro Rubini's avatar
      white rabbit: fold enable_timing_output in operations · 561ae15f
      Alessandro Rubini authored
      This is the last bit of the overhaul made by the previous commit,
      and has no technical effect. (In a perfect world, the previous commit
      would have been one per function, to easily find errors, but I had not
      enough time; this is different because it was a two-level call).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      561ae15f
    • Alessandro Rubini's avatar
      white rabbit: use wr_operations, not aliases · 48b25f3c
      Alessandro Rubini authored
      This is a massive change, but one that we needed since time 0.
      Aliases were a bad choice, while use of an operation structure shows
      better the symmetry between the two white rabbit implementations.
      But, mainly, maintainance is easier.
      
      I really needed this because I need to change one prototype, to
      add support for wrpc acting as grandmaster.
      
      There are still some asymmetries to be fixed, but the thing is
      acceptable at this point. While I was at it, I removed some
      WR_DSPORT(ppi) using a local pointer "wrp".
      
      The code after this commit is shorter by a dozen bytes or so,
      both on wrpc and wrs.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      48b25f3c
    • Alessandro Rubini's avatar
      68ad6479
    • Alessandro Rubini's avatar
      general: define CLASS names and rename a global structure · 5f1e3cb3
      Alessandro Rubini authored
      This defines PP_CLASS_SLAVE_ONLY and similar names, and uses them properly.
      
      Also, the global "struct default_rt_opts" was not following the
      conventions about naming, so rename it to be a "pp" thing.  Moreover,
      since we put all globals in ppg and we have ppg->rt_opts, try to use
      that instead of a separate global.  Unfortunately the initialization
      sequence is not well ordered, so __pp_default_rt_opts still remains
      as a global variable, double-underscored to show it's not meant to be used.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      5f1e3cb3
  26. 16 Oct, 2013 1 commit