Skip to content

Commit 90917cc

Browse files
authored
[format] cleanup libcpu/aarch64 (#8950)
* [dfs] fixup compiler warning Signed-off-by: Shell <[email protected]> * [format] libcpu/arm64: separate context switching codes Signed-off-by: Shell <[email protected]> * [format] libcpu/arm64: separate vector Signed-off-by: Shell <[email protected]> * [format] libcpu/arm64: separate context_gcc.S Signed-off-by: Shell <[email protected]> * [format] libcpu/arm64: moving headers to include directory Signed-off-by: Shell <[email protected]> * style: replace tab with space --------- Signed-off-by: Shell <[email protected]>
1 parent 3d8c27b commit 90917cc

38 files changed

+1065
-805
lines changed

components/dfs/dfs_v1/filesystems/tmpfs/dfs_tmpfs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ int dfs_tmpfs_stat(struct dfs_filesystem *fs,
494494
if (d_file == NULL)
495495
return -ENOENT;
496496

497-
st->st_dev = (rt_device_t)dfs_filesystem_lookup(fs->path);
497+
st->st_dev = (dev_t)dfs_filesystem_lookup(fs->path);
498498
st->st_mode = S_IFREG | S_IRUSR | S_IRGRP | S_IROTH |
499499
S_IWUSR | S_IWGRP | S_IWOTH;
500500
if (d_file->type == TMPFS_TYPE_DIR)

components/lwp/arch/aarch64/cortex-a/lwp_gcc.S

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
#define __ASSEMBLY__
1515
#endif
1616

17-
#include "rtconfig.h"
18-
#include "asm-generic.h"
19-
#include "asm-fpu.h"
20-
#include "armv8.h"
21-
#include "lwp_arch.h"
17+
#include <rtconfig.h>
18+
#include <asm-generic.h>
19+
#include <asm-fpu.h>
20+
#include <armv8.h>
21+
#include <lwp_arch.h>
2222

2323
/*********************
2424
* SPSR BIT *

libcpu/aarch64/common/SConscript

+8-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@ Import('rtconfig')
66

77
cwd = GetCurrentDir()
88
src = Glob('*.c') + Glob('*.cpp') + Glob('*.S')
9-
CPPPATH = [cwd]
9+
CPPPATH = [cwd, cwd + '/include']
10+
11+
if GetDepend('RT_USING_SMP'):
12+
core_model = 'mp'
13+
else:
14+
core_model = 'up'
15+
16+
src += Glob(core_model + '/*.S')
1017

1118
if GetDepend('RT_USING_OFW') == False:
1219
SrcRemove(src, ['setup.c', 'cpu_psci.c', 'psci.c'])

libcpu/aarch64/common/asm-fpu.h

-79
This file was deleted.

libcpu/aarch64/common/cache_ops.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Change Logs:
77
* Date Author Notes
8-
* 2019-03-29 quanzhao the first version
8+
* 2019-03-29 quanzhao the first version
99
*/
1010
#include <rthw.h>
1111
#include <rtdef.h>

0 commit comments

Comments
 (0)