csrts: Add CSRTS stub and load from kernel

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
2026-07-15 07:53:40 +00:00
parent a45f1df00d
commit d8fed2d089
5 changed files with 99 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
#
# Copyright (c) 2026, Chloe M.
# Provided under the BSD-3 clause
#
# Description: Client server runtime service build script
# Author: Chloe M.
#
include ../mk/user.mk
.PHONY: all
all: server
.PHONY: server
server:
cd server/; $(MAKE) $(PASSDOWN_ARGS)
+26
View File
@@ -0,0 +1,26 @@
#
# Copyright (c) 2026, Chloe M.
# Provided under the BSD-3 clause
#
# Description: Client server runtime service build script
# Author: Chloe M.
#
CFILES = $(shell find . -name "*.c")
OFILES = $(CFILES:.c=.o)
CFLAGS = $(SYS_CFLAGS)
CRT_FILES = $(shell find $(PT_URT_CRT) -name "*.o")
SERVER_OUT = \
$(PT_PROJECT_ROOT)/service/base/boot/csrts.sys
.PHONY: all
all: $(SERVER_OUT)
.PHONY: $(SERVER_OUT)
$(SERVER_OUT): $(OFILES)
$(SYS_LD) $(OFILES) $(CRT_FILES) -T$(USER_LDS) -o $@
%.o: %.c
$(SYS_CC) -c $< $(CFLAGS) -o $@
+14
View File
@@ -0,0 +1,14 @@
/*
* Copyright (c) 2026, Chloe M.
* Provided under the BSD-3 clause.
*
* Description: CSRTS init
* Author: Chloe M.
*/
#include <ptdef.h>
VOID
Main(VOID)
{
}