Fork us on GitHub Follow us on Google+ Follow us on Facebook Follow us on Twitter

Opened 4 years ago

Last modified 13 months ago

#599 new defect

Ultimate way to prevent the decrementer from underflowing

Reported by: Jakub Jermář Owned by: Martin Decky
Priority: major Milestone:
Component: helenos/kernel/ppc32 Version: mainline
Keywords: decrementer Cc:
Blocker for: Depends on:
See also:

Description

In kernel/arch/ppc32/src/asm.S, there is:

iret_syscall:

        /* Reset decrementer */

        li r31, 1000
        mtdec r31

This is definitely wrong, especially now when the kernel can program the decrementer with a proper value to achieve its own HZ clock() frequency.

A more systematic approach for preventing the decrementer from underflowing and missing the decrementer exception is needed.

Change History (2)

comment:1 Changed 4 years ago by Jakub Jermář

Milestone: 0.6.00.7.1

comment:2 Changed 13 months ago by Jakub Jermář

Milestone: 0.7.1
Note: See TracTickets for help on using tickets.