Subversion Repositories HelenOS

Rev

Rev 2276 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2276 Rev 2277
Line 273... Line 273...
273
 *  ... you try to load or store value into invalid memmory address
273
 *  ... you try to load or store value into invalid memmory address
274
 * \param istate State of CPU when data abourt occured
274
 * \param istate State of CPU when data abourt occured
275
 * \param n number of exception
275
 * \param n number of exception
276
 */
276
 */
277
//TODO: remove debug prints in final tested version
277
//TODO: remove debug prints in final tested version
278
void data_abourt(int n, istate_t *istate) {
278
void data_abort(int n, istate_t *istate) {
279
        fault_status_t fsr = read_fault_status_register();
279
        fault_status_t fsr = read_fault_status_register();
280
        uintptr_t  page = read_fault_address_register();
280
        uintptr_t  page = read_fault_address_register();
281
 
281
 
282
    pf_access_t access = get_memmory_access_type( istate->lr, page);
282
    pf_access_t access = get_memmory_access_type( istate->lr, page);
283
 
283
 
Line 304... Line 304...
304
 * Routine that solves exception prefetch_about
304
 * Routine that solves exception prefetch_about
305
 *  ... you try to execute instruction on invalid address
305
 *  ... you try to execute instruction on invalid address
306
 * \param istate State of CPU when prefetch abourt occured
306
 * \param istate State of CPU when prefetch abourt occured
307
 * \param n number of exception
307
 * \param n number of exception
308
 */
308
 */
309
void prefetch_abourt(int n, istate_t *istate) {
309
void prefetch_abort(int n, istate_t *istate) {
310
 // Prefetch can be made be bkpt instruction
310
 // Prefetch can be made be bkpt instruction
311
    print_istate(istate);
311
    print_istate(istate);
312
    dprintf(" prefetch_abourt ... instruction on adress:%x can't be fetched\n", istate->lr);
312
    dprintf(" prefetch_abourt ... instruction on adress:%x can't be fetched\n", istate->lr);
313
 
313
 
314
/* Alf: Will be commented until stack problem will be solved ...
314
/* Alf: Will be commented until stack problem will be solved ...