enable sparc's daily ci and eliminate some warnings

This commit is contained in:
zouboan
2022-02-03 14:36:42 +08:00
committed by Abdelatif Guettouche
parent 09d57de7ec
commit ad3f16358e
8 changed files with 28 additions and 16 deletions
+2
View File
@@ -0,0 +1,2 @@
/board
/chip
+13 -13
View File
@@ -31,89 +31,89 @@
#define PRId8 "d" #define PRId8 "d"
#define PRId16 "d" #define PRId16 "d"
#define PRId32 "ld" #define PRId32 "d"
#define PRId64 "lld" #define PRId64 "lld"
#define PRIdPTR "d" #define PRIdPTR "d"
#define PRIi8 "i" #define PRIi8 "i"
#define PRIi16 "i" #define PRIi16 "i"
#define PRIi32 "li" #define PRIi32 "i"
#define PRIi64 "lli" #define PRIi64 "lli"
#define PRIiPTR "i" #define PRIiPTR "i"
#define PRIo8 "o" #define PRIo8 "o"
#define PRIo16 "o" #define PRIo16 "o"
#define PRIo32 "lo" #define PRIo32 "o"
#define PRIo64 "llo" #define PRIo64 "llo"
#define PRIoPTR "o" #define PRIoPTR "o"
#define PRIu8 "u" #define PRIu8 "u"
#define PRIu16 "u" #define PRIu16 "u"
#define PRIu32 "lu" #define PRIu32 "u"
#define PRIu64 "llu" #define PRIu64 "llu"
#define PRIuPTR "u" #define PRIuPTR "u"
#define PRIx8 "x" #define PRIx8 "x"
#define PRIx16 "x" #define PRIx16 "x"
#define PRIx32 "lx" #define PRIx32 "x"
#define PRIx64 "llx" #define PRIx64 "llx"
#define PRIxPTR "x" #define PRIxPTR "x"
#define PRIX8 "X" #define PRIX8 "X"
#define PRIX16 "X" #define PRIX16 "X"
#define PRIX32 "lX" #define PRIX32 "X"
#define PRIX64 "llX" #define PRIX64 "llX"
#define PRIXPTR "X" #define PRIXPTR "X"
#define SCNd8 "hhd" #define SCNd8 "hhd"
#define SCNd16 "hd" #define SCNd16 "hd"
#define SCNd32 "ld" #define SCNd32 "d"
#define SCNd64 "lld" #define SCNd64 "lld"
#define SCNdPTR "d" #define SCNdPTR "d"
#define SCNi8 "hhi" #define SCNi8 "hhi"
#define SCNi16 "hi" #define SCNi16 "hi"
#define SCNi32 "li" #define SCNi32 "i"
#define SCNi64 "lli" #define SCNi64 "lli"
#define SCNiPTR "i" #define SCNiPTR "i"
#define SCNo8 "hho" #define SCNo8 "hho"
#define SCNo16 "ho" #define SCNo16 "ho"
#define SCNo32 "lo" #define SCNo32 "o"
#define SCNo64 "llo" #define SCNo64 "llo"
#define SCNoPTR "o" #define SCNoPTR "o"
#define SCNu8 "hhu" #define SCNu8 "hhu"
#define SCNu16 "hu" #define SCNu16 "hu"
#define SCNu32 "lu" #define SCNu32 "u"
#define SCNu64 "llu" #define SCNu64 "llu"
#define SCNuPTR "u" #define SCNuPTR "u"
#define SCNx8 "hhx" #define SCNx8 "hhx"
#define SCNx16 "hx" #define SCNx16 "hx"
#define SCNx32 "lx" #define SCNx32 "x"
#define SCNx64 "llx" #define SCNx64 "llx"
#define SCNxPTR "x" #define SCNxPTR "x"
#define INT8_C(x) x #define INT8_C(x) x
#define INT16_C(x) x #define INT16_C(x) x
#define INT32_C(x) x ## l #define INT32_C(x) x
#define INT64_C(x) x ## ll #define INT64_C(x) x ## ll
#define UINT8_C(x) x #define UINT8_C(x) x
#define UINT16_C(x) x #define UINT16_C(x) x
#define UINT32_C(x) x ## ul #define UINT32_C(x) x ## u
#define UINT64_C(x) x ## ull #define UINT64_C(x) x ## ull
#endif /* __ARCH_SPARC_INCLUDE_INTTYPES_H */ #endif /* __ARCH_SPARC_INCLUDE_INTTYPES_H */
+3
View File
@@ -0,0 +1,3 @@
/locked.r
/board
/chip
+1 -1
View File
@@ -231,7 +231,7 @@ int bm3803_freerun_counter(FAR struct bm3803_freerun_s *freerun,
ts->tv_nsec = (usec - (sec * USEC_PER_SEC)) * NSEC_PER_USEC; ts->tv_nsec = (usec - (sec * USEC_PER_SEC)) * NSEC_PER_USEC;
tmrinfo("usec=%llu ts=(%u, %lu)\n", tmrinfo("usec=%llu ts=(%u, %lu)\n",
usec, (unsigned long)ts->tv_sec, (unsigned long)ts->tv_nsec); usec, ts->tv_sec, (unsigned long)ts->tv_nsec);
return OK; return OK;
} }
+1 -1
View File
@@ -159,7 +159,7 @@ static int bm3803_start(FAR struct watchdog_lowerhalf_s *lower)
uint32_t val = bm3803_getreg(BM3803_TIM1_BASE + BM3803_TIM_CR_OFFSET); uint32_t val = bm3803_getreg(BM3803_TIM1_BASE + BM3803_TIM_CR_OFFSET);
val |= TIMER_WDG; val |= TIMER_WDG;
wdinfo("Entry: started=%d\n"); wdinfo("Entry: started\n");
DEBUGASSERT(priv); DEBUGASSERT(priv);
/* Have we already been started? */ /* Have we already been started? */
+4
View File
@@ -62,4 +62,8 @@ void up_systemreset(void)
asm("jmp %l4"); asm("jmp %l4");
asm("nop"); asm("nop");
asm("nop"); asm("nop");
/* Wait for the reset */
for (; ; );
} }
@@ -118,7 +118,6 @@ CONFIG_SCHED_LPWORK=y
CONFIG_SCHED_LPWORKPRIORITY=120 CONFIG_SCHED_LPWORKPRIORITY=120
CONFIG_SCHED_TICKLESS=y CONFIG_SCHED_TICKLESS=y
CONFIG_SCHED_WAITPID=y CONFIG_SCHED_WAITPID=y
CONFIG_SDCLONE_DISABLE=y
CONFIG_SIG_PREALLOC_IRQ_ACTIONS=4 CONFIG_SIG_PREALLOC_IRQ_ACTIONS=4
CONFIG_SPECIFIC_DRIVERS=y CONFIG_SPECIFIC_DRIVERS=y
CONFIG_STACK_COLORATION=y CONFIG_STACK_COLORATION=y
+4
View File
@@ -16,3 +16,7 @@
# x86_64-elf-gcc from homebrew doesn't seem to # x86_64-elf-gcc from homebrew doesn't seem to
# provide __udivdi3 etc for -m32 # provide __udivdi3 etc for -m32
/x86_64 /x86_64
# Sparc-gaisler-elf toolchain doesn't provide macOS binaries
/sparc
-xx3823:nsh