mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 08:06:32 +00:00
🐛 修复了无法切换进程、无法进行浮点运算的bug(将main.c中的init函数名进行修改)
This commit is contained in:
@ -1,30 +1,52 @@
|
||||
#pragma once
|
||||
#include "../common/glib.h"
|
||||
// 进程执行现场的寄存器状态
|
||||
/***************************************************
|
||||
* 版权声明
|
||||
*
|
||||
* 本操作系统名为:MINE
|
||||
* 该操作系统未经授权不得以盈利或非盈利为目的进行开发,
|
||||
* 只允许个人学习以及公开交流使用
|
||||
*
|
||||
* 代码最终所有权及解释权归田宇所有;
|
||||
*
|
||||
* 本模块作者: 田宇
|
||||
* EMail: 345538255@qq.com
|
||||
*
|
||||
*
|
||||
***************************************************/
|
||||
|
||||
#ifndef __PTRACE_H__
|
||||
|
||||
#define __PTRACE_H__
|
||||
|
||||
/*
|
||||
|
||||
*/
|
||||
|
||||
struct pt_regs
|
||||
{
|
||||
ul r15;
|
||||
ul r14;
|
||||
ul r13;
|
||||
ul r12;
|
||||
ul r11;
|
||||
ul r10;
|
||||
ul r9;
|
||||
ul r8;
|
||||
ul rbx;
|
||||
ul rcx;
|
||||
ul rdx;
|
||||
ul rsi;
|
||||
ul rdi;
|
||||
ul rbp;
|
||||
ul ds;
|
||||
ul es;
|
||||
ul rax;
|
||||
ul func;
|
||||
ul err_code;
|
||||
ul rip;
|
||||
ul cs;
|
||||
ul rflags;
|
||||
ul rsp;
|
||||
ul ss;
|
||||
};
|
||||
unsigned long r15;
|
||||
unsigned long r14;
|
||||
unsigned long r13;
|
||||
unsigned long r12;
|
||||
unsigned long r11;
|
||||
unsigned long r10;
|
||||
unsigned long r9;
|
||||
unsigned long r8;
|
||||
unsigned long rbx;
|
||||
unsigned long rcx;
|
||||
unsigned long rdx;
|
||||
unsigned long rsi;
|
||||
unsigned long rdi;
|
||||
unsigned long rbp;
|
||||
unsigned long ds;
|
||||
unsigned long es;
|
||||
unsigned long rax;
|
||||
unsigned long func;
|
||||
unsigned long errcode;
|
||||
unsigned long rip;
|
||||
unsigned long cs;
|
||||
unsigned long rflags;
|
||||
unsigned long rsp;
|
||||
unsigned long ss;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user