git: 4252aea1d20b - stable/13 - i386: fix pmap_trm_arena_last atomic load type

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Mon, 08 Aug 2022 19:09:14 UTC
The branch stable/13 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=4252aea1d20bda8440fef933a78c16252cf97aa9

commit 4252aea1d20bda8440fef933a78c16252cf97aa9
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2022-07-18 18:42:40 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-08-08 15:00:32 +0000

    i386: fix pmap_trm_arena_last atomic load type
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    
    (cherry picked from commit f5ad538d90673b0247b571deb38825bc6822cf20)
---
 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 23bac689f558..a3af2e7180fc 100644
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -5890,7 +5890,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 ||