git: a2c0e94ccfaf - main - xen: remove x86-ism from Xen common code

Roger Pau Monné royger at FreeBSD.org
Mon Mar 1 12:33:18 UTC 2021


The branch main has been updated by royger:

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

commit a2c0e94ccfafc6a873fc6acbaccee8a14f968acf
Author:     Elliott Mitchell <ehem+freebsd at m5p.com>
AuthorDate: 2021-03-01 11:44:54 +0000
Commit:     Roger Pau Monné <royger at FreeBSD.org>
CommitDate: 2021-03-01 12:33:01 +0000

    xen: remove x86-ism from Xen common code
    
    PAT_WRITE_BACK is x86-only, whereas sys/dev/xen could be shared
    between multiple architectures.
    
    Reviewed by: royger
    Differential Revision: https://reviews.freebsd.org/D28831
---
 sys/dev/xen/console/xen_console.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/xen/console/xen_console.c b/sys/dev/xen/console/xen_console.c
index 8e366bba2319..7eed30885e6b 100644
--- a/sys/dev/xen/console/xen_console.c
+++ b/sys/dev/xen/console/xen_console.c
@@ -273,7 +273,7 @@ static void
 xencons_early_init_ring(struct xencons_priv *cons)
 {
 	cons->intf = pmap_mapdev_attr(ptoa(xen_get_console_mfn()), PAGE_SIZE,
-	    PAT_WRITE_BACK);
+	    VM_MEMATTR_WRITE_BACK);
 	cons->evtchn = xen_get_console_evtchn();
 }
 


More information about the dev-commits-src-all mailing list