diff options
| author | TheSoeren <imhofabian@gmail.com> | 2024-09-29 14:03:39 +0000 |
|---|---|---|
| committer | TheSoeren <imhofabian@gmail.com> | 2024-09-29 14:03:39 +0000 |
| commit | d2e1c8ba686d7d4ab32eda91c2f532676e9b8acf (patch) | |
| tree | cb2e414e297e6631825c5a9ce301337015980755 /arch/x86_64/src/kernel | |
| parent | 8f91d0ef50e01440f7e6e9f4afa5887f6afefea1 (diff) | |
| download | teachos-d2e1c8ba686d7d4ab32eda91c2f532676e9b8acf.tar.xz teachos-d2e1c8ba686d7d4ab32eda91c2f532676e9b8acf.zip | |
create write_number function
Diffstat (limited to 'arch/x86_64/src/kernel')
| -rw-r--r-- | arch/x86_64/src/kernel/main.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/x86_64/src/kernel/main.cpp b/arch/x86_64/src/kernel/main.cpp index 8ca577a..a5ffbb4 100644 --- a/arch/x86_64/src/kernel/main.cpp +++ b/arch/x86_64/src/kernel/main.cpp @@ -32,10 +32,12 @@ namespace teachos::arch::kernel uint32_t size = tag->size; uint32_t mem_lower = *(uint32_t *)(&size + 32); uint32_t mem_upper = *(uint32_t *)(&size + 64); - if (mem_lower > mem_upper) - { - } - text::write("BUFFER IS HERE", text::common_attributes::green_on_black); + + text::write_number(mem_lower, text::common_attributes::green_on_black); + text::write("Lower memory bound", text::common_attributes::green_on_black); + text::write_number(mem_lower, text::common_attributes::green_on_black); + text::write("Upper memory bound", text::common_attributes::green_on_black); + text::write_number(mem_upper, text::common_attributes::green_on_black); break; } } |
