chore: enclose everything in namespace matar
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "memory.hh"
|
||||
#include <memory>
|
||||
|
||||
namespace matar {
|
||||
class Bus {
|
||||
public:
|
||||
Bus(const Memory& memory);
|
||||
@@ -19,3 +20,4 @@ class Bus {
|
||||
private:
|
||||
std::shared_ptr<Memory> memory;
|
||||
};
|
||||
}
|
||||
|
@@ -1,5 +1,6 @@
|
||||
#include "bus.hh"
|
||||
|
||||
namespace matar {
|
||||
class CpuImpl;
|
||||
|
||||
class Cpu {
|
||||
@@ -17,3 +18,4 @@ class Cpu {
|
||||
private:
|
||||
std::unique_ptr<CpuImpl> impl;
|
||||
};
|
||||
}
|
||||
|
@@ -3,6 +3,7 @@
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
namespace matar {
|
||||
struct Header {
|
||||
static constexpr uint8_t HEADER_SIZE = 192;
|
||||
|
||||
@@ -44,3 +45,4 @@ struct Header {
|
||||
uint32_t multiboot_entrypoint;
|
||||
uint8_t slave_id;
|
||||
};
|
||||
}
|
||||
|
@@ -7,6 +7,7 @@
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
namespace matar {
|
||||
class Memory {
|
||||
public:
|
||||
static constexpr size_t BIOS_SIZE = 1024 * 16;
|
||||
@@ -63,3 +64,4 @@ class Memory {
|
||||
Header header;
|
||||
void parse_header();
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user