Changes between Version 1 and Version 2 of SuggerimentiPageInit


Ignore:
Timestamp:
May 10, 2017, 7:19:15 AM (7 years ago)
Author:
Mattia Monga
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SuggerimentiPageInit

    v1 v2  
    11Nella scrittura della `page_init` può essere utile riflettere sulle seguenti istruzioni (che potete provare all'interno di `page_init`)
    22
    3 ```c
     3{{{c
    44        assert(IOPHYSMEM == npages_basemem * PGSIZE);
    55        assert(IOPHYSMEM/PGSIZE == npages_basemem);
     
    77        cprintf("nextfree:\t%08x (pa)\t%08x (kva)\n", boot_alloc(0), PADDR(boot_alloc(0)));
    88        assert(boot_alloc(0) == page2kva(&pages[PADDR(boot_alloc(0))/PGSIZE]));
    9 
    10 ```
     9}}}