aboutsummaryrefslogtreecommitdiff
path: root/kernel/kernel/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/kernel/main.cpp')
-rw-r--r--kernel/kernel/main.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kernel/kernel/main.cpp b/kernel/kernel/main.cpp
index 6968782f..525e25c4 100644
--- a/kernel/kernel/main.cpp
+++ b/kernel/kernel/main.cpp
@@ -54,10 +54,10 @@ auto run_demo() -> void
}
// 4) mount a new filesystem on top of /entrance
- kstd::println("mount /dev/ram16 to /entrance");
- if (kapi::filesystem::mount("/dev/ram16", "/entrance"))
+ kstd::println("mount /dev/ram1 to /entrance");
+ if (kapi::filesystem::mount("/dev/ram1", "/entrance"))
{
- kstd::println("--> successfully mounted /dev/ram16 to /entrance");
+ kstd::println("--> successfully mounted /dev/ram1 to /entrance");
}
else
{
@@ -84,11 +84,11 @@ auto run_demo() -> void
kstd::println("--> read {} bytes from /entrance/information/info_1.txt: {} ", bytes_read, buffer_as_str);
// 7) open device as file
- kstd::println("attempting to open /dev/ram32 as a file");
- auto fd_3 = kapi::filesystem::open("/dev/ram32");
+ kstd::println("attempting to open /dev/ram2 as a file");
+ auto fd_3 = kapi::filesystem::open("/dev/ram2");
if (fd_3)
{
- kstd::println("--> successfully opened /dev/ram32 as a file with file descriptor {}", fd_3.value());
+ kstd::println("--> successfully opened /dev/ram2 as a file with file descriptor {}", fd_3.value());
}
else
{
@@ -98,13 +98,13 @@ auto run_demo() -> void
// 8) read from the device file
kstd::vector<std::byte> buffer_3{2};
bytes_read = *kapi::filesystem::read(fd_3.value(), buffer_3);
- kstd::println("--> read {} bytes from /dev/ram32: {::#04x} ", bytes_read, buffer_3);
+ kstd::println("--> read {} bytes from /dev/ram2: {::#04x} ", bytes_read, buffer_3);
// 9) write to the device file
auto const default_buffer_value = std::byte{0xAA};
kstd::vector<std::byte> write_buffer{default_buffer_value, default_buffer_value};
auto bytes_written = *kapi::filesystem::write(fd_3.value(), write_buffer);
- kstd::println("--> written {} bytes to /dev/ram32: {::#04x}", bytes_written, write_buffer);
+ kstd::println("--> written {} bytes to /dev/ram2: {::#04x}", bytes_written, write_buffer);
// 10) do memory dump to show that the write to the device file had an effect