diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-07-27 15:45:36 +1000 |
---|---|---|
committer | Thomas Huth <thuth@linux.vnet.ibm.com> | 2011-10-12 13:20:00 +0200 |
commit | 35fc16fee354457ab171247d9e2b5387304b5eb3 (patch) | |
tree | 353b81cabc5d1d936c0bbe97e6cb3263a8bb9349 /lib/libhvcall/hvcall.S | |
parent | 32e3430c018ceb8413cb808477449d1968c42497 (diff) | |
download | SLOF-35fc16fee354457ab171247d9e2b5387304b5eb3.zip SLOF-35fc16fee354457ab171247d9e2b5387304b5eb3.tar.gz SLOF-35fc16fee354457ab171247d9e2b5387304b5eb3.tar.bz2 |
Move MMIO accessors to board-js2x and implement h-calls based ones for qemu
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'lib/libhvcall/hvcall.S')
-rw-r--r-- | lib/libhvcall/hvcall.S | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/libhvcall/hvcall.S b/lib/libhvcall/hvcall.S index 5cc0bd7..b36f9cb 100644 --- a/lib/libhvcall/hvcall.S +++ b/lib/libhvcall/hvcall.S @@ -78,6 +78,24 @@ ENTRY(hv_send_logical_lan) HVCALL blr +ENTRY(hv_logical_ci_load) + mr r5,r4 + mr r4,r3 + li r3,H_LOGICAL_CI_LOAD + HVCALL + cmpdi cr0,r3,0 + mr r3,r4 + beqlr + li r3,-1 + blr + +ENTRY(hv_logical_ci_store) + mr r6,r5 + mr r5,r4 + mr r4,r3 + li r3,H_LOGICAL_CI_STORE + blr + .section ".bss" inbuf: .space 16 inlen: .space 4 |