mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-08 11:38:10 +00:00
parent
cbd1464ee3
commit
d0eaca9915
@ -1457,6 +1457,9 @@ extern "C" void kernel()
|
|||||||
|
|
||||||
Genode::printf("Kernel started!\n");
|
Genode::printf("Kernel started!\n");
|
||||||
|
|
||||||
|
/* enable kernel timer */
|
||||||
|
pic()->unmask(Timer::IRQ);
|
||||||
|
|
||||||
/* compose kernel CPU context */
|
/* compose kernel CPU context */
|
||||||
static Cpu::Context kernel_context;
|
static Cpu::Context kernel_context;
|
||||||
kernel_context.ip = (addr_t)kernel;
|
kernel_context.ip = (addr_t)kernel;
|
||||||
@ -1499,7 +1502,6 @@ extern "C" void kernel()
|
|||||||
|
|
||||||
/* limit user mode execution in time */
|
/* limit user mode execution in time */
|
||||||
timer()->start_one_shot(user_time);
|
timer()->start_one_shot(user_time);
|
||||||
pic()->unmask(Timer::IRQ);
|
|
||||||
|
|
||||||
/* will jump to the context related mode-switch */
|
/* will jump to the context related mode-switch */
|
||||||
next->scheduled_next();
|
next->scheduled_next();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user