Skip to content
Snippets Groups Projects
Commit 45a68135 authored by Kumar Gala's avatar Kumar Gala
Browse files

powerpc/85xx: Fix bug in dcache_disable


We set the L1 dache register with a bogus register value.  Need to be
using 'r3' instead of 'r0'.

Reported-by: default avatarJohn Traill <john.traill@freescale.com>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 7ea3871e
No related branches found
No related tags found
No related merge requests found
/* /*
* Copyright 2004, 2007-2010 Freescale Semiconductor, Inc. * Copyright 2004, 2007-2011 Freescale Semiconductor, Inc.
* Copyright (C) 2003 Motorola,Inc. * Copyright (C) 2003 Motorola,Inc.
* *
* See file CREDITS for list of people who contributed to this * See file CREDITS for list of people who contributed to this
...@@ -753,7 +753,7 @@ dcache_disable: ...@@ -753,7 +753,7 @@ dcache_disable:
lis r4,0 lis r4,0
ori r4,r4,L1CSR0_DCE ori r4,r4,L1CSR0_DCE
andc r3,r3,r4 andc r3,r3,r4
mtspr L1CSR0,r0 mtspr L1CSR0,r3
isync isync
blr blr
......
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