#NEWLINE# def proc_init( ) : #NEWLINE# #INDENT# rp = ( BEG_PROC_ADDR + 1 ) #NEWLINE# i = ( ( - NR_TASKS ) + 1 ) #NEWLINE# while ( rp < END_PROC_ADDR ) : #NEWLINE# #INDENT# rp [ 'p_rts_flags' ] = RTS_SLOT_FREE #NEWLINE# rp [ 'p_magic' ] = PMAGIC #NEWLINE# rp [ 'p_nr' ] = i #NEWLINE# rp [ 'p_endpoint' ] = _ENDPOINT ( 0 , rp [ 'p_nr' ] ) #NEWLINE# rp [ 'p_scheduler' ] = None #NEWLINE# rp [ 'p_priority' ] = 0 #NEWLINE# rp [ 'p_quantum_size_ms' ] = 0 #NEWLINE# arch_proc_reset ( rp ) #NEWLINE# rp += 1 #NEWLINE# i += 1 #NEWLINE# #UNINDENT# sp = ( BEG_PRIV_ADDR + 1 ) #NEWLINE# i = 1 #NEWLINE# while ( sp < END_PRIV_ADDR ) : #NEWLINE# #INDENT# sp [ 's_proc_nr' ] = NONE #NEWLINE# sp [ 's_id' ] = sys_id_t ( i ) #NEWLINE# ppriv_addr [ i ] = sp #NEWLINE# sp [ 's_sig_mrg' ] = NONE #NEWLINE# sp [ 's_bak_sig_mgr' ] = NONE #NEWLINE# sp += 1 #NEWLINE# i += 1 #NEWLINE# #UNINDENT# idle_priv . s_flags = IDL_F #NEWLINE# for i in range ( CONFIG_MAX_CPUS ) : #NEWLINE# #INDENT# ip = get_cpu_var_ptr ( i , idle_proc ) #NEWLINE# ip [ 'p_endpoint' ] = IDLE #NEWLINE# ip [ 'p_priv' ] = idle_priv #NEWLINE# ip [ 'p_rts_flags' ] |= RTS_PROC_STOP #NEWLINE# _set_idle_name ( ip [ 'p_name' ] , sp )