XINU
Functions
panic.c File Reference

Panic状態に陥った旨のメッセージを表示し、全てのプロセスを停止させる。 More...

#include <xinu.h>
Include dependency graph for panic.c:

Go to the source code of this file.

Functions

void panic (char *msg)
 Panic状態に陥った旨のメッセージを表示し、全てのプロセスを停止させる。 More...
 

Detailed Description

Panic状態に陥った旨のメッセージを表示し、全てのプロセスを停止させる。

Definition in file panic.c.

Function Documentation

◆ panic()

void panic ( char *  msg)

Panic状態に陥った旨のメッセージを表示し、全てのプロセスを停止させる。

割り込み禁止後にPanicメッセージを表示し、無限ループを行う。

Parameters
[in]msg表示するメッセージ

Definition at line 12 of file panic.c.

References disable(), kprintf(), and TRUE.

Referenced by icmp_mkpkt(), irq_dispatch(), lfdballoc(), lfiballoc(), lfsckfmt(), net_init(), netin(), ptinit(), ptsend(), rdsbufalloc(), rdsinit(), rdsprocess(), and rfsinit().

13 {
14  disable(); /* Disable interrupts */
15  kprintf("\n\n\rpanic: %s\n\n", msg);
16  while (TRUE)
17  {
18  ;
19  } /* Busy loop forever */
20 }
syscall kprintf(char *fmt,...)
ポーリングI/Oを使用して、フォーマットされた文字列をコンソールに出力する。
Definition: kprintf.c:98
#define TRUE
Boolean True(1)
Definition: kernel.h:65
intmask disable(void)
割り込み禁止(intr.Sに定義がある)
Here is the call graph for this function:
Here is the caller graph for this function: