📄 task.h
字号:
/*
* ApOS (Another Project software for s3c2410)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Copyright caiyuqing
*
*/
#ifndef _TASK_H
#define _TASK_H
#include "../s3c2410/cpu.h"
#include "../kernel/signal.h"
struct task_struct
{
int state;
unsigned int priority;
unsigned int counter;
unsigned int signal;
unsigned int deal_signal;
struct sigaction sigaction[32];
unsigned long blocked;
int alarm;
int utime,stime,cutime,cstime,start_time;
int exit_code;
unsigned int code_segment_base,code_segment_limit;
unsigned int data_segment_base,data_segment_limit;
int pid;
int father;
struct cpu_registers cpu_registers;
};
union task_union
{
struct task_struct task;
char stack[4096];
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -