thread.h

来自「newos is new operation system」· C头文件 代码 · 共 26 行

H
26
字号
/*** Copyright 2002, Travis Geiselbrecht. All rights reserved.** Distributed under the terms of the NewOS License.*/#ifndef _NEWOS_KERNEL_ARCH_I386_THREAD_H#define _NEWOS_KERNEL_ARCH_I386_THREAD_H#include <kernel/arch/cpu.h>void i386_push_iframe(struct iframe *frame);void i386_pop_iframe(void);struct iframe *i386_get_curr_iframe(void);extern inline struct thread *arch_thread_get_current_thread(void) {	struct thread *t;	read_dr3(t);	return t;}extern inline void arch_thread_set_current_thread(struct thread *t) {	write_dr3(t);}#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?