Files
s390-tools/rust/cpacfinfo/src/stfle.c
Finn Callies 57a32d98ef rust/cpacfinfo: New CLI tool to provide CPACF information
The new cpacfinfo command provides information about CPACF, such as which CPACF functions are installed, and make use of the new MSA 13 Query Authentication Information function.

Signed-off-by: Finn Callies <fcallies@linux.ibm.com>
Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
2024-11-22 17:15:58 +01:00

19 lines
402 B
C

// SPDX-License-Identifier: MIT
//
// Copyright IBM Corp. 2024
#include <stdint.h>
uint32_t stfle(uint64_t *stfle_fac_list, uint32_t size)
{
uint32_t reg0 = size - 1;
asm volatile(" lgr %%r0,%[reg0]\n"
" .insn s,0xb2b00000,%[list]\n" /* stfle */
" lgr %[reg0],%%r0\n"
: [reg0] "+&d"(reg0), [list] "+Q"(*stfle_fac_list)
:
: "memory", "cc", "r0");
return reg0;
}