mirror of
https://git.checksum.fail/alec/neinterm.git
synced 2025-12-13 06:29:53 +02:00
Add files to repository
This commit is contained in:
23
System/Setup/Environment.HC
Normal file
23
System/Setup/Environment.HC
Normal file
@@ -0,0 +1,23 @@
|
||||
#define NET_TASK_CPU 3
|
||||
|
||||
// Before continuing, we:
|
||||
|
||||
// 1. Mark memory in code heap below 0x1000000 as used.
|
||||
sys_code_bp->mem_free_lst->next->pags = 0;
|
||||
|
||||
// 2. Free up 64MB at bottom of code heap for non-HolyC programs
|
||||
sys_code_bp->mem_free_lst = ShrinkMemBlkByPags(sys_code_bp->mem_free_lst, 131072);
|
||||
|
||||
U0 NoBeep(I8, Bool) {};
|
||||
@patch_jmp_rel32(&Beep, &NoBeep); // Don't delay on beep when entering debugger
|
||||
//@patch_jmp_rel32(&Fault2, &Reboot); // Reboot instead of crashing to the debugger
|
||||
|
||||
// 4. Disable exclusive access to BlkDev and Drv
|
||||
|
||||
Bool FakeLock(U64)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@patch_jmp_rel32(&BlkDevLock, &FakeLock);
|
||||
@patch_jmp_rel32(&DrvLock, &FakeLock);
|
||||
Reference in New Issue
Block a user