提交 728f8126 创建 作者: Nickolai Zeldovich's avatar Nickolai Zeldovich

useful

上级 eecec35f
......@@ -73,6 +73,7 @@ void panic(const char*, ...)
__noret__ __attribute__((format(printf, 1, 2)));
void kerneltrap(struct trapframe *tf) __noret__;
void snprintf(char *buf, u32 n, const char *fmt, ...);
void printtrace(u64 rbp);
#define assert(c) if (!(c)) { cprintf("%s:%d: ", __FILE__, __LINE__); panic("assertion failure"); }
......
......@@ -148,7 +148,7 @@ puts(const char *s)
}
static inline void
void
printtrace(u64 rbp)
{
uptr pc[10];
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论