Deleted Added
full compact
lv1call.S (224106) lv1call.S (224857)
1/*-
2 * Copyright (C) 2010 Nathan Whitehorn
3 * Copyright (C) 2011 glevand (geoffrey.levand@mail.ru)
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 9 unchanged lines hidden (view full) ---

18 * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
19 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
21 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
22 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
23 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
24 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
1/*-
2 * Copyright (C) 2010 Nathan Whitehorn
3 * Copyright (C) 2011 glevand (geoffrey.levand@mail.ru)
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 9 unchanged lines hidden (view full) ---

18 * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
19 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
21 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
22 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
23 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
24 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/boot/powerpc/ps3/lv1call.S 224106 2011-07-16 19:01:09Z nwhitehorn $
26 * $FreeBSD: head/sys/boot/powerpc/ps3/lv1call.S 224857 2011-08-14 00:20:37Z nwhitehorn $
27 */
28
29/* Hypercall stubs. Note: this is all a hack and should die. */
30
31#define hc .long 0x44000022
32
33#define LD64_IM(r, highest, higher, high, low) \
34 lis r,highest; \

--- 267 unchanged lines hidden (view full) ---

302 clrldi %r5,%r6,32
303 or %r4,%r4,%r5
304 sldi %r5,%r7,32
305 clrldi %r6,%r8,32
306 or %r5,%r5,%r6
307 sldi %r6,%r9,32
308 clrldi %r7,%r10,32
309 or %r6,%r6,%r7
27 */
28
29/* Hypercall stubs. Note: this is all a hack and should die. */
30
31#define hc .long 0x44000022
32
33#define LD64_IM(r, highest, higher, high, low) \
34 lis r,highest; \

--- 267 unchanged lines hidden (view full) ---

302 clrldi %r5,%r6,32
303 or %r4,%r4,%r5
304 sldi %r5,%r7,32
305 clrldi %r6,%r8,32
306 or %r5,%r5,%r6
307 sldi %r6,%r9,32
308 clrldi %r7,%r10,32
309 or %r6,%r6,%r7
310 lwz %r7,8(%r1)
311 lwz %r8,12(%r1)
312 sldi %r7,%r7,32
313 or %r7,%r7,%r8
314 lwz %r8,16(%r1)
315 lwz %r9,20(%r1)
316 sldi %r8,%r8,32
317 or %r8,%r8,%r9
310 ld %r7,8(%r1)
311 ld %r8,16(%r1)
318
319 li %r11,245
320 hc
321 extsw %r3,%r3
322
323 lwz %r5,24(%r1)
324 std %r4,0(%r5)
325

--- 27 unchanged lines hidden ---
312
313 li %r11,245
314 hc
315 extsw %r3,%r3
316
317 lwz %r5,24(%r1)
318 std %r4,0(%r5)
319

--- 27 unchanged lines hidden ---