This commit is contained in:
Linehu
2026-08-09 22:20:01 +08:00
parent 8717ea8f20
commit 2a50fa58c7
185 changed files with 19890 additions and 710 deletions
+30 -25
View File
@@ -1,5 +1,5 @@
# Deshab Kernel Configuration
# 修改此文件可自定义内核启动行为、驱动加载和算法参数
# Deshab Kernel Configuration (DEV - QEMU 测试)
# dev_mode=1 自动跑 shell.elf 测试序列, 调试全开, QEMU 验证选项
# 路径: SYSTEM/system/deshab64/FUCK
# UTSM 通过 Limine boot module 预加载读取(cmdline="fuck:config")
# DSK 通过 FAT32 子目录遍历读取(路径 "SYSTEM /DESHAB64 /FUCK ")
@@ -8,16 +8,22 @@
[boot]
vmm=1
linux_guest=1
# OpenXJ380 第二 guest(需 SYSTEM/boot/xj380.krl 存在,limine.conf 取消注释)
# 启动后 host 挂起直至 XJ380 guest 终止;无模块时优雅跳过
xj380_guest=1
selftest=1
dev_mode=0
# 真机安全: LA57 检测 (0=不检测, 1=检测并警告, 2=检测并拒绝启动)
# 真机若 BIOS 启用 5 级分页, 设 2 可阻止启动避免数据损坏
la57_guard=2
# 真机安全: PCIe MCFG 检测 (0=不检测, 1=检测并记录)
mcfg_check=1
# 真机安全: 允许的最大物理地址宽度 (超过则拒绝启动, 0=不限制)
# 典型值: 46 (QEMU), 48 (多数实机), 52 (服务器)
dev_mode=1
# QEMU 不需要真机安全检测
la57_guard=0
mcfg_check=0
max_phys_addr_bits=0
# 实机启动日志持久化:把启动日志写入磁盘原始扇区(开发测试用)
# 启用后启动时把内存日志缓冲区写到指定扇区区间
# 事后用 WinHex/dd 读取对应扇区即可查看完整启动日志
# 注意: 写入 LBA 1-33 会覆盖 GPT, 测试盘建议从 34 开始或测试后重新烧录
disk_log=1
disk_log_start=2
disk_log_end=1000
[drivers]
timer=1
@@ -35,10 +41,7 @@ e1000=1
virtio_net=1
ath9k=0
ps2kbd=1
# 真机安全: 禁用不稳定的真机特性
# ioapic_init=0 可禁用 IOAPIC 重定向表编程 (留 PIC 模式)
ioapic_init=1
# lapic_enable=0 可禁用 LAPIC software enable (留 firmware 状态)
lapic_enable=1
# B7: APIC 路由接管开关 (apic.drv 自解析, 缺失=0)
# 0=保持 8259 PIC 路由 (默认, 现状不回归)
@@ -46,21 +49,12 @@ lapic_enable=1
# + tick 链路自验 (vector 0x20, 失败自动完整降级回 PIC 并注销钩子)
apic_route=1
# B7 阶段2: 随 apic_route=1 额外放开 legacy IRQ1(键盘)/12(鼠标)/11(e1000)
# UTSM EOI 钩子已落地, 这些线可持续投递 (ISA 线 edge/high, e1000 强制
# level/active-low 按 PCI INTx 规范), 默认 0 关闭
# QEMU 全链路已验证 (B1 向导按键/B2 启动/e1000 IRQ11), 真机冒烟前可回 0
# QEMU 全链路已验证 (B1 向导按键/B2 启动/e1000 IRQ11)
apic_route_legacy=1
# B7 阶段3: NVMe MSI/MSI-X 中断驱动开关 (nvme.drv 自解析, 缺失=1)
# 1=自动尝试: 先 MSI cap, 缺则 MSI-X (QEMU nvme 只有 MSI-X) — 表项编程
# + 动态向量 (0x40-0xDF 池) + Create IOCQ IEN=1/IV=0 + INTMC 解除;
# 任何前提缺失 (无 MSI/MSI-X cap/旧内核无向量分配器/回读不符)
# 自动回退纯轮询, 行为与旧版一致
# 0=强制纯轮询 (CQE phase bit), 与 B7 阶段3 之前完全一致
nvme_msi=1
# B7 诊断 (apic.drv): 1=启用 HPET 绝对时基对拍 (tick 2x 定论实验) +
# IRQ12 鼠标流观察窗 (配合 QEMU monitor mouse_move), 只增观测不改路由语义
# 每次启动 +10s (6s 观察窗), 定论已完成 (PIT mode3 IOAPIC edge 双触发
# ~200Hz), 常规构建保持 0
# B7 诊断 (apic.drv): 1=启用 HPET 绝对时基对拍 + IRQ12 鼠标流观察窗
# 常规构建保持 0
apic_diag=0
[utsm]
@@ -99,3 +93,14 @@ dsk_trace=1
block_trace=1
net_trace=0
input_trace=1
[compat]
# 兼容层动态链接库搜索路径配置
# lib_path: FAT32 根目录下存放 .dll/.so 的子目录名
lib_path=lib
# linux_lib_guest_path: Linux guest 内库目录路径
linux_lib_guest_path=/usr/lib/deshab
# linux_lib_sync: 启动时推送 .so 到 Linux guest (0=关闭, 1=开启)
linux_lib_sync=1
# pe_dll_search: PE shim miss 后从 SYSTEM/lib 加载真实 DLL (0=关闭, 1=开启)
pe_dll_search=1
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -3,4 +3,5 @@ network.device=auto
network.name=
network.password=
network.ip=dhcp
network.gateway=auto
network.dns=auto
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.