18#ifndef __LINUX_GENERIC_H__
19#define __LINUX_GENERIC_H__
26#if defined(__VSF_ARCH_LINUX_IMPLEMENT)
27# define __VSF_CLASS_IMPLEMENT__
38#ifndef __LITTLE_ENDIAN
39# define __LITTLE_ENDIAN 1
42# define __BYTE_ORDER __LITTLE_ENDIAN
45#ifndef VSF_ARCH_PRI_NUM
46# define VSF_ARCH_PRI_NUM 1
48#if VSF_ARCH_PRI_NUM != 1
49# error VSF_ARCH_PRI_NUM MUST be 1 for linux
52#ifndef VSF_SYSTIMER_CFG_IMPL_MODE
53# define VSF_SYSTIMER_CFG_IMPL_MODE VSF_SYSTIMER_IMPL_REQUEST_RESPONSE
57#ifndef VSF_ARCH_SWI_NUM
58# define VSF_ARCH_SWI_NUM 0
60#if VSF_ARCH_SWI_NUM != 0
61# error VSF_ARCH_SWI_NUM MUST be 0 for linux
64#define VSF_ARCH_STACK_ALIGN_BIT 4
65#define VSF_ARCH_LIMIT_NO_SET_STACK
67#define VSF_ARCH_STACK_PAGE_SIZE 4096
68#define VSF_ARCH_STACK_GUARDIAN_SIZE 4096
69#ifndef VSF_ARCH_PROVIDE_HEAP
70# define VSF_ARCH_PROVIDE_HEAP ENABLED
72#define VSF_ARCH_PROVIDE_ARGU ENABLED
73#define VSF_ARCH_PROVIDE_EXE ENABLED
76#define VSF_ARCH_SYSTIMER_FREQ (1 * 1000 * 1000)
78#ifdef __CPU_WEBASSEMBLY__
79# define VSF_USER_ENTRY user_main
84#define __VSF_ARCH_PRI(__N, __BIT) \
85 VSF_ARCH_PRIO_##__N = (__N), \
86 vsf_arch_prio_##__N = (__N),
88#define vsf_arch_wakeup()
107 void *irq_thread_to_exit;
vsf_err_t
Definition __type.h:42
Definition linux_generic.h:104
Definition linux_generic.h:122
vsf_arch_prio_t
Definition cortex_a_generic.h:88
@ VSF_ARCH_PRIO_INVALID
Definition linux_generic.h:96
@ vsf_arch_prio_highest
Definition linux_generic.h:99
@ vsf_arch_prio_invalid
Definition linux_generic.h:97
void __vsf_arch_irq_set_background(vsf_arch_irq_thread_t *irq_thread)
Definition win_generic.c:724
#define __VSF_ARCH_PRI(__N, __BIT)
Definition linux_generic.h:84
void __vsf_arch_irq_init(vsf_arch_irq_thread_t *irq_thread, char *name, vsf_arch_irq_entry_t entry, vsf_arch_prio_t priority)
Definition win_generic.c:691
vsf_err_t __vsf_arch_irq_restart(vsf_arch_irq_thread_t *irq_thread, vsf_arch_irq_request_t *request_pending)
Definition linux_generic.c:309
void __vsf_arch_irq_request_fini(vsf_arch_irq_request_t *request)
Definition linux_generic.c:188
uint64_t vsf_systimer_tick_t
Definition linux_generic.h:93
void __vsf_arch_irq_sleep(uint32_t ms)
Definition linux_generic.c:321
void * vsf_arch_alloc_exe(uint_fast32_t size)
Definition linux_generic.c:589
volatile bool vsf_gint_state_t
Definition linux_generic.h:114
void __vsf_arch_irq_end(vsf_arch_irq_thread_t *irq_thread, bool is_terminate)
Definition win_generic.c:669
void __vsf_arch_irq_fini(vsf_arch_irq_thread_t *irq_thread)
Definition win_generic.c:679
void __vsf_arch_irq_request_pend(vsf_arch_irq_request_t *request)
Definition linux_generic.c:205
int vsf_arch_argu(char ***argv)
Definition linux_generic.c:603
void(* vsf_arch_irq_entry_t)(void *)
Definition linux_generic.h:102
void __vsf_arch_irq_start(vsf_arch_irq_thread_t *irq_thread)
Definition win_generic.c:659
void vsf_arch_free_exe(void *ptr)
Definition linux_generic.c:594
void __vsf_arch_irq_request_send(vsf_arch_irq_request_t *request)
Definition linux_generic.c:228
void __vsf_arch_irq_request_init(vsf_arch_irq_request_t *request)
Definition linux_generic.c:167
void __vsf_arch_irq_exit(vsf_arch_irq_thread_t *irq_thread)
Definition linux_generic.c:303
#define VSF_ARCH_PRI_NUM
Definition linux_generic.h:46
unsigned int uint32_t
Definition lvgl.h:43
#define VSF_ARCH_PRI_BIT
Definition mcs51_generic.h:42
#define vsf_class(__name)
Definition ooc_class.h:48
unsigned int uint_fast32_t
Definition stdint.h:27
unsigned long long uint64_t
Definition stdint.h:11
#define exit
Definition stdlib.h:33
Definition vsf_arch_without_thread_suspend_template.h:23
uint32_t size
Definition vsf_memfs.h:50
#define VSF_MREPEAT(__COUNT, __MACRO, __PARAM)
Definition vsf_repeat_macro.h:51