mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
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>
19 lines
402 B
C
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;
|
|
}
|