File:prf.c - ikarishinjieva/unixV6-code-analyze-chs GitHub Wiki

Source

2300 #

2301 /*

2302  */

2303

2304 #include "../param.h"

2305 #include "../seg.h"

2306 #include "../buf.h"

2307 #include "../conf.h"

2308

2309 /*

2310  * Address and structure of the

2311  * KL-11 console device registers.

2312  */

2313 struct

2314 {

2315     int rsr;

2316     int rbr;

2317     int xsr;

2318     int xbr;

2319 };

2320 /* ------------------------- */

2321

2322 /*

2323  * In case console is off,

2324  * panicstr contains argument to last

2325  * call to panic.

2326  */

2327

2328 char *panicstr;

  • panic 置 panicstr
  • 保存调用panic的错误信息
⚠️ **GitHub.com Fallback** ⚠️