1. 20 Sep, 2016 30 commits
  2. 14 Sep, 2016 4 commits
    • Adam Wujek's avatar
      Merge branch 'adam-shmem' · 96a78e15
      Adam Wujek authored
      Uplift shmem from wr-switch-sw repo.
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      96a78e15
    • Adam Wujek's avatar
      arch-wrs: check shmem consistency in wrs_shm_get_and_check · d5e619c5
      Adam Wujek authored
      Commit based on the commit from wrs-switch-sw repo described below. It does
      not have impact on PPSI, just for consistency.
      
      userspace/libwr: check shmem consistency in wrs_shm_get_and_check
      
      Check the consistency of shmem during opening with wrs_shm_get_and_check.
      It was possible that sequence number was increased during the opening, but it
      was interpreted as version error.
      
      Add defines describing different return errors.
      
      This change is backward compatible.
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      d5e619c5
    • Adam Wujek's avatar
      arch-wrs: improve locking of shmem · 15076cb6
      Adam Wujek authored
      Commit based on the commit from wrs-switch-sw described below.
      
      userspace/libwr: improve locking of shmem
      
      Keep explicitly lock bit in the sequence variable as a LSB bit.
      This solution is backward compatible. The difference is only when shmem is
      lock twice. Before it was treated as unlocked, now still as a lock.
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      15076cb6
    • Adam Wujek's avatar
      arch-wrs: Print error message on multiple shmem locks · 0f620301
      Adam Wujek authored
      Commit based on the commit mentioned below from wr-switch-sw repo.
      It required to add a header wrs-msg.h to support "pr_error" function.
      "pr_error" will be printed as regular error, all other pr_* are ignored.
      
      userspace/libwr: Print error message on multiple shmem locks
      
      Print error message when shmem is locked or unlocked multiple times.
      To be precise it will print error only on even locks or unlocks.
      
      Move the increment of sequence before checking the flags to simplify further
      if-conditions.
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      0f620301
  3. 25 Aug, 2016 1 commit
  4. 22 Aug, 2016 1 commit
  5. 16 Aug, 2016 2 commits
  6. 25 Jul, 2016 2 commits