-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsystem.h
More file actions
68 lines (52 loc) · 923 Bytes
/
system.h
File metadata and controls
68 lines (52 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
** SCCS ID: @(#)system.h 1.1 4/17/15
**
** File: system.h
**
** Author: CSCI-452 class of 20145
**
** Contributor:
**
** Description: Miscellaneous OS support declarations
*/
#ifndef _SYSTEM_H_
#define _SYSTEM_H_
#include "types.h"
#include "process.h"
#include "stack.h"
/*
** General (C and/or assembly) definitions
*/
#ifndef __SP_ASM__
/*
** Start of C-only definitions
*/
// default contents of EFLAGS register
#define DEFAULT_EFLAGS (EFLAGS_MB1 | EFLAGS_IF)
/*
** Types
*/
/*
** Globals
*/
/*
** Prototypes
*/
/*
** _create_process(entry,prio)
**
** allocate and initialize a new process' data structures (PCB, stack)
**
** returns:
** pointer to the new PCB
*/
pcb_t *_create_process( uint32_t entry, uint8_t prio );
/*
** _init - system initialization routine
**
** Called by the startup code immediately before returning into the
** first user process.
*/
void _init( void );
#endif
#endif