[Zion] Remove early_dbgln since dbgln no longer allocs.
This commit is contained in:
parent
20d6d2aaaf
commit
c5b9d20c7e
|
@ -40,11 +40,6 @@ void AddProcPrefix() {
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
void early_dbgln(const char* str) {
|
|
||||||
dbgcstr(str);
|
|
||||||
dbgcstr("\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
void dbgln(const glcr::StringView& str) {
|
void dbgln(const glcr::StringView& str) {
|
||||||
AddProcPrefix();
|
AddProcPrefix();
|
||||||
dbg(str);
|
dbg(str);
|
||||||
|
|
|
@ -6,20 +6,8 @@
|
||||||
|
|
||||||
#include "include/ztypes.h"
|
#include "include/ztypes.h"
|
||||||
|
|
||||||
// Debug line without formatting for
|
|
||||||
// before allocations are available.
|
|
||||||
void early_dbgln(const char* str);
|
|
||||||
|
|
||||||
void dbgln(const glcr::StringView& str);
|
void dbgln(const glcr::StringView& str);
|
||||||
|
|
||||||
// TODO: Write a version of StrFormat that
|
|
||||||
// accepts a fix-sized buffer for output
|
|
||||||
// to use in the kernel. That way we make
|
|
||||||
// dbgln and panic calls without allocation.
|
|
||||||
// Optionally, add a dbgln_unbounded method for
|
|
||||||
// things like the Debug syscall where the formatted
|
|
||||||
// string may be fairly large.
|
|
||||||
|
|
||||||
template <typename... Args>
|
template <typename... Args>
|
||||||
void dbgln(const char* str, Args... args) {
|
void dbgln(const char* str, Args... args) {
|
||||||
char buffer[256];
|
char buffer[256];
|
||||||
|
|
|
@ -206,7 +206,7 @@ uint64_t AllocatePage() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#if K_PHYS_DEBUG
|
#if K_PHYS_DEBUG
|
||||||
early_dbgln("[PMM] Boostrap Alloc!");
|
dbgln("[PMM] Boostrap Alloc!");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
uint64_t page = gBootstrap.next_page;
|
uint64_t page = gBootstrap.next_page;
|
||||||
|
|
|
@ -18,11 +18,11 @@
|
||||||
#include "syscall/syscall.h"
|
#include "syscall/syscall.h"
|
||||||
|
|
||||||
extern "C" void zion() {
|
extern "C" void zion() {
|
||||||
early_dbgln("[boot] Init GDT & IDT.");
|
dbgln("[boot] Init GDT & IDT.");
|
||||||
InitGdt();
|
InitGdt();
|
||||||
InitIdt();
|
InitIdt();
|
||||||
|
|
||||||
early_dbgln("[boot] Init Physical Memory Manager.");
|
dbgln("[boot] Init Physical Memory Manager.");
|
||||||
phys_mem::InitBootstrapPageAllocation();
|
phys_mem::InitBootstrapPageAllocation();
|
||||||
KernelVmm kvmm;
|
KernelVmm kvmm;
|
||||||
KernelHeap heap;
|
KernelHeap heap;
|
||||||
|
|
Loading…
Reference in New Issue