Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
VC66_7C
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISUZU
VC66_7C
Commits
94899df9
Commit
94899df9
authored
2 years ago
by
hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整LD文件
parent
92fd04bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
4 deletions
+62
-4
cpu.h
source/Driver/RH850_GHS/cpu.h
+54
-0
d1mx.ld
source/System/d1mx.ld
+8
-4
No files found.
source/Driver/RH850_GHS/cpu.h
View file @
94899df9
#ifndef CPU_H__
#define CPU_H__
#include <v800_ghs.h>
#define _INLINE_ inline
#ifndef u32_T
#define u32_T unsigned long
#endif
#define PSW 5, 0
/* Program status word Note 1 */
#define EBASE 3, 1
/* Exception handler vector address SV */
/* Basic control registers type definitions */
typedef
union
{
u32_T
psw
;
/* PSW, 32-bit access */
struct
{
u32_T
Z
:
1
,
/* Bit 0, zero */
S
:
1
,
/* Bit 1, sign */
OV
:
1
,
/* Bit 2, overflow */
CY
:
1
,
/* Bit 3, carry */
SAT
:
1
,
/* Bit 4, saturated */
ID
:
1
,
/* Bit 5, interrupt enable (0:enabled) */
EP
:
1
,
/* Bit 6, exception in process (0:interupt is processed */
NP
:
1
,
/* Bit 7, FE exception enable (0:enabled) */
rsvd1
:
1
,
/* Bit 8, reserved */
DBG
:
3
,
/* Bit 9-11, debug */
rsvd2
:
3
,
/* Bit 12-14, reserved */
EBV
:
1
,
/* Bit 15, 0:RBASE or 1:EBASE is used as exception processing base */
CU0
:
1
,
/* Bit 16, FPU */
CU1
:
1
,
/* Bit 17, reserved */
CU2
:
1
,
/* Bit 18, reserved */
rsvd3
:
11
,
/* Bit 19-29, reserved */
UM
:
1
,
/* Bit 30, User mode (0:supervisor, 1:user mode) */
rsvd4
:
1
;
/* Bit 31, reserved */
};
}
PSW_T
;
_INLINE_
void
SET_PSW_EBV
(
void
)
{
PSW_T
p
;
__DI
()
;
p
.
psw
=
__STSR
(
PSW
);
p
.
EBV
=
1
;
__LDSR
(
PSW
,
p
.
psw
);
}
_INLINE_
void
SET_EBASE
(
u32_T
v
)
{
u32_T
__t
=
__DIR
();
__LDSR
(
EBASE
,
v
);
__RIR
(
__t
);
}
extern
void
CPU_Init
(
void
);
...
...
This diff is collapsed.
Click to expand it.
source/System/d1mx.ld
View file @
94899df9
...
...
@@ -117,11 +117,15 @@ SECTIONS
NOCLEAR :>. /* definition of heap size */
/* Start of internal retention RAM area (iRAM_R) */
.mydata align(4) :>iRAM_R /* user defined segment for for initialized data located in retention RAM */
.mybss align(4) :>. /* user defined segment for zero initialized data located in retention RAM */
.myNonInitArea align(4) NOCLEAR :>. /* non initalised are in the BURAM */
.PublicData align(4) :>iRAM_R0 /* user defined segment for for initialized data located in retention RAM */
.PublicBSS align(4) :>. /* user defined segment for zero initialized data located in retention RAM */
.PublicNonInitArea align(4) NOCLEAR :>. /* non initalised are in the BURAM */
.absinitarea align(4) NOCLEAR :>iRAM_R0
.rdata align(4) :>iRAM_R /* user defined segment for for initialized data located in retention RAM */
.rbss align(4) :>. /* user defined segment for zero initialized data located in retention RAM */
.NonInitArea align(4) NOCLEAR :>. /* non initalised are in the BURAM */
/* Symbols for compiler references */
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment