Skip to content

Instantly share code, notes, and snippets.

@tapionx
Created September 14, 2012 16:25
Show Gist options
  • Save tapionx/3723018 to your computer and use it in GitHub Desktop.
Save tapionx/3723018 to your computer and use it in GitHub Desktop.
int id;
/* Faccio puntare le aree delle altre CPU all'array dichiarato */
for(id=0;id<NUM_CPU;id++){
if (id == 0){
/* Refer to the Rom Reserved Frame */
pnew_old_areas[id][OLD_SYSBP] = (state_t *)SYSBK_OLDAREA;
pnew_old_areas[id][NEW_SYSBP] = (state_t *)SYSBK_NEWAREA;
pnew_old_areas[id][OLD_TRAP] = (state_t *)PGMTRAP_OLDAREA;
pnew_old_areas[id][NEW_TRAP] = (state_t *)PGMTRAP_NEWAREA;
pnew_old_areas[id][OLD_TLB] = (state_t *)TLB_OLDAREA;
pnew_old_areas[id][NEW_TLB] = (state_t *)TLB_NEWAREA;
pnew_old_areas[id][OLD_INTS] = (state_t *)INT_OLDAREA;
pnew_old_areas[id][NEW_INTS] = (state_t *)INT_NEWAREA;
} else {
pnew_old_areas[id][OLD_SYSBP] = &(new_old_areas[id][OLD_SYSBP]);
pnew_old_areas[id][NEW_SYSBP] = &(new_old_areas[id][NEW_SYSBP]);
pnew_old_areas[id][OLD_TRAP] = &(new_old_areas[id][OLD_TRAP]);
pnew_old_areas[id][NEW_TRAP] = &(new_old_areas[id][NEW_TRAP]);
pnew_old_areas[id][OLD_TLB] = &(new_old_areas[id][OLD_TLB]);
pnew_old_areas[id][NEW_TLB] = &(new_old_areas[id][NEW_TLB]);
pnew_old_areas[id][OLD_INTS] = &(new_old_areas[id][OLD_INTS]);
pnew_old_areas[id][NEW_INTS] = &(new_old_areas[id][NEW_INTS]);
}
/* Populo tutte le new area della CPU id */
populateNewAreas(id);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment