feat: R3b wire drr_emergency_pool_kb / drr_recovery_log_size from FUCK
- drr_apply_config(pool_kb, log_size) before drr_init; pool_limit clamped to compile-time 64KB static pool (min sub-buffer layout enforced, defaults kept on bad values); recovery log size clamped to remaining pool - verified in QEMU: pool_kb=32 -> pool_limit=0x8000, log_capacity=0x80, boot continues (.build_tmp/qemu_serial_r3b.log)
This commit is contained in:
@@ -338,6 +338,9 @@ void kernel_main(void) {
|
||||
log_info("[UTSM] drr init begin");
|
||||
INSTR_TS_DECL(ts_drr);
|
||||
INSTR_TS_BEGIN(ts_drr);
|
||||
/* R3b: FUCK [utsm] drr_emergency_pool_kb / drr_recovery_log_size 接线 */
|
||||
drr_apply_config((u64)ini_get_int(cfg, "utsm", "drr_emergency_pool_kb", 0),
|
||||
(u64)ini_get_int(cfg, "utsm", "drr_recovery_log_size", 0));
|
||||
drr_init();
|
||||
INSTR_TS_END(ts_drr, "drr_init");
|
||||
log_info("[UTSM] drr init ok");
|
||||
|
||||
Reference in New Issue
Block a user