add int code to KePanic
This commit is contained in:
1 parent
6bff37746d
commit
b17c9ac854
10 files changed
+112
-99
No files matched your search
@@ -35,7 +35,7 @@
|
||||
typedef uintptr_t sys_prot_t;
|
||||
|
||||
#define LWIP_PLATFORM_DIAG(x) do { DbgPrint x; } while (0)
|
||||
#define LWIP_PLATFORM_ASSERT(x) do { KePanic("lwIP assert: %s\n", (x)); } while (0)
|
||||
#define LWIP_PLATFORM_ASSERT(x) do { KePanic(KE_PANIC_CODE_DRIVER, "lwIP assert: %s\n", (x)); } while (0)
|
||||
|
||||
unsigned int lwip_port_rand(void);
|
||||
#define LWIP_RAND() ((uint32_t)lwip_port_rand())
|
||||
|
||||
@@ -318,7 +318,7 @@ sys_thread_t sys_thread_new(const char* name, lwip_thread_fn thread, void* arg,
|
||||
(void)stacksize;
|
||||
|
||||
if (!thread)
|
||||
KePanic("lwIP: sys_thread_new called with null entry\n");
|
||||
KePanic(KE_PANIC_CODE_DRIVER, "lwIP: sys_thread_new called with null entry\n");
|
||||
|
||||
THREAD_PRIORITY kp = PriorityNormal;
|
||||
if (prio >= 2)
|
||||
@@ -344,7 +344,7 @@ sys_thread_t sys_thread_new(const char* name, lwip_thread_fn thread, void* arg,
|
||||
kp,
|
||||
&t);
|
||||
if (!KSUCCESS(st))
|
||||
KePanic("lwIP: failed to create kernel thread: 0x%x\n", st);
|
||||
KePanic(KE_PANIC_CODE_DRIVER, "lwIP: failed to create kernel thread: 0x%x\n", st);
|
||||
|
||||
return (sys_thread_t)t;
|
||||
}
|
||||
|
||||
@@ -860,7 +860,7 @@ static void AhciWorker(uintptr_t arg) {
|
||||
KeWaitSemaphore(drv->irpQueue.Semaphore);
|
||||
|
||||
IRP *irp = IrpQueueDequeue(&drv->irpQueue);
|
||||
if (!irp) KePanic("AhciWorker: semaphore fired but queue is empty - IRP accounting bug\n");
|
||||
if (!irp) KePanic(KE_PANIC_CODE_DRIVER, "AhciWorker: semaphore fired but queue is empty - IRP accounting bug\n");
|
||||
|
||||
bool write = !!(irp->Flags & IRP_FLAG_WRITE);
|
||||
KSTATUS st;
|
||||
|
||||
@@ -424,7 +424,7 @@ static void IdeWorker(uintptr_t arg) {
|
||||
|
||||
IRP *irp = IrpQueueDequeue(&gIrpQueue);
|
||||
if (!irp)
|
||||
KePanic("IdeWorker: semaphore fired but IRP queue is empty — accounting bug\n");
|
||||
KePanic(KE_PANIC_CODE_DRIVER, "IdeWorker: semaphore fired but IRP queue is empty — accounting bug\n");
|
||||
|
||||
KSTATUS st;
|
||||
if (irp->Lba + irp->SectorCount > gSectorCount) {
|
||||
|
||||
Reference in new issue
Block a user