2
* Copyright 2010 Tilera Corporation. All Rights Reserved.
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License
6
* as published by the Free Software Foundation, version 2.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
11
* NON INFRINGEMENT. See the GNU General Public License for
14
* Assembly code for invoking the HV's fence_incoherent syscall.
17
#include <linux/linkage.h>
18
#include <hv/syscall_public.h>
20
#include <arch/chip.h>
22
#if !CHIP_HAS_MF_WAITS_FOR_VICTIMS()
25
* Invoke the hypervisor's fence_incoherent syscall, which guarantees
26
* that all victims for cachelines homed on this tile have reached memory.
28
STD_ENTRY(__mb_incoherent)
29
moveli TREG_SYSCALL_NR_NAME, HV_SYS_fence_incoherent
32
STD_ENDPROC(__mb_incoherent)