This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SYSBIOS - execute some none SYSBIOS code?

Other Parts Discussed in Thread: SYSBIOS

Team,

Is it possible for SYSBIOS to execute a stand alone executable like you can execute a stand alone application on Linux or windows?
Can this be done for both a dynamically relocatable application or statically built application (assuming that the executable is built from a plain C code)?
The idea is to be able to add functionnality to an existing system without to change the complete binary.

Thanks and best regards,

Anthony

  • HI Anthony,

    I don't think I understand your question.

    SYS/BIOS is a real-time kernel allowing you to run multiple tasks, Swi's and Hwi's (functions) within the same binary executable. It doesn't behave in a way like an embedded Linux kernel that provides an command line style interface and environment to call other binary executables.

    You can however (if the binary application support that type of execution) have the SYS/BIOS application branch/jump into the application, which means that at that point you give up all the resources to the application now.

  • Hi Tom,

    Thanks for the comments.

    Tom Kopriva said:
    You can however (if the binary application support that type of execution) have the SYS/BIOS application branch/jump into the application, which means that at that point you give up all the resources to the application now.



    I am trying to find out what it takes to be able to do this (and if it at all make sense).
    - I assume that the BIOS context need to be saved before the other apps get the ressources (RAM, CPU, peripherals). Is there something built in BIOS to do this?
    - What would be the scenario to share the RAM between BIOS and this binary? For example is it required to keep a RAM area specifically for this app? or is it possible at run time to identify what RAM range can be given to this apps to run?
    I would guess that if you want BIOS to complete some real time activity you would need to keep the penalty of the context swicth as low as possible so it would make sense to keep a RAM area specifically for this stand alone apps.
    - It is also linked to the way you would build this app (relocatable vs none relocatable).
    In any case you need a loader as I guess there is none built in in BIOS. May be the Dloader can be used then.

    Have you seen such type of things implemented already? Would there be an example available?

    Thanks in advance,

    Anthony

  • Hi Anthony,

    The SYS/BIOS kernel assumes complete control over the CPU, sharing the CPU with another scheduler is not an option (at least we don't support it).

    If you have the application's source code, you can try to call your app's main() function (you'll have to rename your app's main() to something else though). Otherwise, you may need to look into something else such as an embedded Linux kernel.