bootloader: Add a debugger() function.

Just like the kernel has.

Put in the same file with the user_memcpy wrapper,
and rename the file to "misc.cpp" (which is a name
also used in libroot_build for a file containing
miscellaneous wrapper functions.)
This commit is contained in:
Augustin Cavalier 2024-03-21 14:21:38 -04:00
parent 97dc7e3bb2
commit 4865dc8736
2 changed files with 8 additions and 1 deletions

View File

@ -118,7 +118,7 @@ for platform in [ MultiBootSubDirSetup ] {
stdio.cpp
system_revision.c
vfs.cpp
vm.cpp
misc.cpp
# libroot
driver_settings.cpp

View File

@ -15,3 +15,10 @@ user_memcpy(void* to, const void* from, size_t size)
memcpy(to, from, size);
return B_OK;
}
void
debugger(const char *message)
{
panic(message);
}