arch/ceva: Remove FAR from chip folder

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-04-17 20:37:48 +08:00
committed by Petro Karashchenko
parent 6bc61b5752
commit e923875c1b
19 changed files with 37 additions and 37 deletions
+2 -2
View File
@@ -89,7 +89,7 @@
#ifndef CONFIG_BUILD_FLAT #ifndef CONFIG_BUILD_FLAT
/* SYS call 4: /* SYS call 4:
* *
* void up_task_start(main_t taskentry, int argc, FAR char *argv[]) * void up_task_start(main_t taskentry, int argc, char *argv[])
* noreturn_function; * noreturn_function;
*/ */
@@ -106,7 +106,7 @@
/* SYS call 6: /* SYS call 6:
* *
* void signal_handler(_sa_sigaction_t sighand, int signo, * void signal_handler(_sa_sigaction_t sighand, int signo,
* FAR siginfo_t *info, FAR void *ucontext); * siginfo_t *info, void *ucontext);
*/ */
#define SYS_signal_handler 0x06 #define SYS_signal_handler 0x06
+1 -1
View File
@@ -131,7 +131,7 @@ struct xcptcontext
* are pending signals to be processed. * are pending signals to be processed.
*/ */
FAR void *sigdeliver; /* Actual type is sig_deliver_t */ void *sigdeliver; /* Actual type is sig_deliver_t */
/* These are saved copies of the context used during /* These are saved copies of the context used during
* signal processing. * signal processing.
+1 -1
View File
@@ -134,7 +134,7 @@ struct xcptcontext
* are pending signals to be processed. * are pending signals to be processed.
*/ */
FAR void *sigdeliver; /* Actual type is sig_deliver_t */ void *sigdeliver; /* Actual type is sig_deliver_t */
/* These are saved copies of the context used during /* These are saved copies of the context used during
* signal processing. * signal processing.
+1 -1
View File
@@ -95,7 +95,7 @@ static inline void up_dmb(void)
* *
****************************************************************************/ ****************************************************************************/
static inline spinlock_t up_testset(volatile FAR spinlock_t *lock) static inline spinlock_t up_testset(volatile spinlock_t *lock)
{ {
irqstate_t flags; irqstate_t flags;
spinlock_t old; spinlock_t old;
+3 -3
View File
@@ -87,7 +87,7 @@ static void up_stackdump(uint32_t sp, uint32_t stack_base)
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_STACK_COLORATION #ifdef CONFIG_STACK_COLORATION
static void up_taskdump(FAR struct tcb_s *tcb, FAR void *arg) static void up_taskdump(struct tcb_s *tcb, void *arg)
{ {
/* Dump interesting properties of this task */ /* Dump interesting properties of this task */
@@ -156,7 +156,7 @@ static inline void up_registerdump(void)
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_ARCH_USBDUMP #ifdef CONFIG_ARCH_USBDUMP
static int usbtrace_syslog(FAR const char *fmt, ...) static int usbtrace_syslog(const char *fmt, ...)
{ {
va_list ap; va_list ap;
@@ -168,7 +168,7 @@ static int usbtrace_syslog(FAR const char *fmt, ...)
return 0; return 0;
} }
static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg) static int assert_tracecallback(struct usbtrace_s *trace, void *arg)
{ {
usbtrace_trprintf(usbtrace_syslog, trace->event, trace->value); usbtrace_trprintf(usbtrace_syslog, trace->event, trace->value);
return 0; return 0;
+5 -5
View File
@@ -59,7 +59,7 @@ static size_t do_stackcheck(uintptr_t alloc, size_t size);
static size_t do_stackcheck(uintptr_t alloc, size_t size) static size_t do_stackcheck(uintptr_t alloc, size_t size)
{ {
FAR uint32_t *ptr; uint32_t *ptr;
size_t nwords; size_t nwords;
size_t mark; size_t mark;
@@ -71,7 +71,7 @@ static size_t do_stackcheck(uintptr_t alloc, size_t size)
* that does not have the magic value is the high water mark. * that does not have the magic value is the high water mark.
*/ */
for (ptr = (FAR uint32_t *)alloc, mark = nwords; for (ptr = (uint32_t *)alloc, mark = nwords;
*ptr == STACK_COLOR && mark > 0; *ptr == STACK_COLOR && mark > 0;
ptr++, mark--); ptr++, mark--);
@@ -91,7 +91,7 @@ static size_t do_stackcheck(uintptr_t alloc, size_t size)
int i; int i;
int j; int j;
ptr = (FAR uint32_t *)start; ptr = (uint32_t *)start;
for (i = 0; i < nwords; i += 64) for (i = 0; i < nwords; i += 64)
{ {
for (j = 0; j < 64; j++) for (j = 0; j < 64; j++)
@@ -139,13 +139,13 @@ static size_t do_stackcheck(uintptr_t alloc, size_t size)
* *
****************************************************************************/ ****************************************************************************/
size_t up_check_tcbstack(FAR struct tcb_s *tcb) size_t up_check_tcbstack(struct tcb_s *tcb)
{ {
return do_stackcheck((uintptr_t)tcb->stack_alloc_ptr, return do_stackcheck((uintptr_t)tcb->stack_alloc_ptr,
tcb->adj_stack_size); tcb->adj_stack_size);
} }
ssize_t up_check_tcbstack_remain(FAR struct tcb_s *tcb) ssize_t up_check_tcbstack_remain(struct tcb_s *tcb)
{ {
return tcb->adj_stack_size - up_check_tcbstack(tcb); return tcb->adj_stack_size - up_check_tcbstack(tcb);
} }
+2 -2
View File
@@ -89,7 +89,7 @@
* *
****************************************************************************/ ****************************************************************************/
int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) int up_create_stack(struct tcb_s *tcb, size_t stack_size, uint8_t ttype)
{ {
#ifdef CONFIG_TLS #ifdef CONFIG_TLS
/* The allocated stack size must not exceed the maximum possible for the /* The allocated stack size must not exceed the maximum possible for the
@@ -228,7 +228,7 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype)
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_STACK_COLORATION #ifdef CONFIG_STACK_COLORATION
void up_stack_color(FAR void *stackbase, size_t nbytes) void up_stack_color(void *stackbase, size_t nbytes)
{ {
uint32_t *stkptr; uint32_t *stkptr;
uintptr_t stkend; uintptr_t stkend;
+2 -2
View File
@@ -171,7 +171,7 @@ void *g_idle_topstack = _START_HEAP;
* *
****************************************************************************/ ****************************************************************************/
void up_allocate_heap(FAR void **heap_start, size_t *heap_size) void up_allocate_heap(void **heap_start, size_t *heap_size)
{ {
int i; int i;
@@ -240,7 +240,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_MM_KERNEL_HEAP #ifdef CONFIG_MM_KERNEL_HEAP
void up_allocate_kheap(FAR void **heap_start, size_t *heap_size) void up_allocate_kheap(void **heap_start, size_t *heap_size)
{ {
int i; int i;
+3 -3
View File
@@ -266,8 +266,8 @@ uint32_t *up_doirq(int irq, uint32_t *regs);
/* Exception Handlers */ /* Exception Handlers */
int up_svcall(int irq, FAR void *context, FAR void *arg); int up_svcall(int irq, void *context, void *arg);
int up_hardfault(int irq, FAR void *context, FAR void *arg); int up_hardfault(int irq, void *context, void *arg);
void up_svcall_handler(void); void up_svcall_handler(void);
@@ -325,7 +325,7 @@ void up_usbuninitialize(void);
#endif #endif
#ifdef CONFIG_STACK_COLORATION #ifdef CONFIG_STACK_COLORATION
void up_stack_color(FAR void *stackbase, size_t nbytes); void up_stack_color(void *stackbase, size_t nbytes);
#endif #endif
#undef EXTERN #undef EXTERN
+1 -1
View File
@@ -79,7 +79,7 @@
* *
****************************************************************************/ ****************************************************************************/
void up_release_stack(FAR struct tcb_s *dtcb, uint8_t ttype) void up_release_stack(struct tcb_s *dtcb, uint8_t ttype)
{ {
/* Is there a stack allocated? */ /* Is there a stack allocated? */
+2 -2
View File
@@ -141,7 +141,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
/* Save the current register context location */ /* Save the current register context location */
tcb->xcp.saved_regs = g_current_regs[cpu]; tcb->xcp.saved_regs = g_current_regs[cpu];
tcb->xcp.sigdeliver = (FAR void *)sigdeliver; tcb->xcp.sigdeliver = (void *)sigdeliver;
/* Duplicate the register context. These will be /* Duplicate the register context. These will be
* restored by the signal trampoline after the signal has been * restored by the signal trampoline after the signal has been
@@ -186,7 +186,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
/* Save the current register context location */ /* Save the current register context location */
tcb->xcp.saved_regs = tcb->xcp.regs; tcb->xcp.saved_regs = tcb->xcp.regs;
tcb->xcp.sigdeliver = (FAR void *)sigdeliver; tcb->xcp.sigdeliver = (void *)sigdeliver;
/* Duplicate the register context. These will be restored /* Duplicate the register context. These will be restored
* by the signal trampoline after the signal has been delivered. * by the signal trampoline after the signal has been delivered.
+1 -1
View File
@@ -64,7 +64,7 @@
****************************************************************************/ ****************************************************************************/
void up_signal_dispatch(_sa_sigaction_t sighand, int signo, void up_signal_dispatch(_sa_sigaction_t sighand, int signo,
FAR siginfo_t *info, FAR void *ucontext) siginfo_t *info, void *ucontext)
{ {
/* Let sys_call4() do all of the work */ /* Let sys_call4() do all of the work */
+3 -3
View File
@@ -65,9 +65,9 @@
* *
****************************************************************************/ ****************************************************************************/
FAR void *up_stack_frame(FAR struct tcb_s *tcb, size_t frame_size) void *up_stack_frame(struct tcb_s *tcb, size_t frame_size)
{ {
FAR void *ret; void *ret;
/* Align the frame_size */ /* Align the frame_size */
@@ -87,7 +87,7 @@ FAR void *up_stack_frame(FAR struct tcb_s *tcb, size_t frame_size)
/* Save the adjusted stack values in the struct tcb_s */ /* Save the adjusted stack values in the struct tcb_s */
tcb->stack_base_ptr = (FAR uint8_t *)tcb->stack_base_ptr + frame_size; tcb->stack_base_ptr = (uint8_t *)tcb->stack_base_ptr + frame_size;
tcb->adj_stack_size -= frame_size; tcb->adj_stack_size -= frame_size;
/* And return the pointer to the allocated region */ /* And return the pointer to the allocated region */
+4 -4
View File
@@ -47,7 +47,7 @@
* *
****************************************************************************/ ****************************************************************************/
int up_svcall(int irq, FAR void *context, FAR void *arg) int up_svcall(int irq, void *context, void *arg)
{ {
uint32_t *regs = (uint32_t *)context; uint32_t *regs = (uint32_t *)context;
uint32_t cmd; uint32_t cmd;
@@ -192,7 +192,7 @@ int up_svcall(int irq, FAR void *context, FAR void *arg)
/* A0=SYS_task_start: This a user task start /* A0=SYS_task_start: This a user task start
* *
* void up_task_start(main_t taskentry, int argc, FAR char *argv[]); * void up_task_start(main_t taskentry, int argc, char *argv[]);
* *
* At this point, the following values are saved in context: * At this point, the following values are saved in context:
* *
@@ -264,7 +264,7 @@ int up_svcall(int irq, FAR void *context, FAR void *arg)
/* A0=SYS_signal_handler: This a user signal handler callback /* A0=SYS_signal_handler: This a user signal handler callback
* *
* void signal_handler(_sa_sigaction_t sighand, int signo, * void signal_handler(_sa_sigaction_t sighand, int signo,
* FAR siginfo_t *info, FAR void *ucontext); * siginfo_t *info, void *ucontext);
* *
* At this point, the following values are saved in context: * At this point, the following values are saved in context:
* *
@@ -343,7 +343,7 @@ int up_svcall(int irq, FAR void *context, FAR void *arg)
default: default:
{ {
#ifdef CONFIG_LIB_SYSCALL #ifdef CONFIG_LIB_SYSCALL
FAR struct tcb_s *rtcb = sched_self(); struct tcb_s *rtcb = sched_self();
int index = rtcb->xcp.nsyscalls; int index = rtcb->xcp.nsyscalls;
/* Verify that the SYS call number is within range */ /* Verify that the SYS call number is within range */
+1 -1
View File
@@ -58,7 +58,7 @@
* *
****************************************************************************/ ****************************************************************************/
void up_task_start(main_t taskentry, int argc, FAR char *argv[]) void up_task_start(main_t taskentry, int argc, char *argv[])
{ {
/* Let sys_call3() do all of the work */ /* Let sys_call3() do all of the work */
+1 -1
View File
@@ -64,7 +64,7 @@
* *
****************************************************************************/ ****************************************************************************/
int up_use_stack(FAR struct tcb_s *tcb, FAR void *stack, size_t stack_size) int up_use_stack(struct tcb_s *tcb, void *stack, size_t stack_size)
{ {
uintptr_t top_of_stack; uintptr_t top_of_stack;
size_t size_of_stack; size_t size_of_stack;
+2 -2
View File
@@ -111,7 +111,7 @@ pid_t up_vfork(const uint32_t *regs)
/* Allocate the stack for the TCB */ /* Allocate the stack for the TCB */
ret = up_create_stack((FAR struct tcb_s *)child, stacksize + argsize, ret = up_create_stack((struct tcb_s *)child, stacksize + argsize,
parent->flags & TCB_FLAG_TTYPE_MASK); parent->flags & TCB_FLAG_TTYPE_MASK);
if (ret != OK) if (ret != OK)
{ {
@@ -122,7 +122,7 @@ pid_t up_vfork(const uint32_t *regs)
/* Allocate the memory and copy argument from parent task */ /* Allocate the memory and copy argument from parent task */
argv = up_stack_frame((FAR struct tcb_s *)child, argsize); argv = up_stack_frame((struct tcb_s *)child, argsize);
memcpy(argv, parent->stack_base_ptr, argsize); memcpy(argv, parent->stack_base_ptr, argsize);
/* How much of the parent's stack was utilized? The CEVA uses /* How much of the parent's stack was utilized? The CEVA uses
+1 -1
View File
@@ -80,7 +80,7 @@
* *
****************************************************************************/ ****************************************************************************/
int up_hardfault(int irq, FAR void *context, FAR void *arg) int up_hardfault(int irq, void *context, void *arg)
{ {
/* Dump some hard fault info */ /* Dump some hard fault info */
+1 -1
View File
@@ -95,7 +95,7 @@
* *
****************************************************************************/ ****************************************************************************/
int up_hardfault(int irq, FAR void *context, FAR void *arg) int up_hardfault(int irq, void *context, void *arg)
{ {
/* Dump some hard fault info */ /* Dump some hard fault info */