RT-AC56 3.0.0.4.374.37 core
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / tile / lib / mb_incoherent.S
blob989ad7b68d5a24a2e5898dbb0c862a888f25d3fb
1 /*
2  * Copyright 2010 Tilera Corporation. All Rights Reserved.
3  *
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.
7  *
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
12  *   more details.
13  *
14  * Assembly code for invoking the HV's fence_incoherent syscall.
15  */
17 #include <linux/linkage.h>
18 #include <hv/syscall_public.h>
19 #include <arch/abi.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.
27  */
28 STD_ENTRY(__mb_incoherent)
29         moveli TREG_SYSCALL_NR_NAME, HV_SYS_fence_incoherent
30         swint2
31         jrp lr
32         STD_ENDPROC(__mb_incoherent)
34 #endif