From 6fca8abef7e6d7be1a9e6d93dd0f2b7fbc5b28e5 Mon Sep 17 00:00:00 2001 From: Pasha Date: Tue, 20 Feb 2024 18:55:36 +0000 Subject: initial risc-v example --- riscv/include/asm/mmzone.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 riscv/include/asm/mmzone.h (limited to 'riscv/include/asm/mmzone.h') diff --git a/riscv/include/asm/mmzone.h b/riscv/include/asm/mmzone.h new file mode 100644 index 0000000..fa17e01 --- /dev/null +++ b/riscv/include/asm/mmzone.h @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __ASM_MMZONE_H +#define __ASM_MMZONE_H + +#ifdef CONFIG_NUMA + +#include + +extern struct pglist_data *node_data[]; +#define NODE_DATA(nid) (node_data[(nid)]) + +#endif /* CONFIG_NUMA */ +#endif /* __ASM_MMZONE_H */ -- cgit v1.2.1