colonel.exe 🤑, refactor all include directives, AHCI is now interrupt driven, upgrades to IDE, implemented I/O Request Packets, fix numerous keyboard issues, change all for (;;) and while (1) to while (true), DbgPrint guarded by spinlock, fix KeSignalEvent, major KernelMain refactor, added SystemInitThread because of new blocking I/O, replace memcpy manouvers with strncpy and strncat, add: run for ide, runa for ahci, rund for debug and ide, runad for debug and ahci.
This commit is contained in:
1 parent
7f4052f41c
commit
9fa2a7e0db
61 files changed
+1311
-456
No files matched your search
@@ -103,7 +103,7 @@ __declspec(dllexport) void SetLastError(DWORD err) {
|
||||
// ---------------------------------------------------------------------------
|
||||
__declspec(dllexport) _Noreturn void ExitProcess(unsigned int code) {
|
||||
SysExitProcess((int)code);
|
||||
for (;;) ; // unreachable
|
||||
while (true) ; // unreachable
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
@@ -382,7 +382,7 @@ __declspec(dllexport) DWORD GetModuleFileNameA(HANDLE hModule,
|
||||
__declspec(dllexport) BOOL TerminateProcess(HANDLE hProcess, unsigned int uExitCode) {
|
||||
(void)hProcess;
|
||||
SysExitProcess((int)uExitCode);
|
||||
for (;;) ;
|
||||
while (true) ;
|
||||
}
|
||||
|
||||
// STARTUPINFOA – only cb matters for our stub.
|
||||
@@ -839,7 +839,7 @@ __declspec(dllexport) void RaiseException(DWORD dwExceptionCode, DWORD dwExcepti
|
||||
(void)dwExceptionCode; (void)dwExceptionFlags;
|
||||
(void)nNumberOfArguments; (void)lpArguments;
|
||||
// Best-effort: nothing to unwind; just halt.
|
||||
for (;;) ;
|
||||
while (true) ;
|
||||
}
|
||||
|
||||
typedef struct _EXCEPTION_POINTERS { void* ExceptionRecord; void* ContextRecord; } EXCEPTION_POINTERS;
|
||||
@@ -910,7 +910,7 @@ __declspec(dllexport) void RtlUnwindEx(void* TargetFrame, void* TargetIp,
|
||||
(void)TargetFrame; (void)TargetIp; (void)ExceptionRecord;
|
||||
(void)ReturnValue; (void)ContextRecord; (void)HistoryTable;
|
||||
// No real unwind possible; halt rather than corrupt the stack silently.
|
||||
for (;;) ;
|
||||
while (true) ;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user