From 610f91d87152cbe48d3054fcf437d8239da6ef35 Mon Sep 17 00:00:00 2001 From: Amlal Date: Sat, 21 Dec 2024 21:59:13 +0100 Subject: IMP: :boom: Breaking changes some checks are needed to be done. Signed-off-by: Amlal --- dev/Kernel/HALKit/64x0/HalVirtualMemory.cc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 dev/Kernel/HALKit/64x0/HalVirtualMemory.cc (limited to 'dev/Kernel/HALKit/64x0/HalVirtualMemory.cc') diff --git a/dev/Kernel/HALKit/64x0/HalVirtualMemory.cc b/dev/Kernel/HALKit/64x0/HalVirtualMemory.cc new file mode 100644 index 00000000..6dd40325 --- /dev/null +++ b/dev/Kernel/HALKit/64x0/HalVirtualMemory.cc @@ -0,0 +1,17 @@ +/* ------------------------------------------- + + Copyright (C) 2024, TQ B.V, all rights reserved. + +------------------------------------------- */ + +#include +#include + +using namespace Kernel; + +/// @brief Flush system TLB, looks like the POWER version, as it acts the same, no specific instruction for that. +/// @note The 88K MMU should be present as well. +EXTERN_C void hal_flush_tlb() +{ + asm volatile("invltlb"); +} -- cgit v1.2.3