mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 22:08:12 +00:00
UserspaceEmulator: Put some syscall logging behind DEBUG_SPAM
This commit is contained in:
parent
95a42efc62
commit
1d32c66dde
1 changed files with 4 additions and 0 deletions
|
@ -35,6 +35,8 @@
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
//#define DEBUG_SPAM
|
||||||
|
|
||||||
namespace UserspaceEmulator {
|
namespace UserspaceEmulator {
|
||||||
|
|
||||||
static constexpr u32 stack_location = 0x10000000;
|
static constexpr u32 stack_location = 0x10000000;
|
||||||
|
@ -218,7 +220,9 @@ u32 Emulator::virt_syscall(u32 function, u32 arg1, u32 arg2, u32 arg3)
|
||||||
(void)arg2;
|
(void)arg2;
|
||||||
(void)arg3;
|
(void)arg3;
|
||||||
|
|
||||||
|
#ifdef DEBUG_SPAM
|
||||||
dbgprintf("Syscall: %s (%x)\n", Syscall::to_string((Syscall::Function)function), function);
|
dbgprintf("Syscall: %s (%x)\n", Syscall::to_string((Syscall::Function)function), function);
|
||||||
|
#endif
|
||||||
switch (function) {
|
switch (function) {
|
||||||
case SC_mmap:
|
case SC_mmap:
|
||||||
return virt$mmap(arg1);
|
return virt$mmap(arg1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue