git: f5ad538d9067 - main - i386: fix pmap_trm_arena_last atomic load type
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 18 Jul 2022 18:43:45 UTC
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=f5ad538d90673b0247b571deb38825bc6822cf20 commit f5ad538d90673b0247b571deb38825bc6822cf20 Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2022-07-18 18:42:40 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2022-07-18 18:43:39 +0000 i386: fix pmap_trm_arena_last atomic load type Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/i386/i386/pmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index 6525c51a3127..eaff33bafe84 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -5894,7 +5894,7 @@ pmap_trm_import(void *unused __unused, vmem_size_t size, int flags, vmem_addr_t af, addr, prev_addr; pt_entry_t *trm_pte; - prev_addr = atomic_load_long(&pmap_trm_arena_last); + prev_addr = atomic_load_int(&pmap_trm_arena_last); size = round_page(size) + trm_guard; for (;;) { if (prev_addr + size < prev_addr || prev_addr + size < size ||