1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-11-13 11:14:07 -05:00

Add process "procman"

This commit is contained in:
Alex Kotov 2020-11-25 14:15:55 +05:00
parent 7452fcb177
commit 57c2a09944
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
6 changed files with 19 additions and 9 deletions

2
.gitignore vendored
View file

@ -5,6 +5,6 @@
/config.mk
/rootfs/boot/kernelmq.multiboot2
/rootfs/boot/syscallproc
/rootfs/boot/procman
/vendor/*
!/vendor/.keep

View file

@ -4,9 +4,9 @@ AR = $(CCPREFIX)ar
AS = $(CCPREFIX)as
CC = $(CCPREFIX)gcc
GRUBCFG = rootfs/boot/grub/grub.cfg
KERNEL = rootfs/boot/kernelmq.multiboot2
SYSCALLPROC = rootfs/boot/syscallproc
GRUBCFG = rootfs/boot/grub/grub.cfg
KERNEL = rootfs/boot/kernelmq.multiboot2
PROCMAN = rootfs/boot/procman
CFLAGS = -std=gnu99 -ffreestanding -nostdinc -fno-builtin -fno-stack-protector -Wall -Wextra
@ -59,17 +59,21 @@ clean:
rm -f $(OBJS)
rm -f $(IMAGE)
rm -f $(KERNEL)
rm -f $(SYSCALLPROC)
rm -f $(PROCMAN)
make -C procman clean
$(IMAGE): $(GRUBCFG) $(KERNEL) $(SYSCALLPROC)
$(IMAGE): $(GRUBCFG) $(KERNEL) $(PROCMAN)
grub-mkrescue rootfs -o $@
$(KERNEL): $(OBJS)
$(CC) -T linker.ld -o $@ -ffreestanding -nostdlib -lgcc $^
grub-file --is-x86-multiboot2 $@
$(SYSCALLPROC): syscallproc.asm
nasm -f bin syscallproc.asm -o $@
$(PROCMAN): procman/procman
cp procman/procman $(PROCMAN)
procman/procman:
make -C procman procman
%.c.o: %.c
$(CC) -c $< -o $@ $(CFLAGS)

1
procman/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/procman

5
procman/Makefile Normal file
View file

@ -0,0 +1,5 @@
procman: main.asm
nasm -f bin $< -o procman
clean:
rm -f procman

View file

@ -2,5 +2,5 @@ set timeout=0
menuentry "KernelMQ" {
multiboot2 /boot/kernelmq.multiboot2
module2 /boot/syscallproc
module2 /boot/procman
}