diff options
| author | Zhou Yanjie <[email protected]> | 2019-07-19 20:46:06 +0800 |
|---|---|---|
| committer | Zhou Yanjie <[email protected]> | 2019-07-19 21:00:34 +0800 |
| commit | d6b2f56f150b014d8c9595ce68bbd98e45c0ed1c (patch) | |
| tree | 8964310b2c54940b6c8f1cf36db780a7844ff401 /libcpu | |
| parent | 9a1be9e73deae678706abc31f74deef7d414f6cc (diff) | |
libcpu: MIPS: 清理代码/Clean up code.
清理内容重复的头文件。
Clean up duplicate header files.
Signed-off-by: Zhou Yanjie <[email protected]>
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/mips/loongson_1b/cache_gcc.S | 7 | ||||
| -rw-r--r-- | libcpu/mips/loongson_1b/context_gcc.S | 6 | ||||
| -rw-r--r-- | libcpu/mips/loongson_1b/start_gcc.S | 6 | ||||
| -rw-r--r-- | libcpu/mips/loongson_1c/cache_gcc.S | 7 | ||||
| -rw-r--r-- | libcpu/mips/loongson_1c/context_gcc.S | 6 | ||||
| -rw-r--r-- | libcpu/mips/loongson_1c/start_gcc.S | 6 | ||||
| -rw-r--r-- | libcpu/mips/pic32/context_gcc.S | 6 | ||||
| -rw-r--r-- | libcpu/mips/x1000/mips_cache_gcc.S | 2 | ||||
| -rw-r--r-- | libcpu/mips/x1000/mips_context_gcc.S | 2 | ||||
| -rw-r--r-- | libcpu/mips/x1000/mips_excpt_gcc.S | 2 | ||||
| -rw-r--r-- | libcpu/mips/x1000/mips_fp_gcc.S | 2 | ||||
| -rw-r--r-- | libcpu/mips/x1000/startup_gcc.S | 2 | ||||
| -rw-r--r-- | libcpu/mips/xburst/cache_gcc.S | 7 | ||||
| -rw-r--r-- | libcpu/mips/xburst/context_gcc.S | 7 | ||||
| -rw-r--r-- | libcpu/mips/xburst/start_gcc.S | 6 |
15 files changed, 59 insertions, 15 deletions
diff --git a/libcpu/mips/loongson_1b/cache_gcc.S b/libcpu/mips/loongson_1b/cache_gcc.S index bb6f46de4c..bd4759f2b9 100644 --- a/libcpu/mips/loongson_1b/cache_gcc.S +++ b/libcpu/mips/loongson_1b/cache_gcc.S @@ -13,8 +13,13 @@ * 2010-09-11 bernard port to Loongson SoC3210 * 2011-08-08 lgnq port to Loongson LS1B */ + +#ifndef __ASSEMBLY__ +#define __ASSEMBLY__ +#endif + #include "../common/mipsregs.h" -#include "../common/mips.inc" +#include "../common/mips_def.h" #include "../common/asm.h" #include "cache.h" diff --git a/libcpu/mips/loongson_1b/context_gcc.S b/libcpu/mips/loongson_1b/context_gcc.S index ce004dc716..be06538bd5 100644 --- a/libcpu/mips/loongson_1b/context_gcc.S +++ b/libcpu/mips/loongson_1b/context_gcc.S @@ -14,7 +14,11 @@ * 2011-08-08 lgnq port to Loongson LS1B */ -#include "../common/mips.inc" +#ifndef __ASSEMBLY__ +#define __ASSEMBLY__ +#endif + +#include "../common/mips_def.h" #include "../common/stackframe.h" .section ".text", "ax" diff --git a/libcpu/mips/loongson_1b/start_gcc.S b/libcpu/mips/loongson_1b/start_gcc.S index fd98335671..4b2aad1e2e 100644 --- a/libcpu/mips/loongson_1b/start_gcc.S +++ b/libcpu/mips/loongson_1b/start_gcc.S @@ -13,7 +13,11 @@ * 2010-09-04 bernard porting to Jz47xx */ -#include "../common/mips.inc" +#ifndef __ASSEMBLY__ +#define __ASSEMBLY__ +#endif + +#include "../common/mips_def.h" #include "../common/stackframe.h" .section ".start", "ax" diff --git a/libcpu/mips/loongson_1c/cache_gcc.S b/libcpu/mips/loongson_1c/cache_gcc.S index af25c31ded..c8f570e529 100644 --- a/libcpu/mips/loongson_1c/cache_gcc.S +++ b/libcpu/mips/loongson_1c/cache_gcc.S @@ -14,8 +14,13 @@ * 2011-08-08 lgnq port to Loongson LS1B * 2015-07-08 chinesebear port to Loongson LS1C */ + +#ifndef __ASSEMBLY__ +#define __ASSEMBLY__ +#endif + #include "../common/mipsregs.h" -#include "../common/mips.inc" +#include "../common/mips_def.h" #include "../common/asm.h" #include "cache.h" diff --git a/libcpu/mips/loongson_1c/context_gcc.S b/libcpu/mips/loongson_1c/context_gcc.S index fbffd34866..934d5f44a9 100644 --- a/libcpu/mips/loongson_1c/context_gcc.S +++ b/libcpu/mips/loongson_1c/context_gcc.S @@ -14,7 +14,11 @@ * 2011-08-08 lgnq port to Loongson LS1B */ -#include "../common/mips.inc" +#ifndef __ASSEMBLY__ +#define __ASSEMBLY__ +#endif + +#include "../common/mips_def.h" #include "../common/stackframe.h" #include "stackframe_fpu.h" diff --git a/libcpu/mips/loongson_1c/start_gcc.S b/libcpu/mips/loongson_1c/start_gcc.S index 4e71bc0524..a0a8f9ec72 100644 --- a/libcpu/mips/loongson_1c/start_gcc.S +++ b/libcpu/mips/loongson_1c/start_gcc.S @@ -13,7 +13,11 @@ * 2010-09-04 bernard porting to Jz47xx */ -#include "../common/mips.inc" +#ifndef __ASSEMBLY__ +#define __ASSEMBLY__ +#endif + +#include "../common/mips_def.h" #include "../common/stackframe.h" #include "sdram_cfg.h" #include "cache.h" diff --git a/libcpu/mips/pic32/context_gcc.S b/libcpu/mips/pic32/context_gcc.S index 3e820fb9d8..283c86f1cd 100644 --- a/libcpu/mips/pic32/context_gcc.S +++ b/libcpu/mips/pic32/context_gcc.S @@ -1,5 +1,9 @@ +#ifndef __ASSEMBLY__ +#define __ASSEMBLY__ +#endif + #include <p32xxxx.h> -#include "../common/mips.inc" +#include "../common/mips_def.h" #include "../common/stackframe.h" .section ".text", "ax" diff --git a/libcpu/mips/x1000/mips_cache_gcc.S b/libcpu/mips/x1000/mips_cache_gcc.S index 671f193af0..50f2245638 100644 --- a/libcpu/mips/x1000/mips_cache_gcc.S +++ b/libcpu/mips/x1000/mips_cache_gcc.S @@ -23,7 +23,7 @@ */ #ifndef __ASSEMBLY__ -# define __ASSEMBLY__ +#define __ASSEMBLY__ #endif #include "../common/mips.h" diff --git a/libcpu/mips/x1000/mips_context_gcc.S b/libcpu/mips/x1000/mips_context_gcc.S index d4c314ab65..10ddc30c5c 100644 --- a/libcpu/mips/x1000/mips_context_gcc.S +++ b/libcpu/mips/x1000/mips_context_gcc.S @@ -23,7 +23,7 @@ */ #ifndef __ASSEMBLY__ -# define __ASSEMBLY__ +#define __ASSEMBLY__ #endif #include "../common/mips.h" diff --git a/libcpu/mips/x1000/mips_excpt_gcc.S b/libcpu/mips/x1000/mips_excpt_gcc.S index c403adf93b..ae9344b40f 100644 --- a/libcpu/mips/x1000/mips_excpt_gcc.S +++ b/libcpu/mips/x1000/mips_excpt_gcc.S @@ -23,7 +23,7 @@ */ #ifndef __ASSEMBLY__ -# define __ASSEMBLY__ +#define __ASSEMBLY__ #endif #include "../common/mips.h" diff --git a/libcpu/mips/x1000/mips_fp_gcc.S b/libcpu/mips/x1000/mips_fp_gcc.S index b219084065..3210c1b545 100644 --- a/libcpu/mips/x1000/mips_fp_gcc.S +++ b/libcpu/mips/x1000/mips_fp_gcc.S @@ -23,7 +23,7 @@ */ #ifndef __ASSEMBLY__ -# define __ASSEMBLY__ +#define __ASSEMBLY__ #endif #ifdef __mips_hard_float diff --git a/libcpu/mips/x1000/startup_gcc.S b/libcpu/mips/x1000/startup_gcc.S index 1376cb7dd4..05b782364b 100644 --- a/libcpu/mips/x1000/startup_gcc.S +++ b/libcpu/mips/x1000/startup_gcc.S @@ -23,7 +23,7 @@ */ #ifndef __ASSEMBLY__ -# define __ASSEMBLY__ +#define __ASSEMBLY__ #endif #include "../common/mips.h" diff --git a/libcpu/mips/xburst/cache_gcc.S b/libcpu/mips/xburst/cache_gcc.S index 76552698d0..c55dff20cd 100644 --- a/libcpu/mips/xburst/cache_gcc.S +++ b/libcpu/mips/xburst/cache_gcc.S @@ -4,7 +4,12 @@ * Date Author Notes * 2010-05-17 swkyer first version */ -#include "../common/mips.inc" + +#ifndef __ASSEMBLY__ +#define __ASSEMBLY__ +#endif + +#include "../common/mips_def.h" #include "../common/mipsregs.h" #include "../common/stackframe.h" diff --git a/libcpu/mips/xburst/context_gcc.S b/libcpu/mips/xburst/context_gcc.S index d018de3da8..270501d387 100644 --- a/libcpu/mips/xburst/context_gcc.S +++ b/libcpu/mips/xburst/context_gcc.S @@ -5,7 +5,12 @@ * 2010-05-17 swkyer first version * 2010-09-11 bernard port to Jz4755 */ -#include "../common/mips.inc" + +#ifndef __ASSEMBLY__ +#define __ASSEMBLY__ +#endif + +#include "../common/mips_def.h" #include "../common/stackframe.h" #include "stack.h" diff --git a/libcpu/mips/xburst/start_gcc.S b/libcpu/mips/xburst/start_gcc.S index 322c2beae8..52aa4a6cca 100644 --- a/libcpu/mips/xburst/start_gcc.S +++ b/libcpu/mips/xburst/start_gcc.S @@ -6,7 +6,11 @@ * 2010-09-04 bernard porting to Jz47xx */ -#include "../common/mips.inc" +#ifndef __ASSEMBLY__ +#define __ASSEMBLY__ +#endif + +#include "../common/mips_def.h" #include "../common/stackframe.h" #include "stack.h" |
