Page 1 of 1

coding on os2srv for L4/Fiasco

Posted: Fri Dec 21, 2018 3:02 am
by admin
Viking

Joined: 29 Sep 2006
Posts: 44
Location: Sweden
Posted: Wed Nov 07, 2007 4:25 pm

Hi

I have emailed to Yuri about his work on the os2srv and he has no time at present to work on
it, only after NY (new year?). His version now parses the config.sys and tries to start the PROTSHELL
app, but it crashes.

So I have been looking at what and how my own version would look like.
Read the config.sys through a file provider from bmodfs (boot modules).
Some translation layer above file provider to reroute a path, like "c:config.sys" to the file providers
"/config.sys", a kind of "symbolic mount".

To read the a file, one uses something like this: l4fprov_file_open_call()
From the example "tudos/l4/pkg/generic_fprov/examples/cat/main.c".

But now I am stuck how to allocate virtual memory for a new process or "task". Maybe the function
l4rm_area_reserve_region(addr,size,flags,*area) could work? Does anyone know if this creates a new
VM address space or just allocates in the same virtual area in the os2 server?

/Viking

Re: coding on os2srv for L4/Fiasco

Posted: Fri Dec 21, 2018 3:03 am
by admin
prokushev
Site Admin
Joined: 25 Nov 2003
Posts: 103

Posted: Sat Nov 24, 2007 10:16 am

Hi

You can look at my code which can load and execute task pointed by PROTSHELL statament
in CONFIG.SYS. Only problem is started task doesn't work as expected (at my system). Supported
executable format is L4 ELF. If you want to add support for LX I propose to extend loader package
for LX support.

wbr,
Yuri

Posted: Fri Dec 21, 2018 3:04 am
by admin
Viking

Joined: 29 Sep 2006
Posts: 44
Location: Sweden
Posted: Sat Nov 24, 2007 9:36 pm

Hi

Great work! I will have a look at it. By the way, are you using older L4/Fiasco binaries with your
os2srv? I have seen some messages at the L4 newsgroup that it could lead to trouble.

Greetings Viking

Posted: Fri Dec 21, 2018 3:05 am
by admin
prokushev

Site Admin

Joined: 25 Nov 2003
Posts: 103
Posted: Sun Nov 25, 2007 9:17 am

Well, I tested it with binaries build from CVS around this summer. All seems less or more good.