From 08f87f769b595151be1afeff53e144f543faa614 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Wed, 06 Dec 2023 09:51:13 +0000 Subject: [PATCH] add dts config --- kernel/arch/mips/kernel/watch.c | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/kernel/arch/mips/kernel/watch.c b/kernel/arch/mips/kernel/watch.c index 0e61a5b..c9263b9 100644 --- a/kernel/arch/mips/kernel/watch.c +++ b/kernel/arch/mips/kernel/watch.c @@ -27,12 +27,15 @@ case 4: write_c0_watchlo3(watches->watchlo[3]); write_c0_watchhi3(watchhi | watches->watchhi[3]); + fallthrough; case 3: write_c0_watchlo2(watches->watchlo[2]); write_c0_watchhi2(watchhi | watches->watchhi[2]); + fallthrough; case 2: write_c0_watchlo1(watches->watchlo[1]); write_c0_watchhi1(watchhi | watches->watchhi[1]); + fallthrough; case 1: write_c0_watchlo0(watches->watchlo[0]); write_c0_watchhi0(watchhi | watches->watchhi[0]); @@ -55,10 +58,13 @@ BUG(); case 4: watches->watchhi[3] = (read_c0_watchhi3() & watchhi_mask); + fallthrough; case 3: watches->watchhi[2] = (read_c0_watchhi2() & watchhi_mask); + fallthrough; case 2: watches->watchhi[1] = (read_c0_watchhi1() & watchhi_mask); + fallthrough; case 1: watches->watchhi[0] = (read_c0_watchhi0() & watchhi_mask); } @@ -85,18 +91,25 @@ BUG(); case 8: write_c0_watchlo7(0); + fallthrough; case 7: write_c0_watchlo6(0); + fallthrough; case 6: write_c0_watchlo5(0); + fallthrough; case 5: write_c0_watchlo4(0); + fallthrough; case 4: write_c0_watchlo3(0); + fallthrough; case 3: write_c0_watchlo2(0); + fallthrough; case 2: write_c0_watchlo1(0); + fallthrough; case 1: write_c0_watchlo0(0); } -- Gitblit v1.6.2