优化多arch支持
This commit is contained in:
@@ -14,7 +14,7 @@ typedef struct sig_op
|
||||
typedef struct sig
|
||||
{
|
||||
rpc_svr_obj_t svr_obj;
|
||||
sig_op_t *op;
|
||||
const sig_op_t *op;
|
||||
} sig_t;
|
||||
|
||||
void sig_svr_obj_init(sig_t *sig);
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
static fs_t fs;
|
||||
|
||||
#ifdef CONFIG_USING_SIG
|
||||
static int fs_sig_call_back(pid_t pid, umword_t sig_val)
|
||||
{
|
||||
switch (sig_val)
|
||||
@@ -26,7 +27,7 @@ static int fs_sig_call_back(pid_t pid, umword_t sig_val)
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
int fs_svr_open(const char *path, int flags, int mode)
|
||||
{
|
||||
int fd;
|
||||
|
||||
@@ -2,4 +2,3 @@
|
||||
|
||||
void fs_svr_init(void);
|
||||
void fs_svr_loop(void);
|
||||
void *file_temp_buf_get(void);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
#define HEAP_SIZE (4*1024)
|
||||
#define STACK_SIZE 1024 * 2
|
||||
#define STACK_SIZE (1024*2)
|
||||
|
||||
#if defined(__CC_ARM)
|
||||
#define HEAP_ATTR SECTION("HEAP") __attribute__((zero_init))
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <u_sleep.h>
|
||||
#include <u_vmam.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
int fd;
|
||||
|
||||
Reference in New Issue
Block a user