Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Problem about timer-interrupt #573

Open
echo579 opened this issue Nov 28, 2020 · 0 comments
Open

Problem about timer-interrupt #573

echo579 opened this issue Nov 28, 2020 · 0 comments

Comments

@echo579
Copy link

echo579 commented Nov 28, 2020

I add a loop in software/timer-interrupt/timer-interrupt.c to check intr_count update, and find nothing output. Is the timer-interrupt must be trigged by function metal_cpu_set_mtimecmp(cpu, 0);
Following is my code about the loop in timer-interrupt.c

    printf("before return %d\n", intr_count);
    int last = intr_count;
    while(1)
    {
        if(intr_count != last){
            printf("tmr updated %d\n", intr_count);
            last = intr_count;
        }
    }

I'm curious why timer-interrupt doesn't trigger automated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant