Commit c4655a20 authored by Heiko Carstens's avatar Heiko Carstens Committed by Vasily Gorbik
Browse files

s390: introduce register pair union



Introduce a register pair union, which is supposed to be used for
inline assemblies where instructions require parameters in even/odd
numbered register pairs.

This is more or less the same register pair construct which was
available for 31 bit builds which was removed with commit 5a79859a
("s390: remove 31 bit support").

Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent 6b8ed170
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef _ASM_S390_TYPES_H
#define _ASM_S390_TYPES_H

#include <uapi/asm/types.h>

#ifndef __ASSEMBLY__

union register_pair {
	unsigned __int128 pair;
	struct {
		unsigned long even;
		unsigned long odd;
	};
};

#endif /* __ASSEMBLY__ */
#endif /* _ASM_S390_TYPES_H */