提交 7c00ce81 创建 作者: Frans Kaashoek's avatar Frans Kaashoek

shorten comment

上级 ed396c06
......@@ -36,12 +36,8 @@ cpuid() {
struct cpu*
mycpu(void)
{
// Would prefer to panic but even printing is chancy here: almost everything,
// including cprintf and panic, calls mycpu(), often indirectly through
// acquire and release.
if(readeflags()&FL_IF){
static int n;
if(n++ == 0)
// Would prefer to panic but panic calls mycpu().
cprintf("mycpu called from %x with interrupts enabled\n",
__builtin_return_address(0));
}
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论