Embedded Xinu Operating System
An ongoing research project and educational operating system.
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
Functions | Variables
initialize.c File Reference
#include <xinu.h>
#include <platform.h>
#include <stdint.h>
#include <mutex.h>

Functions

thread main (void)
 
void nulluser (void)
 

Variables

struct thrent thrtab [NTHREAD]
 
struct sement semtab [NSEM]
 
struct monent montab [NMON]
 
qid_typ readylist [NCORES]
 
struct memblock memlist
 
struct bfpentry bfptab [NPOOL]
 
mutex_t quetab_mutex
 
mutex_t thrtab_mutex [NTHREAD]
 
mutex_t semtab_mutex [NSEM]
 
mutex_t serial_lock
 
int thrcount
 
tid_typ thrcurrent [NCORES]
 
void * memheap
 
ulong cpuid
 
struct platform platform
 

Detailed Description

The system begins intializing after the C environment has been established. After intialization, the null thread remains always in a ready (THRREADY) or running (THRCURR) state.

Function Documentation

thread main ( void  )

Main thread. You can modify this routine to customize what Embedded Xinu does when it starts up. The default is designed to do something reasonable on all platforms based on the devices and features configured.