Sha256: 421b11cc7381427d1e2acb4e681c9836ccfea0b79930492f0a99ec4d27495e58

Contents?: true

Size: 2 KB

Versions: 38

Compression:

Stored size: 2 KB

Contents

/* Implementation of stack swtiching routines for OpenPOWER 64-bit ELF ABI
   The specification can be found at
   http://openpowerfoundation.org/wp-content/uploads/resources/leabi/content/ch_preface.html

   This ABI is usually used by the ppc64le targets.
*/

#include "psm.h"

.text
.abiversion 2


.globl rust_psm_stack_direction
.p2align 4
.type rust_psm_stack_direction,@function
rust_psm_stack_direction:
/* extern "C" fn() -> u8 */
.cfi_startproc
    li 3, STACK_DIRECTION_DESCENDING
    blr
.rust_psm_stack_direction_end:
.size       rust_psm_stack_direction,.rust_psm_stack_direction_end-rust_psm_stack_direction
.cfi_endproc


.globl rust_psm_stack_pointer
.p2align 4
.type rust_psm_stack_pointer,@function
rust_psm_stack_pointer:
/* extern "C" fn() -> *mut u8 */
.cfi_startproc
    mr 3, 1
    blr
.rust_psm_stack_pointer_end:
.size       rust_psm_stack_pointer,.rust_psm_stack_pointer_end-rust_psm_stack_pointer
.cfi_endproc


.globl rust_psm_replace_stack
.p2align 4
.type rust_psm_replace_stack,@function
rust_psm_replace_stack:
/* extern "C" fn(3: usize, 4: extern "C" fn(usize), 5: *mut u8) */
.cfi_startproc
    addi 5, 5, -32
    mtctr 4
    mr 12, 4
    mr 1, 5
    bctr
.rust_psm_replace_stack_end:
.size       rust_psm_replace_stack,.rust_psm_replace_stack_end-rust_psm_replace_stack
.cfi_endproc



.globl rust_psm_on_stack
.p2align 4
.type rust_psm_on_stack,@function
rust_psm_on_stack:
/* extern "C" fn(3: usize, 4: usize, 5: extern "C" fn(usize, usize), 6: *mut u8) */
.cfi_startproc
    mflr 0
    std 0, -8(6)
    std 2, -24(6)
    sub 6, 6, 1
    addi 6, 6, -48
    stdux 1, 1, 6
    .cfi_def_cfa r1, 48
    .cfi_offset r1, -48
    .cfi_offset r2, -24
    .cfi_offset lr, -8
    mr 12, 5
    mtctr 5
    bctrl
    ld 2, 24(1)
    .cfi_restore r2
    ld 0, 40(1)
    mtlr 0
    .cfi_restore lr
    /* FIXME: after this instructin backtrace breaks until control returns to the caller */
    ld 1, 0(1)
    blr
.rust_psm_on_stack_end:
.size       rust_psm_on_stack,.rust_psm_on_stack_end-rust_psm_on_stack
.cfi_endproc

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/psm-0.1.24/src/arch/powerpc64_openpower.s
wasmtime-28.0.0 ./ext/cargo-vendor/psm-0.1.24/src/arch/powerpc64_openpower.s
wasmtime-27.0.0 ./ext/cargo-vendor/psm-0.1.24/src/arch/powerpc64_openpower.s
wasmtime-26.0.0 ./ext/cargo-vendor/psm-0.1.23/src/arch/powerpc64_openpower.s
wasmtime-25.0.2 ./ext/cargo-vendor/psm-0.1.21/src/arch/powerpc64_openpower.s
wasmtime-25.0.1 ./ext/cargo-vendor/psm-0.1.21/src/arch/powerpc64_openpower.s
wasmtime-25.0.0 ./ext/cargo-vendor/psm-0.1.21/src/arch/powerpc64_openpower.s
wasmtime-24.0.0 ./ext/cargo-vendor/psm-0.1.21/src/arch/powerpc64_openpower.s
wasmtime-23.0.2 ./ext/cargo-vendor/psm-0.1.21/src/arch/powerpc64_openpower.s
wasmtime-22.0.0 ./ext/cargo-vendor/psm-0.1.21/src/arch/powerpc64_openpower.s
wasmtime-21.0.1 ./ext/cargo-vendor/psm-0.1.21/src/arch/powerpc64_openpower.s
wasmtime-20.0.2 ./ext/cargo-vendor/psm-0.1.21/src/arch/powerpc64_openpower.s
wasmtime-20.0.0 ./ext/cargo-vendor/psm-0.1.21/src/arch/powerpc64_openpower.s
wasmtime-18.0.3 ./ext/cargo-vendor/psm-0.1.21/src/arch/powerpc64_openpower.s
wasmtime-17.0.1 ./ext/cargo-vendor/psm-0.1.21/src/arch/powerpc64_openpower.s
wasmtime-17.0.0 ./ext/cargo-vendor/psm-0.1.21/src/arch/powerpc64_openpower.s
wasmtime-16.0.0 ./ext/cargo-vendor/psm-0.1.21/src/arch/powerpc64_openpower.s
wasmtime-15.0.1 ./ext/cargo-vendor/psm-0.1.21/src/arch/powerpc64_openpower.s
wasmtime-15.0.0 ./ext/cargo-vendor/psm-0.1.21/src/arch/powerpc64_openpower.s
wasmtime-14.0.4 ./ext/cargo-vendor/psm-0.1.21/src/arch/powerpc64_openpower.s