summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/HALKit/64x0/HalVirtualMemory.cc
blob: 52ced44f8f5255b6ca09e8f35fd75e7db79d5d17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* -------------------------------------------

	Copyright (C) 2024, t& Labs, all rights reserved.

------------------------------------------- */

#include <HALKit/POWER/Processor.h>
#include <KernelKit/DebugOutput.h>

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");
}