Opened 10 years ago

Last modified 7 years 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 by Jakub Jermář, 10 years ago

Milestone: 0.6.00.7.1

comment:2 by Jakub Jermář, 7 years ago

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