build.bat can create the image if missing, split the shell into native, posix and win32, clean up the build by moving executables into directories, the bootloader is no longer responsible to resolve drivers, fix ResolvePath, every process gets a copy of a module (dll), the child always inherits the cwd, fix function exports in posix, add unlink and exit to posix, add path translator to win32, first bugcheck.
This commit is contained in:
1 parent
0c7f461c6d
commit
f80e66ecde
38 files changed
+1620
-462
No files matched your search
+18
-2
@@ -4,8 +4,24 @@
|
||||
#include <stdint.h>
|
||||
|
||||
void KeInitDebug(void (*PrintPtr)(char, uint32_t, uint32_t), int v);
|
||||
__declspec(dllexport) void DbgPrint(const char* fmt, ...);
|
||||
__declspec(dllexport) void DbgPrint(const char* fmt, ...);
|
||||
__declspec(dllexport) void KePrintConsole(const char* buf, size_t len);
|
||||
__declspec(dllexport) void KePanic(const char *fmt, ...);
|
||||
__declspec(dllexport) _Noreturn void KePanic(const char *fmt, ...);
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Fault dispatch - called from the three IDT fault stubs (ke_syscall.asm).
|
||||
//
|
||||
// vector : CPU exception number (0=#DE, 13=#GP, 14=#PF)
|
||||
// rip : faulting instruction pointer (from the CPU exception frame)
|
||||
// errCode : CPU error code (0 for #DE)
|
||||
// cr2 : value of CR2 at fault time (meaningful only for #PF)
|
||||
// cs : CS from the exception frame; RPL bits determine ring
|
||||
//
|
||||
// Kernel-mode faults (cs & 3 == 0) call KePanic and halt.
|
||||
// User-mode faults (cs & 3 == 3) kill the offending process and yield.
|
||||
// ---------------------------------------------------------------------------
|
||||
__declspec(dllexport) _Noreturn void KeFaultDispatch(int vector, uintptr_t rip,
|
||||
uintptr_t errCode, uintptr_t cr2,
|
||||
uintptr_t cs);
|
||||
|
||||
#endif // KE_DEBUG_H
|
||||
Reference in new issue
Block a user