The branch main has been updated by imp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=56043cbfddfd072988fafc88f38a1f3de7707f86

commit 56043cbfddfd072988fafc88f38a1f3de7707f86
Author:     Warner Losh <[email protected]>
AuthorDate: 2024-11-22 00:04:00 +0000
Commit:     Warner Losh <[email protected]>
CommitDate: 2024-11-22 00:04:00 +0000

    gicv3: Use the correct mask
    
    Mask off the bits we'll be setting, rather than retaining only those
    bits.
    
    Sponsored by: Netflix
---
 sys/arm64/arm64/gicv3_its.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/arm64/arm64/gicv3_its.c b/sys/arm64/arm64/gicv3_its.c
index 5ecd9b8c0e94..4b554f2dc30a 100644
--- a/sys/arm64/arm64/gicv3_its.c
+++ b/sys/arm64/arm64/gicv3_its.c
@@ -444,7 +444,7 @@ gicv3_its_table_page_size(struct gicv3_its_softc *sc, int 
table)
        reg = gic_its_read_8(sc, GITS_BASER(table));
 
        while (1) {
-               reg &= GITS_BASER_PSZ_MASK;
+               reg &= ~GITS_BASER_PSZ_MASK;
                switch (page_size) {
                case PAGE_SIZE_4K:      /* 4KB */
                        reg |= GITS_BASER_PSZ_4K << GITS_BASER_PSZ_SHIFT;

Reply via email to