-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkernel.h
More file actions
32 lines (26 loc) · 966 Bytes
/
Copy pathkernel.h
File metadata and controls
32 lines (26 loc) · 966 Bytes
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
32
/*
*****************************************************************************
* My Stupid Kernel
*
*
* File Name: kernel.h
* File Desc: main functions of kernel
* Author: Y.S.Kuo
* Date: 20130119
*****************************************************************************
*/
#ifndef _KERNEL_H_
#define _KERNEL_H_
#include "types.h"
#define KERNEL_MEM_START_ADDR 0x0 /* start from 0x00000000 */
#define KERNEL_PRIV_KERNEL 0x0
#define KERNEL_PRIV_USER 0x3
#define KERNEL_MSG(debug_only, func_tag, ...) \
if(debug_only != TRUE){ \
if(func_tag == TRUE) \
console_printf("[%s] ", __FUNCTION__); \
\
console_printf(__VA_ARGS__); \
}
void kernel_panic();
#endif