diff options
author | Geoff Levand <geoff@infradead.org> | 2011-11-29 10:38:49 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-12-07 22:05:54 -0500 |
commit | b5ecc5595e4fb2992093b3d2d0e15b4630eb233b (patch) | |
tree | 79928045fa38c6a3c19f5b7b7064b8b042b5e563 /arch/powerpc | |
parent | 7652918cf9c07e0cf9ed152bd242f789ddcffaa7 (diff) |
powerpc/ps3: Fix hcall lv1_get_virtual_address_space_id_of_ppe
The lv1_get_virtual_address_space_id_of_ppe hcall takes 0, not 1 input
arguments. Adjust the lv1 hcall table and all calls.
Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/include/asm/lv1call.h | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/ps3/spu.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/lv1call.h b/arch/powerpc/include/asm/lv1call.h index 807d8951410f..3ddf66cb5c66 100644 --- a/arch/powerpc/include/asm/lv1call.h +++ b/arch/powerpc/include/asm/lv1call.h | |||
@@ -231,7 +231,7 @@ LV1_CALL(allocate_memory, 4, 2, 0 ) | |||
231 | LV1_CALL(write_htab_entry, 4, 0, 1 ) | 231 | LV1_CALL(write_htab_entry, 4, 0, 1 ) |
232 | LV1_CALL(construct_virtual_address_space, 3, 2, 2 ) | 232 | LV1_CALL(construct_virtual_address_space, 3, 2, 2 ) |
233 | LV1_CALL(invalidate_htab_entries, 5, 0, 3 ) | 233 | LV1_CALL(invalidate_htab_entries, 5, 0, 3 ) |
234 | LV1_CALL(get_virtual_address_space_id_of_ppe, 1, 1, 4 ) | 234 | LV1_CALL(get_virtual_address_space_id_of_ppe, 0, 1, 4 ) |
235 | LV1_CALL(query_logical_partition_address_region_info, 1, 5, 6 ) | 235 | LV1_CALL(query_logical_partition_address_region_info, 1, 5, 6 ) |
236 | LV1_CALL(select_virtual_address_space, 1, 0, 7 ) | 236 | LV1_CALL(select_virtual_address_space, 1, 0, 7 ) |
237 | LV1_CALL(pause, 1, 0, 9 ) | 237 | LV1_CALL(pause, 1, 0, 9 ) |
diff --git a/arch/powerpc/platforms/ps3/spu.c b/arch/powerpc/platforms/ps3/spu.c index 451fad1c92a8..e17fa1432d80 100644 --- a/arch/powerpc/platforms/ps3/spu.c +++ b/arch/powerpc/platforms/ps3/spu.c | |||
@@ -154,7 +154,7 @@ static unsigned long get_vas_id(void) | |||
154 | u64 id; | 154 | u64 id; |
155 | 155 | ||
156 | lv1_get_logical_ppe_id(&id); | 156 | lv1_get_logical_ppe_id(&id); |
157 | lv1_get_virtual_address_space_id_of_ppe(id, &id); | 157 | lv1_get_virtual_address_space_id_of_ppe(&id); |
158 | 158 | ||
159 | return id; | 159 | return id; |
160 | } | 160 | } |