xv6-simplified 0.1
简化版xv6
Loading...
Searching...
No Matches
Functions | Variables
trap.c File Reference

中断实现 More...

#include "include/types.h"
#include "include/param.h"
#include "include/memlayout.h"
#include "include/riscv.h"
#include "include/proc.h"
#include "include/defs.h"
Include dependency graph for trap.c:

Functions

void kernelvec ()
 
int devintr ()
 软件中断、外部中断
 
void trapinit (void)
 初始化trap
 
void trapinithart (void)
 设置为在内核中接收异常和陷阱
 
void usertrap (void)
 处理用户空间产生的中断、异常或系统调用
 
void usertrapret (void)
 返回用户空间
 
void kerneltrap ()
 内核产生的中断或异常的处理
 
void clockintr ()
 时钟中断
 

Variables

uint ticks
 
char trampoline []
 
char uservec []
 
char userret []
 

Detailed Description

中断实现

Date
23.5.7
Author
yrz
Version
0.1 @status Stable

Function Documentation

◆ clockintr()

void clockintr ( )

时钟中断

Here is the call graph for this function:
Here is the caller graph for this function:

◆ devintr()

int devintr ( )

软件中断、外部中断

Returns
计时器中断返回2,外设返回1,无法识别返回0
Here is the call graph for this function:
Here is the caller graph for this function:

◆ kerneltrap()

void kerneltrap ( )

内核产生的中断或异常的处理

Here is the call graph for this function:

◆ kernelvec()

void kernelvec ( )
Here is the caller graph for this function:

◆ trapinit()

void trapinit ( void  )

初始化trap

Here is the caller graph for this function:

◆ trapinithart()

void trapinithart ( void  )

设置为在内核中接收异常和陷阱

Here is the call graph for this function:
Here is the caller graph for this function:

◆ usertrap()

void usertrap ( void  )

处理用户空间产生的中断、异常或系统调用

Here is the call graph for this function:
Here is the caller graph for this function:

◆ usertrapret()

void usertrapret ( void  )

返回用户空间

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ ticks

uint ticks

◆ trampoline

char trampoline[]
extern

◆ userret

char userret[]

◆ uservec

char uservec[]