From 4c8027ab188faba2324f028e6d947a7adbab36e4 Mon Sep 17 00:00:00 2001 From: skrll Date: Wed, 11 Sep 2019 18:23:31 +0000 Subject: [PATCH] Define PRIxPTE --- sys/arch/aarch64/include/pte.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/arch/aarch64/include/pte.h b/sys/arch/aarch64/include/pte.h index 203d1b653f32..44932a575a62 100644 --- a/sys/arch/aarch64/include/pte.h +++ b/sys/arch/aarch64/include/pte.h @@ -1,4 +1,4 @@ -/* $NetBSD: pte.h,v 1.9 2019/09/11 18:19:35 skrll Exp $ */ +/* $NetBSD: pte.h,v 1.10 2019/09/11 18:23:31 skrll Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -36,7 +36,13 @@ #ifndef _LOCORE typedef uint64_t pd_entry_t; /* L0(512G) / L1(1G) / L2(2M) table entry */ + +#ifndef __BSD_PTENTRY_T__ +#define __BSD_PTENTRY_T__ typedef uint64_t pt_entry_t; /* L3(4k) table entry */ +#define PRIxPTE PRIx64 +#endif /* __BSD_PTENTRY_T__ */ + #endif /* _LOCORE */ /*