The task’s stack’s simulation pushing

before pushing, we have the stack is :
notion image
in the pushing, my bugging function using:
to first change the ptos to increase(as the stack grow down, so the increase actually means decline).CONTEXT_STACK_SIZE is 16(=16*4B = 64B = 0x40)
notion image

the erratic global var OS_IS_RUNNING

notion image
this time it’s false, from address: 0x20000454, this is in the task create process for task idle(as you should notice the prio is 63).
notion image
this time it’s wrong with the same address: 0x2000454
seems it have been free.
I figure out it’s due to my bug of the task area, the task should grow down, which means we should pass the ptos like:
we used to pass it with OS_TASK_IDLE_STK[0]
 
Loading...
liamY
liamY
Chasing Possible
最新发布
Enter AMX (Advanced Matrix Extensions)
2025-3-26
ktransformers相关内容学习
2025-2-16
sglang_benchmark
2025-2-7
SnapKV: LLM Knows What You are Looking for Before Generation
2024-12-12
数字电路复习
2024-12-11
CacheBlend: Fast Large Language Model Serving with Cached Knowledge Fusion论文学习
2024-11-23
公告
🎉Liam’s blog🎉
-- 全新上线 ---
👏欢迎comment👏
⚠️由于浏览器缓存的原因,有些内容是更新了的但是需要手动刷新3次左右,页面才会显示更新内容