Changeset 1dbc43f in mainline for kernel/generic/src/mm/as.c


Ignore:
Timestamp:
2012-11-22T21:23:47Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
908bb96
Parents:
34ae0a5
Message:

Unify user page fault handling in as_page_fault().

  • Remove lots of architecture-dependent boilerplate code.
File:
1 edited

Legend:

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

    r34ae0a5 r1dbc43f  
    7979#include <syscall/copy.h>
    8080#include <arch/interrupt.h>
     81#include <interrupt.h>
    8182
    8283/**
     
    13631364{
    13641365        if (!THREAD)
    1365                 return AS_PF_FAULT;
     1366                goto page_fault;
    13661367       
    13671368        if (!AS)
    1368                 return AS_PF_FAULT;
     1369                goto page_fault;
    13691370       
    13701371        mutex_lock(&AS->lock);
     
    14441445                    (uintptr_t) &memcpy_to_uspace_failover_address);
    14451446        } else {
    1446                 return AS_PF_FAULT;
     1447                fault_if_from_uspace(istate, "Page fault: %p.", (void *) page);
     1448                panic_memtrap(istate, access, page, NULL);
    14471449        }
    14481450       
Note: See TracChangeset for help on using the changeset viewer.