Changeset 585 for trunk/kernel/mm/ppm.c


Ignore:
Timestamp:
Nov 1, 2018, 12:22:17 PM (6 years ago)
Author:
alain
Message:

Introduce two separate vmm_handle_page_fault() & vmm_handle_cow() functions in vmm.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/mm/ppm.c

    r567 r585  
    3030#include <bits.h>
    3131#include <page.h>
     32#include <dqdt.h>
    3233#include <busylock.h>
    3334#include <queuelock.h>
     
    281282        busylock_release( &ppm->free_lock );
    282283
     284    // update DQDT
     285    dqdt_increment_pages( order );
     286
    283287#if DEBUG_PPM_ALLOC_PAGES
    284288cycle = (uint32_t)hal_get_cycles();
     
    320324        busylock_release( &ppm->free_lock );
    321325
     326    // update DQDT
     327    dqdt_decrement_pages( page->order );
     328
    322329#if DEBUG_PPM_FREE_PAGES
    323330cycle = (uint32_t)hal_get_cycles();
Note: See TracChangeset for help on using the changeset viewer.