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.

BIOS_exit() question

Hi all,

I am using Stellaris LM3S9B96, running TI RTOS, my IDE is CCS 5.5

I dont quite understand BIOS_exit(Int stat) function, 

it explains This function is called when a SYS/BIOS executable needs to terminate normally. This function sets the internal SYS/BIOS threadType to ThreadType_Main and then calls System_exit(stat), passing along the 'stat' argument.

what is stat argument? what is difference if it execute BIOS_exit(0), or BIOS_exit(1). 

I would like to call BIOS_exit inside a task. so after it executes BIOS_exit, where the program counter will go to, right after BIOS_start(); I called BIOS_start() inside main function. 

I have some code right after BIOS_start(), how can I exit RTOS and execute the code right after BIOS_start() inside main function.

Thanks in advance