-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusermode.h
22 lines (18 loc) · 1.02 KB
/
usermode.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*****************************************************************************/
/* File: usermode.c */
/* */
/* Description: Header file for user mode process support. */
/* */
/* Author: Shoily O Rahman <[email protected]> */
/* */
/* Date: July 7, 2020 */
/* */
/*****************************************************************************/
#ifndef _USERMODE_H
#define _USERMODE_H
// USER_MODE_VIRT_TEXT has to match with the value in um.ld
#define USER_MODE_VIRT_STACK 0x10001000
#define USER_MODE_VIRT_TEXT 0x10004000
void initialize_usermode();
void switch_to_um();
#endif