diff options
author | Olof Johansson <olof@lixom.net> | 2006-08-18 21:44:57 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-08-18 21:44:57 +0200 |
commit | d133b8ac886bf921a2a9efd871c3e71f1a5d6d80 (patch) | |
tree | 4a3eb8e7de54b82e4ac29fbae9f834cf9ff545cd /arch | |
parent | c1df7b7181ae16b4ec44a0b1e1bdf67f5a06f17e (diff) |
powerpc: Clear HID0 attention enable on PPC970 at boot time (CVE-2006-4093)
Clear HID0[en_attn] at CPU init time on PPC970. Closes CVE-2006-4093.
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kernel/cpu_setup_power4.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/cpu_setup_power4.S b/arch/powerpc/kernel/cpu_setup_power4.S index b61d86e7ceb..55f367eddb6 100644 --- a/arch/powerpc/kernel/cpu_setup_power4.S +++ b/arch/powerpc/kernel/cpu_setup_power4.S @@ -94,6 +94,8 @@ _GLOBAL(__setup_cpu_ppc970) mfspr r0,SPRN_HID0 li r11,5 /* clear DOZE and SLEEP */ rldimi r0,r11,52,8 /* set NAP and DPM */ + li r11,0 + rldimi r0,r11,32,31 /* clear EN_ATTN */ mtspr SPRN_HID0,r0 mfspr r0,SPRN_HID0 mfspr r0,SPRN_HID0 |