moon

Results 2 comments of moon

> > Do you all have _both_ `ctags` and `gtags_cscope` enabled as Gutentags modules? I'm wondering if the 2 jobs could be messing with each other... can someone try to...

> __trapret 仅仅是利用它来设置寄存器的初始值 有一点不解,这里我理解其实实际上__trapret恢复了所有寄存器还有几个CSR,但实际上**并不需要**恢复所有的寄存器,只需要恢复设置的下面代码块涉及的寄存器就可以了: ``` rust let mut tf: TrapFrame = unsafe { zeroed() }; tf.x[2] = kstack_top; tf.sepc = entry; tf.sstatus = sstatus::read(); tf.sstatus.set_spp(sstatus::SPP::Supervisor); tf.sstatus.set_spie(true); tf.sstatus.set_sie(false); tf ``` 所以作者使用__trapret是为了方便起见,直接恢复整个中断帧,虽然多恢复了一些,但这样可以直接借用,而不需要重新写一段了,我的理解正确吗?