void os_smartdsp_init() { os_status status; // The only local variable in main() #if !defined(PSC9X3X_SC_ONLY_BSP) && (OS_MIMIC_PA_ARCH == ON) // Simulate PA psc913xHetBspStubInitialize((void *)SOC_HET_CTRL_BASE, &het_control); #endif // PSC9X3X_SC_ONLY_BSP && OS_MIMIC_PA_ARCH /* OS Initialization - call before any other OS API calls. */ status = osInitialize(); if (status != OS_SUCCESS) OS_ASSERT; /* Interrupts are disabled until osStart() is called. You must not enable interrupts at this point !!! */ /* Place any required initialization code within appInit(). Using local variables inside main() is NOT recommended, because its stack is never restored - osStart() never returns !!! */ status = appInit(); if (status != OS_SUCCESS) OS_ASSERT; /* Start the OS with the background task. OS ticks now start. appBackground() should not return unless there is an error. */ //status = osStart(appBackground); //if (status != OS_SUCCESS) OS_ASSERT; /* Execution reaches this point only if an error occurs. */ }
void boot(void) { osInitialize(); osCreateThread(&idleThread, 1, idle, (void *)0, idleThreadStack+STACKSIZE/sizeof(u64), 10); osStartThread(&idleThread); }
/* * boot -- first routine called */ void boot(void *arg) { osInitialize(); #ifdef SN64 init_debug(); #endif handler = osCartRomInit(); osCreateThread(&mainThread, MAIN_ID, (void(*)(void *))mainproc, arg, (void *)(mainStack+STACKSIZE/8), (OSPri) MAIN_PRIORITY); osStartThread(&mainThread); } /* boot */
/*----------------------- Boot Program start here -----------------------*/ void boot(void) { /* initilize software and hardware */ osInitialize(); /* Source for PARTNER-N64 */ /* ptstart(); */ /* create and start idle thread */ osCreateThread(&idleThread,IDLE_THREAD_ID, idle, (void *)0, (idleThreadStack+STACKSIZE/sizeof(u64)), IDLE_THREAD_PRI); osStartThread(&idleThread); }
/*---------------------------------------------------------------------* * BOOT PART *---------------------------------------------------------------------*/ void boot(void) { /* * Initialize OS */ osInitialize(); /* * Create idle thread & start it */ osCreateThread(&idleThread, TID_IDLE, idle, (void*)0, idleThreadStack+STACKSIZE/8, 10); osStartThread(&idleThread); }
void boot(void) { int i; char *ap; u32 *argp; u32 argbuf[16]; /* * notice that you can't call osSyncPrintf() until you set * up an idle thread. */ osInitialize(); /* * get arguments (options) */ argp = (u32 *) RAMROM_APP_WRITE_ADDR; for (i = 0; i < sizeof(argbuf) / 4; i++, argp++) { osPiRawReadIo((u32) argp, &argbuf[i]); /* Assume no DMA */ } /* * Parse the options */ ap = (char *) argbuf; while (*ap != '\0') { while (*ap == ' ') ap++; if (*ap == '-' && *(ap + 1) == 'd') { debugflag = 1; ap += 2; } else if (*ap == '-' && *(ap + 1) == 'r') { rdp_DRAM_io = 1; ap += 2; } } osCreateThread(&idleThread, 1, idle, (void *) 0, idleThreadStack + STACKSIZE / sizeof(u64), 10); osStartThread(&idleThread); /* * never reached */ }
void boot(void) { /* * notice that you can't call osSyncPrintf() until you set * * up the rmon thread. */ osInitialize(); #ifdef SN64 init_debug(); #endif osCreateThread( &idleThread, 1, idle, (void *) 0, idleThreadStack + STACKSIZE / sizeof(u64), 10 ); osStartThread(&idleThread); }
void boot(void) { /* * notice that you can't call osSyncPrintf() until you set * up an idle thread. */ osInitialize(); #ifdef SN64 init_debug(); #endif handler = osCartRomInit(); osCreateThread(&idleThread, 1, idle, NULL, idleThreadStack + STACKSIZE / sizeof(u64), 10); osStartThread(&idleThread); /* * never reached */ }