Merge with Linux 2.4.0-test6-pre9.
[linux-2.6/linux-mips.git] / include / asm-mips64 / watch.h
blobb9c744ce85a1107c92932f7749d860889658121d
1 /* $Id: watch.h,v 1.1 1999/09/27 16:01:41 ralf Exp $
3 * This file is subject to the terms and conditions of the GNU General Public
4 * License. See the file "COPYING" in the main directory of this archive
5 * for more details.
7 * Copyright (C) 1996, 1997, 1998, 1999 by Ralf Baechle
8 */
9 #ifndef _ASM_WATCH_H
10 #define _ASM_WATCH_H
12 #include <linux/linkage.h>
15 * Types of reference for watch_set()
17 enum wref_type {
18 wr_save = 1,
19 wr_load = 2
22 extern char watch_available;
24 extern asmlinkage void __watch_set(unsigned long addr, enum wref_type ref);
25 extern asmlinkage void __watch_clear(void);
26 extern asmlinkage void __watch_reenable(void);
28 #define watch_set(addr, ref) \
29 if (watch_available) \
30 __watch_set(addr, ref)
31 #define watch_clear() \
32 if (watch_available) \
33 __watch_clear()
34 #define watch_reenable() \
35 if (watch_available) \
36 __watch_reenable()
38 #endif _ASM_WATCH_H