mirror of
https://github.com/justinian/jsix.git
synced 2025-12-09 16:04:32 -08:00
[srv.init] Load initial programs in srv.init
Add a simple ELF loader to srv.init to load and start any module_program parameters passed from the bootloader. Also creates stacks for newly created threads. Also update thread creation in testapp to create stacks.
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
# vim: ft=python
|
||||
|
||||
module("srv.init",
|
||||
init = module("srv.init",
|
||||
targets = [ "user" ],
|
||||
deps = [ "libc" ],
|
||||
deps = [ "libc", "elf" ],
|
||||
sources = [
|
||||
"loader.cpp",
|
||||
"main.cpp",
|
||||
"modules.cpp",
|
||||
"start.s",
|
||||
])
|
||||
|
||||
init.variables['ldflags'] = ["${ldflags}", "-section-start=.rodata=0x800000"]
|
||||
|
||||
Reference in New Issue
Block a user