Changeset 150 for trunk/hal/x86_64


Ignore:
Timestamp:
Jul 5, 2017, 3:40:42 PM (7 years ago)
Author:
max@…
Message:

remove debug and unused code

Location:
trunk/hal/x86_64/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_gpt.c

    r148 r150  
    218218void hal_gpt_init(paddr_t firstpa)
    219219{
    220         paddr_t kimg_min_pa, kimg_max_pa;
    221 
    222220        /* Initialize global values */
    223221        pa_avail = firstpa;
     
    225223        kimg_size = ((uint64_t)&__kernel_end - KERNBASE);
    226224        XASSERT(kimg_size % PAGE_SIZE == 0);
    227 
    228         kimg_min_pa = 0;
    229         kimg_max_pa = kimg_min_pa + kimg_size;
    230225
    231226        /* Create cluster0's page tree */
  • trunk/hal/x86_64/core/hal_init.c

    r138 r150  
    304304//      void x86_stop();
    305305//      x86_stop();
    306 
    307         int m = 0;
    308         int v = 1 / m;
    309 
    310         char *buf = NULL;
    311         *buf = (char)0x01;
    312 
    313         x86_printf("ALIVE!\n");
    314 
    315         while (1);
    316306}
    317307
Note: See TracChangeset for help on using the changeset viewer.