blob: 4105b6bcd9a6d070da052abb1c52818fcc35ee35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/*
* ========================================================
*
* HCore
* Copyright Mahrouss Logic, all rights reserved.
*
* ========================================================
*/
#include <KernelKit/DebugOutput.hpp>
#include <NewKit/String.hpp>
#include <StorageKit/PRDT.hpp>
namespace HCore {
PRDT::PRDT(const UIntPtr& physAddr) : m_PrdtAddr(physAddr) {
MUST_PASS(physAddr);
kcout << "PRDT::PRDT() {}\r\n";
}
PRDT::~PRDT() {
kcout << "PRDT::~PRDT() {}\r\n";
m_PrdtAddr = 0;
}
const UInt& PRDT::Low() { return m_Low; }
const UShort& PRDT::High() { return m_High; }
const UIntPtr& PRDT::PhysicalAddress() { return m_PrdtAddr; }
PRDT& PRDT::operator=(const UIntPtr& prdtAddress) {
m_PrdtAddr = prdtAddress;
return *this;
}
} // namespace HCore
|