mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2025-03-31 13:25:09 +01:00
run level flags refactor
This commit is contained in:
parent
7f0d391858
commit
fc3a1d3b77
9 changed files with 33 additions and 33 deletions
src
Binary file not shown.
Binary file not shown.
|
@ -19,4 +19,4 @@
|
|||
//<CTRL-SHIFT-T> on this link to toggle individual commands.
|
||||
"Link: $LK,"Genesis,1:1",A="BF:Genesis,1:1"$\n\n\n"
|
||||
|
||||
"Bttn:$BT,"OKAY",LE=1$\n\n\n\n";
|
||||
"Bttn:$BT,"OKAY",LE=1$\n\n\n\n";
|
||||
|
|
BIN
src/Kernel.BIN.C
BIN
src/Kernel.BIN.C
Binary file not shown.
|
@ -1406,7 +1406,6 @@ $LK,"CFifoU8",A="FL:::/Kernel/KernelA.HH,172"$
|
|||
$LK,"ATAReadNativeMax",A="FL:::/Kernel/BlkDev/DiskATA.CC,194",BI=296$
|
||||
$LK,"BOOT_SRC_ROM",A="FL:::/Kernel/KernelA.HH,3864"$
|
||||
$LK,"MEM_FREE_PAG_HASH_SIZE",A="FL:::/Kernel/KernelA.HH,2858"$
|
||||
$LK,"RLF_AUTO_COMPLETE",A="FL:::/Kernel/KernelA.HH,492"$
|
||||
$LK,"SYS_KERNEL_END",A="FL:::/Kernel/KMain.CC,249"$
|
||||
$LK,"TakeExcept",A="FL:::/Kernel/KExcept.CC,42"$
|
||||
$LK,"_MALLOC",A="FL:::/Kernel/Memory/MAllocFree.CC,5"$
|
||||
|
@ -1426,7 +1425,6 @@ $LK,"UserCmdLine",A="FL:::/Kernel/KTask.CC,414",BI=297$
|
|||
$LK,"GVF_FUN",A="FL:::/Kernel/KernelA.HH,892"$
|
||||
$LK,"IA32F_LME",A="FL:::/Kernel/KernelA.HH,548"$
|
||||
$LK,"LAPICF_APIC_ENABLED",A="FL:::/Kernel/KernelA.HH,518"$
|
||||
$LK,"RLf_AUTO_COMPLETE",A="FL:::/Kernel/KernelA.HH,470"$
|
||||
$LK,"PCIClassFind",A="FL:::/Kernel/PCIBIOS.CC,265",BI=298$
|
||||
$LK,"RECALCF_HAS_CURSOR",A="FL:::/Kernel/KernelA.HH,1385"$
|
||||
$LK,"ATARep",A="FL:::/Kernel/BlkDev/DiskATAId.CC,134",BI=299$
|
||||
|
@ -2577,6 +2575,7 @@ $LK,"Spawn",A="FL:::/Kernel/KTask.CC,242",BI=549$
|
|||
$LK,"CTaskDying",A="FL:::/Kernel/KernelA.HH,3288"$
|
||||
$LK,"CRedSeaBoot",A="FL:::/Kernel/KernelA.HH,2358"$
|
||||
$LK,"WIF_SELF_KEY_DESC",A="FL:::/Kernel/KernelA.HH,1452"$
|
||||
$LK,"RLF_AUTOCOMPLETE",A="FL:::/Kernel/KernelA.HH,492"$
|
||||
$LK,"SET_GS_BASE",A="FL:::/Kernel/KUtils.CC,433"$
|
||||
$LK,"DOC_COLOR_FUN",A="FL:::/Kernel/KernelA.HH,1175"$
|
||||
$LK,"CTRL_ALT_TAB",A="FL:::/Kernel/KernelA.HH,658"$
|
||||
|
@ -2589,6 +2588,7 @@ $LK,"SUF_REM_CTRL_CHARS",A="FL:::/Kernel/KernelA.HH,3753"$
|
|||
$LK,"SC_SHIFT",A="FL:::/Kernel/KernelA.HH,3524"$
|
||||
$LK,"ATA_SET_MAX_EXT",A="FL:::/Kernel/KernelA.HH,2298"$
|
||||
$LK,"CUAsmGlobals",A="FL:::/Kernel/KernelA.HH,2264"$
|
||||
$LK,"RLf_AUTOCOMPLETE",A="FL:::/Kernel/KernelA.HH,470"$
|
||||
$LK,"StrOcc",A="FL:::/Kernel/StrA.CC,462",BI=552$
|
||||
$LK,"DOCT_INS_BIN",A="FL:::/Kernel/KernelA.HH,964"$
|
||||
$LK,"StrMatch",A="FL:::/Kernel/StrA.CC,317"$
|
||||
|
|
|
@ -467,32 +467,32 @@ class CKernel
|
|||
#define RLf_WINMGR 14
|
||||
#define RLf_REGISTRY 15
|
||||
#define RLf_HOME 16
|
||||
#define RLf_AUTO_COMPLETE 17
|
||||
#define RLf_ZENITH_SERVER 18
|
||||
#define RLf_AUTOCOMPLETE 17
|
||||
#define RLf_ZENITH_SERVER 18
|
||||
#define RLf_ONCE_ZENITH 19
|
||||
#define RLf_ONCE_USER 20
|
||||
|
||||
#define RLF_16BIT 0x000001
|
||||
#define RLF_VGA 0x000002
|
||||
#define RLF_32BIT 0x000004
|
||||
#define RLF_PATCHED 0x000008
|
||||
#define RLF_16MEG_SYS_CODE_BP 0x000010
|
||||
#define RLF_64BIT 0x000020
|
||||
#define RLF_16MEG_ZENITH_HEAP_CTRL 0x000040
|
||||
#define RLF_FULL_HEAPS 0x000050
|
||||
#define RLF_RAW 0x000100
|
||||
#define RLF_INTERRUPTS 0x000200
|
||||
#define RLF_BLKDEV 0x000400
|
||||
#define RLF_MP 0x000800
|
||||
#define RLF_COMPILER 0x001000
|
||||
#define RLF_DOC 0x002000
|
||||
#define RLF_WINMGR 0x004000
|
||||
#define RLF_REGISTRY 0x008000
|
||||
#define RLF_HOME 0x010000
|
||||
#define RLF_AUTO_COMPLETE 0x020000
|
||||
#define RLF_ZENITH_SERVER 0x040000
|
||||
#define RLF_ONCE_ZENITH 0x080000
|
||||
#define RLF_ONCE_USER 0x100000
|
||||
#define RLF_16BIT (1<<RLf_16BIT)
|
||||
#define RLF_VGA (1<<RLf_VGA)
|
||||
#define RLF_32BIT (1<<RLf_32BIT)
|
||||
#define RLF_PATCHED (1<<RLf_PATCHED)
|
||||
#define RLF_16MEG_SYS_CODE_BP (1<<RLf_16MEG_SYS_CODE_BP)
|
||||
#define RLF_64BIT (1<<RLf_64BIT)
|
||||
#define RLF_16MEG_ZENITH_HEAP_CTRL (1<<RLf_16MEG_ZENITH_HEAP_CTRL)
|
||||
#define RLF_FULL_HEAPS (1<<RLf_FULL_HEAPS)
|
||||
#define RLF_RAW (1<<RLf_RAW)
|
||||
#define RLF_INTERRUPTS (1<<RLf_INTERRUPTS)
|
||||
#define RLF_BLKDEV (1<<RLf_BLKDEV)
|
||||
#define RLF_MP (1<<RLf_MP)
|
||||
#define RLF_COMPILER (1<<RLf_COMPILER)
|
||||
#define RLF_DOC (1<<RLf_DOC)
|
||||
#define RLF_WINMGR (1<<RLf_WINMGR)
|
||||
#define RLF_REGISTRY (1<<RLf_REGISTRY)
|
||||
#define RLF_HOME (1<<RLf_HOME)
|
||||
#define RLF_AUTOCOMPLETE (1<<RLf_AUTOCOMPLETE)
|
||||
#define RLF_ZENITH_SERVER (1<<RLf_ZENITH_SERVER)
|
||||
#define RLF_ONCE_ZENITH (1<<RLf_ONCE_ZENITH)
|
||||
#define RLF_ONCE_USER (1<<RLf_ONCE_USER)
|
||||
|
||||
#help_index "Processor"
|
||||
|
||||
|
@ -503,7 +503,7 @@ class CKernel
|
|||
#define PIC2_DATA 0xA1
|
||||
#define PIC_EOI 0x20 //End of interrupt
|
||||
|
||||
//Local Advanced Programmable Interrupt Controller
|
||||
//Local Advanced Programmable Interrupt Controller
|
||||
#define LAPIC_BASE 0xFEE00000
|
||||
#define LAPIC_APIC_ID (LAPIC_BASE+0x020)
|
||||
#define LAPIC_APIC_VERSION (LAPIC_BASE+0x030)
|
||||
|
|
Binary file not shown.
|
@ -111,7 +111,7 @@ U0 ACMainFileListTraverse(U8 *files_find_mask)
|
|||
|
||||
public U0 ACInit(U8 *mask=NULL)
|
||||
{//Read files and build AutoComplete statistics.
|
||||
LBtr(&sys_run_level,RLf_AUTO_COMPLETE);
|
||||
LBtr(&sys_run_level,RLf_AUTOCOMPLETE);
|
||||
AutoComplete;
|
||||
while (LBts(&ac.flags,ACf_INIT_IN_PROGRESS))
|
||||
Yield;
|
||||
|
@ -128,9 +128,9 @@ public U0 ACInit(U8 *mask=NULL)
|
|||
|
||||
ACDWordsLoad;
|
||||
RegDefault("AutoComplete", "ac.col = TEXT_COLS-30;ac.row = 15;");
|
||||
RegExe("AutoComplete");
|
||||
RegExe("AutoComplete");
|
||||
LBtr(&ac.flags,ACf_INIT_IN_PROGRESS);
|
||||
LBts(&sys_run_level,RLf_AUTO_COMPLETE);
|
||||
LBts(&sys_run_level,RLf_AUTOCOMPLETE);
|
||||
AutoComplete(ON);
|
||||
}
|
||||
|
||||
|
|
|
@ -212,7 +212,7 @@ U0 ACTaskAlt(I64 sc,I64 last_sc,
|
|||
CTask *,CTask *original_focus_task)
|
||||
{
|
||||
if (sc!=last_sc && TaskValidate(original_focus_task) &&!Bt(&original_focus_task->win_inhibit,WIf_SELF_KEY_DESC)) {
|
||||
Bts(&ac.flags, ACf_LAST_WAS_KEYMAP);
|
||||
Bts(&ac.flags, ACf_LAST_WAS_KEYMAP);
|
||||
ac.old_col = ac.col;
|
||||
ac.old_row = ac.row;
|
||||
|
||||
|
@ -281,7 +281,7 @@ public Bool AutoComplete(Bool val=OFF)
|
|||
while (Bt(&ac.flags,ACf_INIT_IN_PROGRESS))
|
||||
Sleep(10);
|
||||
if (val) {
|
||||
if (Bt(&sys_run_level,RLf_AUTO_COMPLETE)) {
|
||||
if (Bt(&sys_run_level,RLf_AUTOCOMPLETE)) {
|
||||
if (TaskValidate(ac.task))
|
||||
old_val=TRUE;
|
||||
else {
|
||||
|
@ -292,7 +292,7 @@ public Bool AutoComplete(Bool val=OFF)
|
|||
}
|
||||
} else {
|
||||
if (TaskValidate(ac.task)) {
|
||||
if (Bt(&sys_run_level,RLf_AUTO_COMPLETE))
|
||||
if (Bt(&sys_run_level,RLf_AUTOCOMPLETE))
|
||||
old_val=TRUE;
|
||||
Kill(ac.task);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue