| Line 23... |
Line 23... |
| 23 |
|
23 |
|
| 24 |
#ifndef __SYSCALLWRAPPERS_H__
|
24 |
#ifndef __SYSCALLWRAPPERS_H__
|
| 25 |
#define __SYSCALLWRAPPERS_H__
|
25 |
#define __SYSCALLWRAPPERS_H__
|
| 26 |
|
26 |
|
| 27 |
|
27 |
|
| - |
|
28 |
#define IN_APPLICATION_CODE
|
| 28 |
#include "syscallapi.h"
|
29 |
#include "syscallapi.h"
|
| 29 |
|
30 |
|
| 30 |
|
31 |
|
| 31 |
extern struct embios_syscall_table* __embios_syscall;
|
32 |
extern struct embios_syscall_table* __embios_syscall;
|
| 32 |
|
33 |
|
| 33 |
|
34 |
|
| 34 |
#define panic(args...) __embios_syscall->panic(args)
|
35 |
#define panic(args...) __embios_syscall->panic(args)
|
| 35 |
#define panicf(args...) __embios_syscall->panicf(args)
|
36 |
#define panicf(args...) __embios_syscall->panicf(args)
|
| - |
|
37 |
#define cprintf(args...) __embios_syscall->cprintf(args)
|
| - |
|
38 |
#define cvprintf(args...) __embios_syscall->cvprintf(args)
|
| - |
|
39 |
#define cputc(args...) __embios_syscall->cputc(args)
|
| - |
|
40 |
#define cputs(args...) __embios_syscall->cputs(args)
|
| - |
|
41 |
#define cwrite(args...) __embios_syscall->cwrite(args)
|
| - |
|
42 |
#define cflush(args...) __embios_syscall->cflush(args)
|
| - |
|
43 |
#define cgetc(args...) __embios_syscall->cgetc(args)
|
| - |
|
44 |
#define cread(args...) __embios_syscall->cread(args)
|
| - |
|
45 |
#define creada(args...) __embios_syscall->creada(args)
|
| - |
|
46 |
#define opendir(args...) __embios_syscall->opendir(args)
|
| - |
|
47 |
#define closedir(args...) __embios_syscall->closedir(args)
|
| - |
|
48 |
#define readdir(args...) __embios_syscall->readdir(args)
|
| - |
|
49 |
#define mkdir(args...) __embios_syscall->mkdir(args)
|
| - |
|
50 |
#define rmdir(args...) __embios_syscall->rmdir(args)
|
| - |
|
51 |
#define renderbmp(args...) __embios_syscall->renderbmp(args)
|
| - |
|
52 |
#define renderchar(args...) __embios_syscall->renderchar(args)
|
| - |
|
53 |
#define execimage(args...) __embios_syscall->execimage(args)
|
| - |
|
54 |
#define ftruncate(args...) __embios_syscall->ftruncate(args)
|
| - |
|
55 |
#define fsync(args...) __embios_syscall->fsync(args)
|
| - |
|
56 |
#define close(args...) __embios_syscall->close(args)
|
| - |
|
57 |
#define write(args...) __embios_syscall->write(args)
|
| - |
|
58 |
#define read(args...) __embios_syscall->read(args)
|
| - |
|
59 |
#define lseek(args...) __embios_syscall->lseek(args)
|
| - |
|
60 |
#define remove(args...) __embios_syscall->remove(args)
|
| - |
|
61 |
#define file_open(args...) __embios_syscall->file_open(args)
|
| - |
|
62 |
#define rename(args...) __embios_syscall->rename(args)
|
| - |
|
63 |
#define file_creat(args...) __embios_syscall->file_creat(args)
|
| - |
|
64 |
#define filesize(args...) __embios_syscall->filesize(args)
|
| - |
|
65 |
#define format(args...) __embios_syscall->format(args)
|
| - |
|
66 |
#define vuprintf(args...) __embios_syscall->vuprintf(args)
|
| - |
|
67 |
#define lcdconsole_putc_noblit(args...) __embios_syscall->lcdconsole_putc_noblit(args)
|
| - |
|
68 |
#define lcdconsole_puts_noblit(args...) __embios_syscall->lcdconsole_puts_noblit(args)
|
| - |
|
69 |
#define lcdconsole_write_noblit(args...) __embios_syscall->lcdconsole_write_noblit(args)
|
| - |
|
70 |
#define lcdconsole_update(args...) __embios_syscall->lcdconsole_update(args)
|
| - |
|
71 |
#define lcdconsole_putc(args...) __embios_syscall->lcdconsole_putc(args)
|
| - |
|
72 |
#define lcdconsole_puts(args...) __embios_syscall->lcdconsole_puts(args)
|
| - |
|
73 |
#define lcdconsole_write(args...) __embios_syscall->lcdconsole_write(args)
|
| - |
|
74 |
#define shutdown(args...) __embios_syscall->shutdown(args)
|
| - |
|
75 |
#define storage_read_sectors(args...) __embios_syscall->storage_read_sectors(args)
|
| - |
|
76 |
#define storage_write_sectors(args...) __embios_syscall->storage_write_sectors(args)
|
| - |
|
77 |
#define strcasecmp(args...) __embios_syscall->strcasecmp(args)
|
| - |
|
78 |
#define strncasecmp(args...) __embios_syscall->strncasecmp(args)
|
| - |
|
79 |
#define strcasestr(args...) __embios_syscall->strcasestr(args)
|
| - |
|
80 |
#define strlcat(args...) __embios_syscall->strlcat(args)
|
| - |
|
81 |
#define strlcpy(args...) __embios_syscall->strlcpy(args)
|
| - |
|
82 |
#define mutex_init(args...) __embios_syscall->mutex_init(args)
|
| - |
|
83 |
#define mutex_lock(args...) __embios_syscall->mutex_lock(args)
|
| - |
|
84 |
#define mutex_unlock(args...) __embios_syscall->mutex_unlock(args)
|
| - |
|
85 |
#define wakeup_init(args...) __embios_syscall->wakeup_init(args)
|
| - |
|
86 |
#define wakeup_wait(args...) __embios_syscall->wakeup_wait(args)
|
| - |
|
87 |
#define wakeup_signal(args...) __embios_syscall->wakeup_signal(args)
|
| - |
|
88 |
#define sleep(args...) __embios_syscall->sleep(args)
|
| - |
|
89 |
#define thread_create(args...) __embios_syscall->thread_create(args)
|
| - |
|
90 |
#define thread_exit(args...) __embios_syscall->thread_exit(args)
|
| - |
|
91 |
#define thread_suspend(args...) __embios_syscall->thread_suspend(args)
|
| - |
|
92 |
#define thread_resume(args...) __embios_syscall->thread_resume(args)
|
| - |
|
93 |
#define thread_terminate(args...) __embios_syscall->thread_terminate(args)
|
| - |
|
94 |
#define __errno(args...) __embios_syscall->__errno(args)
|
| - |
|
95 |
#define ucl_decompress(args...) __embios_syscall->ucl_decompress(args)
|
| - |
|
96 |
#define bootflash_filesize(args...) __embios_syscall->bootflash_filesize(args)
|
| - |
|
97 |
#define bootflash_attributes(args...) __embios_syscall->bootflash_attributes(args)
|
| - |
|
98 |
#define bootflash_getaddr(args...) __embios_syscall->bootflash_getaddr(args)
|
| - |
|
99 |
#define bootflash_read(args...) __embios_syscall->bootflash_read(args)
|
| - |
|
100 |
#define bootflash_readraw(args...) __embios_syscall->bootflash_readraw(args)
|
| - |
|
101 |
#define bootflash_writeraw(args...) __embios_syscall->bootflash_writeraw(args)
|
| - |
|
102 |
#define bootflash_getrawaddr(args...) __embios_syscall->bootflash_getrawaddr(args)
|
| - |
|
103 |
#define read_native_timer(args...) __embios_syscall->read_native_timer(args)
|
| - |
|
104 |
#define read_usec_timer(args...) __embios_syscall->read_usec_timer(args)
|
| - |
|
105 |
#define i2c_send(args...) __embios_syscall->i2c_send(args)
|
| - |
|
106 |
#define i2c_recv(args...) __embios_syscall->i2c_recv(args)
|
| - |
|
107 |
#define i2c_sendbyte(args...) __embios_syscall->i2c_sendbyte(args)
|
| - |
|
108 |
#define i2c_recvbyte(args...) __embios_syscall->i2c_recvbyte(args)
|
| - |
|
109 |
#define interrupt_enable(args...) __embios_syscall->interrupt_enable(args)
|
| - |
|
110 |
#define interrupt_set_handler(args...) __embios_syscall->interrupt_set_handler(args)
|
| - |
|
111 |
#define int_timer_set_handler(args...) __embios_syscall->int_timer_set_handler(args)
|
| - |
|
112 |
#define displaylcd(args...) __embios_syscall->displaylcd(args)
|
| - |
|
113 |
#define displaylcd_sync(args...) __embios_syscall->displaylcd_sync(args)
|
| - |
|
114 |
#define displaylcd_busy(args...) __embios_syscall->displaylcd_busy(args)
|
| - |
|
115 |
#define displaylcd_safe(args...) __embios_syscall->displaylcd_safe(args)
|
| - |
|
116 |
#define clean_dcache(args...) __embios_syscall->clean_dcache(args)
|
| - |
|
117 |
#define invalidate_dcache(args...) __embios_syscall->invalidate_dcache(args)
|
| - |
|
118 |
#define invalidate_icache(args...) __embios_syscall->invalidate_icache(args)
|
| - |
|
119 |
#define nand_read_page(args...) __embios_syscall->nand_read_page(args)
|
| - |
|
120 |
#define nand_block_erase(args...) __embios_syscall->nand_block_erase(args)
|
| - |
|
121 |
#define nand_read_page_fast(args...) __embios_syscall->nand_read_page_fast(args)
|
| - |
|
122 |
#define nand_write_page(args...) __embios_syscall->nand_write_page(args)
|
| - |
|
123 |
#define nand_write_page_start(args...) __embios_syscall->nand_write_page_start(args)
|
| - |
|
124 |
#define nand_write_page_collect(args...) __embios_syscall->nand_write_page_collect(args)
|
| - |
|
125 |
#define nand_get_device_type(args...) __embios_syscall->nand_get_device_type(args)
|
| - |
|
126 |
#define power_off(args...) __embios_syscall->power_off(args)
|
| - |
|
127 |
#define charging_state(args...) __embios_syscall->charging_state(args)
|
| - |
|
128 |
#define atoi(args...) __embios_syscall->atoi(args)
|
| - |
|
129 |
#define memchr(args...) __embios_syscall->memchr(args)
|
| - |
|
130 |
#define memcmp(args...) __embios_syscall->memcmp(args)
|
| - |
|
131 |
#define memcpy(args...) __embios_syscall->memcpy(args)
|
| - |
|
132 |
#define memmove(args...) __embios_syscall->memmove(args)
|
| - |
|
133 |
#define memset(args...) __embios_syscall->memset(args)
|
| - |
|
134 |
#define qsort(args...) __embios_syscall->qsort(args)
|
| - |
|
135 |
#define srand(args...) __embios_syscall->srand(args)
|
| - |
|
136 |
#define rand(args...) __embios_syscall->rand(args)
|
| - |
|
137 |
#define snprintf(args...) __embios_syscall->snprintf(args)
|
| - |
|
138 |
#define vsnprintf(args...) __embios_syscall->vsnprintf(args)
|
| - |
|
139 |
#define isspace(args...) __embios_syscall->isspace(args)
|
| - |
|
140 |
#define isdigit(args...) __embios_syscall->isdigit(args)
|
| - |
|
141 |
#define isxdigit(args...) __embios_syscall->isxdigit(args)
|
| - |
|
142 |
#define sscanf(args...) __embios_syscall->sscanf(args)
|
| - |
|
143 |
#define strcat(args...) __embios_syscall->strcat(args)
|
| - |
|
144 |
#define strchr(args...) __embios_syscall->strchr(args)
|
| - |
|
145 |
#define strcmp(args...) __embios_syscall->strcmp(args)
|
| - |
|
146 |
#define strcpy(args...) __embios_syscall->strcpy(args)
|
| - |
|
147 |
#define strlen(args...) __embios_syscall->strlen(args)
|
| - |
|
148 |
#define strncmp(args...) __embios_syscall->strncmp(args)
|
| - |
|
149 |
#define strrchr(args...) __embios_syscall->strrchr(args)
|
| - |
|
150 |
#define strstr(args...) __embios_syscall->strstr(args)
|
| - |
|
151 |
#define strtok_r(args...) __embios_syscall->strtok_r(args)
|
| 36 |
|
152 |
|
| 37 |
|
153 |
|
| 38 |
#endif
|
154 |
#endif
|