Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 7af8c0e in mainline


Ignore:
Timestamp:
2010-02-20T22:00:33Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
ba371e1
Parents:
b03a666
Message:

when no address space is set, then returning AS_PF_FAULT is actually much more helpful then dying on the ASSERT
(this way you get a complete stack trace from the faulting code and the simple test doesn't really cost us so much even in the release build)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/as.c

    rb03a666 r7af8c0e  
    952952        if (!THREAD)
    953953                return AS_PF_FAULT;
    954                
    955         ASSERT(AS);
    956 
     954       
     955        if (!AS)
     956                return AS_PF_FAULT;
     957       
    957958        mutex_lock(&AS->lock);
    958         area = find_area_and_lock(AS, page);   
     959        area = find_area_and_lock(AS, page);
    959960        if (!area) {
    960961                /*
Note: See TracChangeset for help on using the changeset viewer.