diff options
author | Geoff Levand <geoffrey.levand@am.sony.com> | 2007-04-30 17:00:50 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-05-02 06:04:30 -0400 |
commit | f0a1d024cc2699f4897d611da1d91777cccc530b (patch) | |
tree | 7d9453b382b9b12bffd10e6cdb0cb1186cfdae95 /arch/powerpc | |
parent | 5cddd2e355d0df400782dae80722945c8197b1c5 (diff) |
[POWERPC] PS3: Add DABR support
Add PS3 support for the PowerPC processor's Data Address Breakpoint Register
(DABR).
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/platforms/ps3/setup.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/ps3/setup.c b/arch/powerpc/platforms/ps3/setup.c index ac5df9688dcb..c9894933084f 100644 --- a/arch/powerpc/platforms/ps3/setup.c +++ b/arch/powerpc/platforms/ps3/setup.c | |||
@@ -137,6 +137,12 @@ early_param("ps3fb", early_parse_ps3fb); | |||
137 | #define prealloc_ps3fb_videomemory() do { } while (0) | 137 | #define prealloc_ps3fb_videomemory() do { } while (0) |
138 | #endif | 138 | #endif |
139 | 139 | ||
140 | static int ps3_set_dabr(u64 dabr) | ||
141 | { | ||
142 | enum {DABR_USER = 1, DABR_KERNEL = 2,}; | ||
143 | |||
144 | return lv1_set_dabr(dabr, DABR_KERNEL | DABR_USER) ? -1 : 0; | ||
145 | } | ||
140 | 146 | ||
141 | static void __init ps3_setup_arch(void) | 147 | static void __init ps3_setup_arch(void) |
142 | { | 148 | { |
@@ -234,6 +240,7 @@ define_machine(ps3) { | |||
234 | .get_boot_time = ps3_get_boot_time, | 240 | .get_boot_time = ps3_get_boot_time, |
235 | .set_rtc_time = ps3_set_rtc_time, | 241 | .set_rtc_time = ps3_set_rtc_time, |
236 | .get_rtc_time = ps3_get_rtc_time, | 242 | .get_rtc_time = ps3_get_rtc_time, |
243 | .set_dabr = ps3_set_dabr, | ||
237 | .calibrate_decr = ps3_calibrate_decr, | 244 | .calibrate_decr = ps3_calibrate_decr, |
238 | .progress = ps3_progress, | 245 | .progress = ps3_progress, |
239 | .restart = ps3_restart, | 246 | .restart = ps3_restart, |