diff options
author | Chen Gang <xili_gchen_5257@hotmail.com> | 2015-07-10 17:47:24 -0400 |
---|---|---|
committer | Jesper Nilsson <jespern@axis.com> | 2015-11-02 14:03:04 -0500 |
commit | 8f40dcebefd4a9e8fa24d2ac5e3fd5e410eea58d (patch) | |
tree | 0a52f1e1ef792c3e1d51a7b2845e2dac296fd272 | |
parent | 4d0d39758d3e10a31e7f146d56760a92396feb85 (diff) |
cris: arch-v10: kgdb: Use BAR instead of DTP0 for register P12
For arch-v10, there is no DTP0 register, and at present, assembler know
BAR, so use BAR instead of DTP0, the related error (with allmodconfig):
CC arch/cris/arch-v10/kernel/kgdb.o
{standard input}: Assembler messages:
{standard input}:6: Error: Illegal operands
{standard input}:6: Error: Illegal operands
Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Acked-by: Hans-Peter Nilsson <hp@axis.com>
Signed-off-by: Jesper Nilsson <jespern@axis.com>
-rw-r--r-- | arch/cris/arch-v10/kernel/kgdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/cris/arch-v10/kernel/kgdb.c b/arch/cris/arch-v10/kernel/kgdb.c index 6b7616476af5..3b92c5c8fe58 100644 --- a/arch/cris/arch-v10/kernel/kgdb.c +++ b/arch/cris/arch-v10/kernel/kgdb.c | |||
@@ -953,7 +953,7 @@ asm ("\n" | |||
953 | " move $ibr,[cris_reg+0x4E] ; P9,\n" | 953 | " move $ibr,[cris_reg+0x4E] ; P9,\n" |
954 | " move $irp,[cris_reg+0x52] ; P10,\n" | 954 | " move $irp,[cris_reg+0x52] ; P10,\n" |
955 | " move $srp,[cris_reg+0x56] ; P11,\n" | 955 | " move $srp,[cris_reg+0x56] ; P11,\n" |
956 | " move $dtp0,[cris_reg+0x5A] ; P12, register BAR, assembler might not know BAR\n" | 956 | " move $bar,[cris_reg+0x5A] ; P12,\n" |
957 | " ; P13, register DCCR already saved\n" | 957 | " ; P13, register DCCR already saved\n" |
958 | ";; Due to the old assembler-versions BRP might not be recognized\n" | 958 | ";; Due to the old assembler-versions BRP might not be recognized\n" |
959 | " .word 0xE670 ; move brp,r0\n" | 959 | " .word 0xE670 ; move brp,r0\n" |
@@ -1046,7 +1046,7 @@ asm ("\n" | |||
1046 | " move $ibr,[cris_reg+0x4E] ; P9,\n" | 1046 | " move $ibr,[cris_reg+0x4E] ; P9,\n" |
1047 | " move $irp,[cris_reg+0x52] ; P10,\n" | 1047 | " move $irp,[cris_reg+0x52] ; P10,\n" |
1048 | " move $srp,[cris_reg+0x56] ; P11,\n" | 1048 | " move $srp,[cris_reg+0x56] ; P11,\n" |
1049 | " move $dtp0,[cris_reg+0x5A] ; P12, register BAR, assembler might not know BAR\n" | 1049 | " move $bar,[cris_reg+0x5A] ; P12,\n" |
1050 | " ; P13, register DCCR already saved\n" | 1050 | " ; P13, register DCCR already saved\n" |
1051 | ";; Due to the old assembler-versions BRP might not be recognized\n" | 1051 | ";; Due to the old assembler-versions BRP might not be recognized\n" |
1052 | " .word 0xE670 ; move brp,r0\n" | 1052 | " .word 0xE670 ; move brp,r0\n" |