]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc/ps3: Fix hcall lv1_get_virtual_address_space_id_of_ppe
authorGeoff Levand <geoff@infradead.org>
Tue, 29 Nov 2011 15:38:49 +0000 (15:38 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 8 Dec 2011 03:05:54 +0000 (14:05 +1100)
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>
arch/powerpc/include/asm/lv1call.h
arch/powerpc/platforms/ps3/spu.c

index 807d8951410fb3cfa32ea8647f58c17a02785bc7..3ddf66cb5c66da855f40448405b42b5964707754 100644 (file)
@@ -231,7 +231,7 @@ LV1_CALL(allocate_memory,                               4, 2,   0 )
 LV1_CALL(write_htab_entry,                              4, 0,   1 )
 LV1_CALL(construct_virtual_address_space,               3, 2,   2 )
 LV1_CALL(invalidate_htab_entries,                       5, 0,   3 )
-LV1_CALL(get_virtual_address_space_id_of_ppe,           1, 1,   4 )
+LV1_CALL(get_virtual_address_space_id_of_ppe,           0, 1,   4 )
 LV1_CALL(query_logical_partition_address_region_info,   1, 5,   6 )
 LV1_CALL(select_virtual_address_space,                  1, 0,   7 )
 LV1_CALL(pause,                                         1, 0,   9 )
index 451fad1c92a84aff71598842961999ce6a8f4db8..e17fa1432d80706ad9b5fa2682ea88751027c38a 100644 (file)
@@ -154,7 +154,7 @@ static unsigned long get_vas_id(void)
        u64 id;
 
        lv1_get_logical_ppe_id(&id);
-       lv1_get_virtual_address_space_id_of_ppe(id, &id);
+       lv1_get_virtual_address_space_id_of_ppe(&id);
 
        return id;
 }