63,13 → 63,15 |
|
// create mapping for exception table at high offset |
#ifdef HIGH_EXCEPTION_VECTORS |
// Note: this mapping cann't be done by hw_map because fixed exception |
// vector is stored at fixed virtual address |
// reserve frame for exception table |
/* Note: this mapping cann't be done by hw_map because fixed |
exception vector is stored at fixed virtual address |
reserve frame for exception table |
*/ |
void* virtaddr = frame_alloc(ONE_FRAME, FRAME_KA); |
page_mapping_insert(AS_KERNEL, EXC_BASE_ADDRESS, KA2PA(virtaddr), flags); |
#else |
#error "Only high eception vector supported now" |
#endif |
// TODO: #else |
|
as_switch(NULL, AS_KERNEL); |
|