Ignore:
Timestamp:
Jun 29, 2017, 3:48:39 PM (5 years ago)
Author:
max@…
Message:

add the irq functions; we will forbid nested critical sections, so
the argument will disappear soon

File:
1 edited

Legend:

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

    r94 r99  
    2828#include <hal_internal.h>
    2929#include <hal_remote.h>
     30#include <hal_irqmask.h>
    3031
    3132#include <memcpy.h>
     
    181182        xptr_t myptr = XPTR(0, &mytest);
    182183
    183         hal_remote_atomic_add(myptr, 3);
    184         x86_printf("-> mytest = %z\n", mytest);
    185 
    186184        hal_remote_spt(myptr, hoho);
    187185        x86_printf("-> mytest = %Z\n", hal_remote_lpt(myptr));
    188186
    189 
    190187        init_bootinfo(&btinfo);
     188
     189        reg_t dummy;
     190        hal_enable_irq(&dummy);
     191
    191192        kernel_init(&btinfo);
     193
    192194        x86_printf("[+] kernel_init called\n");
     195
     196        while (1);
    193197
    194198//      void x86_stop();
    195199//      x86_stop();
    196 
    197         sti();
    198         while (1);
    199200
    200201        int m = 0;
Note: See TracChangeset for help on using the changeset viewer.