aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Mitchell <ehem+freebsd@m5p.com>2021-03-01 11:44:54 +0000
committerRoger Pau Monné <royger@FreeBSD.org>2021-03-01 12:33:01 +0000
commita2c0e94ccfafc6a873fc6acbaccee8a14f968acf (patch)
treef4bea5d1df5bf589438206afd87481749c68d089
parent2c1c1255e41ac3fecd79f9f704c934642f34fd60 (diff)
downloadsrc-a2c0e94ccfafc6a873fc6acbaccee8a14f968acf.tar.gz
src-a2c0e94ccfafc6a873fc6acbaccee8a14f968acf.zip
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
-rw-r--r--sys/dev/xen/console/xen_console.c2
1 files changed, 1 insertions, 1 deletions
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();
}