🆕 实现了异常捕获模块

This commit is contained in:
fslongjin
2022-01-25 18:04:18 +08:00
parent 14374d5faf
commit 06cfb1ceb9
10 changed files with 744 additions and 29 deletions

12
kernel/common/asm.h Normal file
View File

@ -0,0 +1,12 @@
#pragma once
#ifndef __ASM__
#define __ASM__
#define ENTRY(name)\
.global name; \
name:
#endif

View File

@ -26,6 +26,11 @@
#define ABS(x) ((x) > 0 ? (x) : -(x)) // 绝对值
// 定义类型的缩写
typedef unsigned long ul;
typedef unsigned long long ull;
typedef long long ll;
//链表数据结构
struct List
{