Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Mar 2021 12:33:18 GMT
From:      Roger Pau Monné <royger@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: a2c0e94ccfaf - main - xen: remove x86-ism from Xen common code
Message-ID:  <202103011233.121CXI7Q020732@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by royger:

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

commit a2c0e94ccfafc6a873fc6acbaccee8a14f968acf
Author:     Elliott Mitchell <ehem+freebsd@m5p.com>
AuthorDate: 2021-03-01 11:44:54 +0000
Commit:     Roger Pau Monné <royger@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();
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103011233.121CXI7Q020732>