/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2008 David Daney */ #include <linux/sched.h> #include <asm/processor.h> #include <asm/watch.h> /* * Install the watch registers for the current thread. A maximum of * four registers are installed although the machine may have more. */
void mips_install_watch_registers(struct task_struct *t) { struct mips3264_watch_reg_state *watches = &t->thread.watch.mips3264; unsigned int watchhi = MIPS_WATCHHI_G | /* Trap all ASIDs */ MIPS_WATCHHI_IRW; /* Clear result bits */ switch (current_cpu_data.watch_reg_use_cnt) { default: BUG(); case 4: write_c0_watchlo3(watches->watchlo[3]); write_c0_watchhi3(watchhi | watches->watchhi[3]); case 3: write_c0_watchlo2(watches->watchlo[2]); write_c0_watchhi2(watchhi | watches->watchhi[2]); case 2: write_c0_watchlo1(watches->watchlo[1]); write_c0_watchhi1(watchhi | watches->watchhi[1]); case 1: write_c0_watchlo0(watches->watchlo[0]); write_c0_watchhi0(watchhi | watches->watchhi[0]); } }Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Daney | 127 | 86.99% | 1 | 33.33% |
Matt Redfearn | 14 | 9.59% | 1 | 33.33% |
James Hogan | 5 | 3.42% | 1 | 33.33% |
Total | 146 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Daney | 137 | 90.73% | 1 | 33.33% |
Matt Redfearn | 12 | 7.95% | 1 | 33.33% |
James Hogan | 2 | 1.32% | 1 | 33.33% |
Total | 151 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Daney | 83 | 100.00% | 1 | 100.00% |
Total | 83 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Daney | 395 | 89.37% | 1 | 33.33% |
Paul Burton | 24 | 5.43% | 1 | 33.33% |
James Hogan | 23 | 5.20% | 1 | 33.33% |
Total | 442 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Daney | 753 | 90.18% | 1 | 14.29% |
James Hogan | 30 | 3.59% | 2 | 28.57% |
Matt Redfearn | 26 | 3.11% | 2 | 28.57% |
Paul Burton | 24 | 2.87% | 1 | 14.29% |
Ralf Bächle | 2 | 0.24% | 1 | 14.29% |
Total | 835 | 100.00% | 7 | 100.00% |