Skip to content
Snippets Groups Projects
Commit 5344f7a2 authored by Prabhakar Kushwaha's avatar Prabhakar Kushwaha Committed by Andy Fleming
Browse files

powerpc/85xx:Fix MSR[DE] bit in MSR to support debugger


Debugging of e500 and e500v1 processer requires MSR[DE] bit to be set always.
Where MSR = Machine State register

Make sure of MSR[DE] bit is set uniformaly across the different execution
address space i.e. AS0 and AS1.

Signed-off-by: default avatarRadu Lazarescu <radu.lazarescu@freescale.com>
Signed-off-by: default avatarCatalin Udma <catalin.udma@freescale.com>
Signed-off-by: default avatarMarius Grigoras <marius.grigoras@freescale.com>
Signed-off-by: default avatarPrabhakar Kushwaha <prabhakar@freescale.com>
parent afa6b551
No related branches found
No related tags found
No related merge requests found
......@@ -537,7 +537,7 @@ void arch_preboot_os(void)
* disabled by the time we get called.
*/
msr = mfmsr();
msr &= ~(MSR_ME|MSR_CE|MSR_DE);
msr &= ~(MSR_ME|MSR_CE);
mtmsr(msr);
setup_ivors();
......
......@@ -82,6 +82,9 @@
.globl _start_e500
_start_e500:
/* Enable debug exception */
li r1,MSR_DE
mtmsr r1
#if defined(CONFIG_SECURE_BOOT) && defined(CONFIG_E500MC)
/* ISBC uses L2 as stack.
......@@ -733,8 +736,8 @@ create_init_ram_area:
msync
tlbwe
lis r6,MSR_IS|MSR_DS@h
ori r6,r6,MSR_IS|MSR_DS@l
lis r6,MSR_IS|MSR_DS|MSR_DE@h
ori r6,r6,MSR_IS|MSR_DS|MSR_DE@l
lis r7,switch_as@h
ori r7,r7,switch_as@l
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment