Spxg

Results 36 comments of Spxg

有个不太理解的地方,TaskContext保存了s寄存器,而这些寄存器都保存在TrapContext里,__switch的时候恢复了TaskContext,之后又跳到__restore恢复了TrapContext,所以TaskContext保存的s寄存器实际没有起到作用吧

> > 有个不太理解的地方,TaskContext保存了s寄存器,而这些寄存器都保存在TrapContext里,__switch的时候恢复了TaskContext,之后又跳到__restore恢复了TrapContext,所以TaskContext保存的s寄存器实际没有起到作用吧 > > TrapContext中保存的寄存器记录了应用陷入S特权级之前的CPU状态,而TaskContext则可以看成一个应用在S特权级进行Trap处理的过程中调用__switch之前的CPU状态。当恢复TaskContext之后会继续进行Trap处理,而__restore恢复TrapContext之后则是会回到用户态执行应用。 > > 另外,保存TrapContext之后进行Trap处理的时候,s0-s11寄存器可能会被覆盖,后面进行任务切换时这些寄存器会被保存到TaskContext中,也就是说这两个Context中的s0-s11也很可能是不同的。 谢谢,了解了。看来我之前对ra和ret有所误解,还以为ret指令执行后,程序直接跳转到ra寄存器所存的地址

hello o8vm, I'm rewriting [the fat32 crate](https://github.com/Spxg/fat32). I hope that would be useful for you.

![bootloader](https://user-images.githubusercontent.com/17252397/95462452-1bc64100-09aa-11eb-939b-08c8d0dcbecf.png) It seems work well in my embedded device.

Hi, new version has released. Tests passed in my [bootloader](https://github.com/play-stm32/bootloader/actions/runs/310523672). I hope that would be useful for you.

I don't know why the test failed ![image](https://github.com/neovim/neovim/assets/17252397/928f4ad0-7a88-4d44-aa9f-84c73314bde3)

> Pardon my ignorance, but I'm having some trouble understanding why this is a problem (i.e., why we should support this scenario) and the concrete repro steps (the GIF goes...

> Would it be possible to add a test case for this? I'll give it a try, but I need some time to learn how to write tests in neovim

> @Spxg looking at this again. I noticed that once you `:edit` the buffer with the inlay hints, the hints do not come back. Is it possible to get them...

> I have this too in my server config for rust-analyzer (rustacean.nvim) : Is it not working properly? You can try my configuration above, just using `nvim-lspconfig`. > are you...