[Bug 229790] src/sys/mips/ingenic/jz4780_timer.c:187: strange bitmask ?

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jul 15 17:43:08 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229790

            Bug ID: 229790
           Summary: src/sys/mips/ingenic/jz4780_timer.c:187: strange
                    bitmask ?
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: dcb314 at hotmail.com

Source code is

        CSR_WRITE_4(sc, JZ_TC_TECR, TESR_TCST0 | TESR_TCST1 | TESR_TCST2 |
            TESR_TCST3 | TESR_TCST4 | TESR_TCST5 | TESR_TCST6 | TESR_TCST3);

Maybe better code:

        CSR_WRITE_4(sc, JZ_TC_TECR, TESR_TCST0 | TESR_TCST1 | TESR_TCST2 |
            TESR_TCST3 | TESR_TCST4 | TESR_TCST5 | TESR_TCST6 | TESR_TCST7);

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list