diff options
author | Guo Ren <guoren@linux.alibaba.com> | 2020-03-28 12:14:37 +0100 |
---|---|---|
committer | Guo Ren <guoren@linux.alibaba.com> | 2020-04-03 06:40:07 +0200 |
commit | aefd9461d34a1b0a2acad0750c43216c1c27b9d4 (patch) | |
tree | 5758db614e0a99fc098daa1433d400196e690704 /arch/csky/abiv1 | |
parent | csky: Add uprobes support (diff) | |
download | linux-aefd9461d34a1b0a2acad0750c43216c1c27b9d4.tar.xz linux-aefd9461d34a1b0a2acad0750c43216c1c27b9d4.zip |
csky: Fixup cpu speculative execution to IO area
For the memory size ( > 512MB, < 1GB), the MSA setting is:
- SSEG0: PHY_START , PHY_START + 512MB
- SSEG1: PHY_START + 512MB, PHY_START + 1GB
But the real memory is no more than 1GB, there is a gap between the
end size of memory and border of 1GB. CPU could speculatively
execute to that gap and if the gap of the bus couldn't respond to
the CPU request, then the crash will happen.
Now make the setting with:
- SSEG0: PHY_START , PHY_START + 512MB (no change)
- SSEG1: Disabled (We use highmem to use the memory of 512MB~1GB)
We also deprecated zhole_szie[] settings, it's only used by arm
style CPUs. All memory gap should use Reserved setting of dts in
csky system.
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Diffstat (limited to 'arch/csky/abiv1')
-rw-r--r-- | arch/csky/abiv1/inc/abi/entry.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/csky/abiv1/inc/abi/entry.h b/arch/csky/abiv1/inc/abi/entry.h index f35a9f3315ee..5056ebb902d1 100644 --- a/arch/csky/abiv1/inc/abi/entry.h +++ b/arch/csky/abiv1/inc/abi/entry.h @@ -172,10 +172,7 @@ addi r6, 0xe cpwcr r6, cpcr30 - lsri r6, 28 - addi r6, 2 - lsli r6, 28 - addi r6, 0xe + movi r6, 0 cpwcr r6, cpcr31 .endm |