mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 08:06:32 +00:00
🆕 实现了异常捕获模块
This commit is contained in:
12
kernel/common/asm.h
Normal file
12
kernel/common/asm.h
Normal file
@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef __ASM__
|
||||
#define __ASM__
|
||||
|
||||
|
||||
#define ENTRY(name)\
|
||||
.global name; \
|
||||
name:
|
||||
|
||||
|
||||
#endif
|
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user