Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * This file is subject to the terms and conditions of the GNU General Public
0003  * License.  See the file "COPYING" in the main directory of this archive
0004  * for more details.
0005  *
0006  * Copyright (C) 2008 David Daney
0007  */
0008 #ifndef _ASM_WATCH_H
0009 #define _ASM_WATCH_H
0010 
0011 #include <linux/bitops.h>
0012 
0013 #include <asm/mipsregs.h>
0014 
0015 void mips_install_watch_registers(struct task_struct *t);
0016 void mips_read_watch_registers(void);
0017 void mips_clear_watch_registers(void);
0018 void mips_probe_watch_registers(struct cpuinfo_mips *c);
0019 
0020 #ifdef CONFIG_HARDWARE_WATCHPOINTS
0021 #define __restore_watch(task) do {                  \
0022     if (unlikely(test_bit(TIF_LOAD_WATCH,               \
0023                   &task_thread_info(task)->flags))) {   \
0024         mips_install_watch_registers(task);         \
0025     }                               \
0026 } while (0)
0027 
0028 #else
0029 #define __restore_watch(task) do {} while (0)
0030 #endif
0031 
0032 #endif /* _ASM_WATCH_H */