summaryrefslogtreecommitdiff
path: root/kernel/panic.h
blob: 6ed723a6a2ce76fe68fc7f61ba684e942d0ac26a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef PANIC_H
#define PANIC_H

#include "types.h"

typedef struct {
	uint32_t ss;
	uint32_t ds;
	
	uint32_t edi;
	uint32_t esi;
	uint32_t ebp;
	uint32_t esp;
	uint32_t ebx;
	uint32_t edx;
	uint32_t ecx;
	uint32_t eax;
	
	uint32_t num;
	uint32_t error_code;
	
	uint32_t eip;
	uint32_t cs;
	uint32_t eflags;
	uint32_t user_esp;
	uint32_t user_ss;
} panic_stack_t;

void panic(panic_stack_t stack);

#endif