mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:17:34 +00:00
Kernel: Fix Syscall.h build when out of context.
This commit is contained in:
parent
0db72786cf
commit
d39f585f35
1 changed files with 4 additions and 0 deletions
|
@ -82,7 +82,9 @@
|
||||||
__ENUMERATE_SYSCALL(gui_set_window_rect) \
|
__ENUMERATE_SYSCALL(gui_set_window_rect) \
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef SERENITY
|
||||||
struct fd_set;
|
struct fd_set;
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace Syscall {
|
namespace Syscall {
|
||||||
|
|
||||||
|
@ -104,6 +106,7 @@ inline constexpr const char* toString(Function function)
|
||||||
return "Unknown";
|
return "Unknown";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef SERENITY
|
||||||
struct SC_mmap_params {
|
struct SC_mmap_params {
|
||||||
uint32_t addr;
|
uint32_t addr;
|
||||||
uint32_t size;
|
uint32_t size;
|
||||||
|
@ -154,6 +157,7 @@ inline dword invoke(Function function, T1 arg1, T2 arg2, T3 arg3)
|
||||||
asm volatile("int $0x80":"=a"(result):"a"(function),"d"((dword)arg1),"c"((dword)arg2),"b"((dword)arg3):"memory");
|
asm volatile("int $0x80":"=a"(result):"a"(function),"d"((dword)arg1),"c"((dword)arg2),"b"((dword)arg3):"memory");
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue