summaryrefslogtreecommitdiffstats
path: root/sw/z80/kernel/process.c
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2017-08-01 01:32:37 +0200
committerNao Pross <naopross@thearcway.org>2017-08-01 01:32:37 +0200
commitfafba296467b7398a97549a7d1f4dbf1552d6475 (patch)
tree8847debacba5ce7711bb85234d38c8a56d473622 /sw/z80/kernel/process.c
parentnew structure for process management, structures to discuss (diff)
downloadz80uPC-fafba296467b7398a97549a7d1f4dbf1552d6475.tar.gz
z80uPC-fafba296467b7398a97549a7d1f4dbf1552d6475.zip
filesystem structure intro and docs
- new type pid_t and program management mechanism to make it easier to switch to a multitasking kernel - new memory related functions in memory.h to move, copy and manage pages - fix typos
Diffstat (limited to '')
-rw-r--r--sw/z80/kernel/process.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sw/z80/kernel/process.c b/sw/z80/kernel/process.c
index f33ead6..49b86b8 100644
--- a/sw/z80/kernel/process.c
+++ b/sw/z80/kernel/process.c
@@ -2,9 +2,15 @@
struct process proc_table[255];
-int fork(void)
+pid_t newpid(void)
{
+ static pid_t last_pid = 0;
+ return ++last_pid;
+}
+int fork(void)
+{
+
}
int exec(char *path, char *args)
@@ -15,4 +21,4 @@ int exec(char *path, char *args)
int spawn(char *path, char *args)
{
-} \ No newline at end of file
+}