Commit a0a2616e authored by Ben Avison's avatar Ben Avison
Browse files

Enable cross-compilation, enable CI

parent a8d592ef
Pipeline #1202 passed with stages
in 3 minutes and 39 seconds
/Makefile.d
/o/
/objs/
/oz/
include:
- project: 'Support/CI'
file: '/SyncLib.yml'
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
COMPONENT = SyncLib COMPONENT = SyncLib
HDRS = atomic barrier cpuevent mutex spin spinrw synclib HDRS = atomic barrier cpuevent mutex spin spinrw synclib
OBJS = atomic barrier cpuevent init mutex spin spinrw OBJS = atomic barrier cpuevent init mutex spin spinrw
SOURCES_TO_SYMLINK = $(wildcard hdr/*)
include CLibrary include CLibrary
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* *
*/ */
#define Module_MajorVersion_CMHG 0.05 #define Module_MajorVersion_CMHG 0.05
#define Module_MinorVersion_CMHG #define Module_MinorVersion_CMHG
#define Module_Date_CMHG 07 May 2018 #define Module_Date_CMHG 07 May 2018
#define Module_MajorVersion "0.05" #define Module_MajorVersion "0.05"
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include "SyncLib/synclib.h" #include "SyncLib/synclib.h"
// cppcheck-suppress unusedFunction
bool mutex_try_lock(mutex_t *mutex) bool mutex_try_lock(mutex_t *mutex)
{ {
if (atomic_update(MUTEX_LOCKED, (uint32_t *) mutex) == MUTEX_LOCKED) if (atomic_update(MUTEX_LOCKED, (uint32_t *) mutex) == MUTEX_LOCKED)
...@@ -44,6 +45,7 @@ bool mutex_try_lock(mutex_t *mutex) ...@@ -44,6 +45,7 @@ bool mutex_try_lock(mutex_t *mutex)
return true; return true;
} }
// cppcheck-suppress unusedFunction
void mutex_lock(mutex_t *mutex) void mutex_lock(mutex_t *mutex)
{ {
while (atomic_update(MUTEX_LOCKED, (uint32_t *) mutex) == MUTEX_LOCKED) while (atomic_update(MUTEX_LOCKED, (uint32_t *) mutex) == MUTEX_LOCKED)
...@@ -51,6 +53,7 @@ void mutex_lock(mutex_t *mutex) ...@@ -51,6 +53,7 @@ void mutex_lock(mutex_t *mutex)
barrier(); barrier();
} }
// cppcheck-suppress unusedFunction
void mutex_sleep_lock(mutex_t *mutex) void mutex_sleep_lock(mutex_t *mutex)
{ {
while (atomic_update(MUTEX_LOCKED, (uint32_t *) mutex) == MUTEX_LOCKED) while (atomic_update(MUTEX_LOCKED, (uint32_t *) mutex) == MUTEX_LOCKED)
...@@ -58,6 +61,7 @@ void mutex_sleep_lock(mutex_t *mutex) ...@@ -58,6 +61,7 @@ void mutex_sleep_lock(mutex_t *mutex)
barrier(); barrier();
} }
// cppcheck-suppress unusedFunction
void mutex_unlock(mutex_t *mutex) void mutex_unlock(mutex_t *mutex)
{ {
barrier(); barrier();
......
...@@ -30,8 +30,8 @@ ...@@ -30,8 +30,8 @@
GET System GET System
GET CPU/Arch GET CPU/Arch
GET APCS/$APCS GET APCS/$APCS
GET hdr/init GET ./init.hdr
GET hdr/vars GET ./vars.hdr
Strex_Succeeded * 0 Strex_Succeeded * 0
Strex_Failed * 1 Strex_Failed * 1
......
...@@ -30,8 +30,8 @@ ...@@ -30,8 +30,8 @@
GET System GET System
GET CPU/Arch GET CPU/Arch
GET APCS/$APCS GET APCS/$APCS
GET hdr/init GET ./init.hdr
GET hdr/vars GET ./vars.hdr
AREA |Asm$$Code|, CODE, READONLY AREA |Asm$$Code|, CODE, READONLY
......
...@@ -30,8 +30,8 @@ ...@@ -30,8 +30,8 @@
GET System GET System
GET CPU/Arch GET CPU/Arch
GET APCS/$APCS GET APCS/$APCS
GET hdr/init GET ./init.hdr
GET hdr/vars GET ./vars.hdr
AREA |Asm$$Code|, CODE, READONLY AREA |Asm$$Code|, CODE, READONLY
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
GET System GET System
GET CPU/Arch GET CPU/Arch
GET APCS/$APCS GET APCS/$APCS
GET hdr/init GET ./init.hdr
AREA |Asm$$Code|, CODE, READONLY AREA |Asm$$Code|, CODE, READONLY
......
...@@ -30,10 +30,10 @@ ...@@ -30,10 +30,10 @@
GET System GET System
GET CPU/Arch GET CPU/Arch
GET APCS/$APCS GET APCS/$APCS
GET hdr/barrier GET ./barrier.hdr
GET hdr/cpuevent GET ./cpuevent.hdr
GET hdr/init GET ./init.hdr
GET hdr/vars GET ./vars.hdr
; Layout of spinlock_t ; Layout of spinlock_t
......
...@@ -30,10 +30,10 @@ ...@@ -30,10 +30,10 @@
GET System GET System
GET CPU/Arch GET CPU/Arch
GET APCS/$APCS GET APCS/$APCS
GET hdr/barrier GET ./barrier.hdr
GET hdr/cpuevent GET ./cpuevent.hdr
GET hdr/init GET ./init.hdr
GET hdr/vars GET ./vars.hdr
; Layout of spinrwlock_t ; Layout of spinrwlock_t
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment