summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
authorHuang bo <[email protected]>2021-11-17 18:44:00 +0800
committerHuang bo <[email protected]>2021-11-17 18:44:00 +0800
commit87598c7b43e41f9550da361e37085c5d1ad150f8 (patch)
treed4b8bc7da3ba8669a8aba23f7210e1fc4dc017c8 /libcpu
parentcbc0e1ffcf4ad79d08ab199e2529941fa8c510d1 (diff)
修改格式
Diffstat (limited to 'libcpu')
-rw-r--r--libcpu/ti-dsp/c6x/c66xx.h7
-rw-r--r--libcpu/ti-dsp/c6x/context.asm2
2 files changed, 1 insertions, 8 deletions
diff --git a/libcpu/ti-dsp/c6x/c66xx.h b/libcpu/ti-dsp/c6x/c66xx.h
index 4d00ece2bf..a8b08438ee 100644
--- a/libcpu/ti-dsp/c6x/c66xx.h
+++ b/libcpu/ti-dsp/c6x/c66xx.h
@@ -19,13 +19,6 @@
#define REG_PAIR(odd, even) unsigned long even; unsigned long odd
#endif
-/*
- * this struct defines the way the registers are stored on the
- * stack during a system call. fields defined with REG_PAIR
- * are saved and restored using double-word memory operations
- * which means the word ordering of the pair depends on endianess.
- */
-
struct rt_hw_register
{
REG_PAIR(b17, b16);
diff --git a/libcpu/ti-dsp/c6x/context.asm b/libcpu/ti-dsp/c6x/context.asm
index 3f317583a4..2bbe0477f5 100644
--- a/libcpu/ti-dsp/c6x/context.asm
+++ b/libcpu/ti-dsp/c6x/context.asm
@@ -45,7 +45,7 @@ rt_hw_enable_exception:
DINT
MVC .S2 TSR,B0
MVC .S2 B3,NRP
- MVK .L2 0xc,B1
+ MVK .L2 0xC,B1
OR .D2 B0,B1,B0
MVC .S2 B0,TSR ; Set GEE and XEN in TSR
B .S2 NRP