Skip to content

Commit 38ac1b8

Browse files
committed
Increase process_count_max to 127, which will require 128MB RAM
1 parent 878fe51 commit 38ac1b8

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ binaries: $(bt_stage1) $(bt_stage2) $(kernel_core) $(rm_static)
102102
SECTOR_COUNT_BT_STAGE1 = 1
103103
SECTOR_COUNT_SHARED_LIBRARY = 1
104104
SECTOR_COUNT_BT_STAGE2 = 12
105-
SECTOR_COUNT_KERNEL = 55
105+
SECTOR_COUNT_KERNEL = 70
106106

107107
SECTOR_START_BT_STAGE1 = 0
108108
SECTOR_START_SHARED_LIBRARY = $(shell expr $(SECTOR_START_BT_STAGE1) + $(SECTOR_COUNT_BT_STAGE1) )

include/fuzzy/kernel/process/process.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <process.h>
33
#include<stddef.h>
44

5-
#define MAX_PROCESS 10
5+
#define MAX_PROCESS 127
66
// each process will have CS and DS, and kernel
77
// CS and DS is already included in GDT standard table.
88
#define GDT_TABLE_SIZE ((MAX_PROCESS-1)*2+GDT_STD_SIZE)

memory_layout.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
| 0x80000 | 0x9FFFF | 128KB | Extended BIOS Data area |
1313
| 0xA0000 | 0xBFFFF | 128KB | Video memory |
1414
| 0xC0000 | 0xFFFFF | 256KB | BIOS stuff |
15-
| 0x100000 | 0x1FFFFF | 1MB | Kernel future location (not used) |
15+
| 0x100000 | 0x1FFFFF | 1MB | pid 0; Kernel future location (not used) |
1616
| 0x200000 | 0x2FFFFF | 1MB | App pid 1 |
1717
| 0x300000 | 0x3FFFFF | 1MB | App pid 2 |
18-
| ... | .... | 1MB | App ... |
18+
| ... | .... | ... | ... |
19+
| ... | .... | 1MB | App pid 126 |

0 commit comments

Comments
 (0)