diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-02-17 17:40:30 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 04:13:31 -0500 |
commit | 12e126ad229abc718d05600027fcd5794c1e31e5 (patch) | |
tree | 1c28b8685a30c290956184485a997fc398f6d4f1 /arch/sparc64 | |
parent | 52845cdb3b9c4c5fe1c2e295bd14457ff8dd6bcc (diff) |
[SPARC64]: Check for errors in hypervisor_tlb_lock().
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64')
-rw-r--r-- | arch/sparc64/mm/init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c index 950d58082e28..bd9e3205674b 100644 --- a/arch/sparc64/mm/init.c +++ b/arch/sparc64/mm/init.c | |||
@@ -510,6 +510,11 @@ static void __init hypervisor_tlb_lock(unsigned long vaddr, | |||
510 | "=&r" (arg3) | 510 | "=&r" (arg3) |
511 | : "0" (func), "1" (arg0), "2" (arg1), | 511 | : "0" (func), "1" (arg0), "2" (arg1), |
512 | "3" (arg2), "4" (arg3)); | 512 | "3" (arg2), "4" (arg3)); |
513 | if (arg0 != 0) { | ||
514 | prom_printf("hypervisor_tlb_lock[%lx:%lx:%lx:%lx]: " | ||
515 | "errors with %lx\n", vaddr, 0, pte, mmu, arg0); | ||
516 | prom_halt(); | ||
517 | } | ||
513 | } | 518 | } |
514 | 519 | ||
515 | static unsigned long kern_large_tte(unsigned long paddr); | 520 | static unsigned long kern_large_tte(unsigned long paddr); |