mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 12:00:53 +07:00
2874c5fd28
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 3029 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070032.746973796@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
59 lines
1.1 KiB
ArmAsm
59 lines
1.1 KiB
ArmAsm
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Quadword loads and stores
|
|
* for use in instruction emulation.
|
|
*
|
|
* Copyright 2017 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com>
|
|
*/
|
|
|
|
#include <asm/processor.h>
|
|
#include <asm/ppc_asm.h>
|
|
#include <asm/ppc-opcode.h>
|
|
#include <asm/reg.h>
|
|
#include <asm/asm-offsets.h>
|
|
#include <linux/errno.h>
|
|
|
|
/* do_lq(unsigned long ea, unsigned long *regs) */
|
|
_GLOBAL(do_lq)
|
|
1: lq r6, 0(r3)
|
|
std r6, 0(r4)
|
|
std r7, 8(r4)
|
|
li r3, 0
|
|
blr
|
|
2: li r3, -EFAULT
|
|
blr
|
|
EX_TABLE(1b, 2b)
|
|
|
|
/* do_stq(unsigned long ea, unsigned long val0, unsigned long val1) */
|
|
_GLOBAL(do_stq)
|
|
1: stq r4, 0(r3)
|
|
li r3, 0
|
|
blr
|
|
2: li r3, -EFAULT
|
|
blr
|
|
EX_TABLE(1b, 2b)
|
|
|
|
/* do_lqarx(unsigned long ea, unsigned long *regs) */
|
|
_GLOBAL(do_lqarx)
|
|
1: PPC_LQARX(6, 0, 3, 0)
|
|
std r6, 0(r4)
|
|
std r7, 8(r4)
|
|
li r3, 0
|
|
blr
|
|
2: li r3, -EFAULT
|
|
blr
|
|
EX_TABLE(1b, 2b)
|
|
|
|
/* do_stqcx(unsigned long ea, unsigned long val0, unsigned long val1,
|
|
unsigned int *crp) */
|
|
|
|
_GLOBAL(do_stqcx)
|
|
1: PPC_STQCX(4, 0, 3)
|
|
mfcr r5
|
|
stw r5, 0(r6)
|
|
li r3, 0
|
|
blr
|
|
2: li r3, -EFAULT
|
|
blr
|
|
EX_TABLE(1b, 2b)
|