Skip to content

Commit 82e3236

Browse files
author
tthomps
committed
Assign a unique PID to the KERNEL PROCESS.
1 parent 1f331ae commit 82e3236

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

MyOS_1/Build_Number.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
// Define a build number. This number will be incremented by a simple console program called by a post-build event
44
// It's put here in its own file to keep the other program from messing up the source
55
#define \
6-
BUILD_NUMBER 5704
6+
BUILD_NUMBER 5746

MyOS_1/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ void KeStartupPhase2(multiboot_info *multibootInfo)
117117
// Add kernel to list of tasks
118118
tasks[0].inUse = true;
119119
strncpy(tasks[0].imageName, "KERNEL PROCESS", sizeof("KERNEL PROCESS"));
120+
tasks[0].PID = nextPID - 1;
120121

121122
// Initialize interrupts
122123
Interrupts_Init();
@@ -129,7 +130,7 @@ void KeStartupPhase2(multiboot_info *multibootInfo)
129130
//Mouse_Init();
130131

131132
// Execute autoexec.bat (if it exists)
132-
//Autoexec();
133+
Autoexec();
133134

134135
// Say Hello
135136
terminal_writestring("Hello world!\n");

0 commit comments

Comments
 (0)