libcpu: MIPS: 清理代码/Clean up code.

清理内容重复的头文件。

Clean up duplicate header files.

Signed-off-by: Zhou Yanjie <zhouyanjie@zoho.com>
This commit is contained in:
Zhou Yanjie 2019-07-19 20:46:06 +08:00
parent 9a1be9e73d
commit d6b2f56f15
16 changed files with 60 additions and 16 deletions

View File

@ -376,7 +376,7 @@
</Unit> </Unit>
<Unit filename="..\..\libcpu\mips\common\cache.h" /> <Unit filename="..\..\libcpu\mips\common\cache.h" />
<Unit filename="..\..\libcpu\mips\common\exception.h" /> <Unit filename="..\..\libcpu\mips\common\exception.h" />
<Unit filename="..\..\libcpu\mips\common\mips.inc" /> <Unit filename="..\..\libcpu\mips\common\mips_def.h" />
<Unit filename="..\..\libcpu\mips\common\mipscfg.h" /> <Unit filename="..\..\libcpu\mips\common\mipscfg.h" />
<Unit filename="..\..\libcpu\mips\common\mipsregs.h" /> <Unit filename="..\..\libcpu\mips\common\mipsregs.h" />
<Unit filename="..\..\libcpu\mips\common\stackframe.h" /> <Unit filename="..\..\libcpu\mips\common\stackframe.h" />

View File

@ -13,8 +13,13 @@
* 2010-09-11 bernard port to Loongson SoC3210 * 2010-09-11 bernard port to Loongson SoC3210
* 2011-08-08 lgnq port to Loongson LS1B * 2011-08-08 lgnq port to Loongson LS1B
*/ */
#ifndef __ASSEMBLY__
#define __ASSEMBLY__
#endif
#include "../common/mipsregs.h" #include "../common/mipsregs.h"
#include "../common/mips.inc" #include "../common/mips_def.h"
#include "../common/asm.h" #include "../common/asm.h"
#include "cache.h" #include "cache.h"

View File

@ -14,7 +14,11 @@
* 2011-08-08 lgnq port to Loongson LS1B * 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 "../common/stackframe.h"
.section ".text", "ax" .section ".text", "ax"

View File

@ -13,7 +13,11 @@
* 2010-09-04 bernard porting to Jz47xx * 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 "../common/stackframe.h"
.section ".start", "ax" .section ".start", "ax"

View File

@ -14,8 +14,13 @@
* 2011-08-08 lgnq port to Loongson LS1B * 2011-08-08 lgnq port to Loongson LS1B
* 2015-07-08 chinesebear port to Loongson LS1C * 2015-07-08 chinesebear port to Loongson LS1C
*/ */
#ifndef __ASSEMBLY__
#define __ASSEMBLY__
#endif
#include "../common/mipsregs.h" #include "../common/mipsregs.h"
#include "../common/mips.inc" #include "../common/mips_def.h"
#include "../common/asm.h" #include "../common/asm.h"
#include "cache.h" #include "cache.h"

View File

@ -14,7 +14,11 @@
* 2011-08-08 lgnq port to Loongson LS1B * 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 "../common/stackframe.h"
#include "stackframe_fpu.h" #include "stackframe_fpu.h"

View File

@ -13,7 +13,11 @@
* 2010-09-04 bernard porting to Jz47xx * 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 "../common/stackframe.h"
#include "sdram_cfg.h" #include "sdram_cfg.h"
#include "cache.h" #include "cache.h"

View File

@ -1,5 +1,9 @@
#ifndef __ASSEMBLY__
#define __ASSEMBLY__
#endif
#include <p32xxxx.h> #include <p32xxxx.h>
#include "../common/mips.inc" #include "../common/mips_def.h"
#include "../common/stackframe.h" #include "../common/stackframe.h"
.section ".text", "ax" .section ".text", "ax"

View File

@ -4,7 +4,12 @@
* Date Author Notes * Date Author Notes
* 2010-05-17 swkyer first version * 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/mipsregs.h"
#include "../common/stackframe.h" #include "../common/stackframe.h"

View File

@ -5,7 +5,12 @@
* 2010-05-17 swkyer first version * 2010-05-17 swkyer first version
* 2010-09-11 bernard port to Jz4755 * 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 "../common/stackframe.h"
#include "stack.h" #include "stack.h"

View File

@ -6,7 +6,11 @@
* 2010-09-04 bernard porting to Jz47xx * 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 "../common/stackframe.h"
#include "stack.h" #include "stack.h"