Skip to content

Fix: trace irq context for is_in_irq make correct decision#275

Merged
lawkai-vivo merged 1 commit intovivoblueos:mainfrom
zhanghe-vivo:zhanghe_fix_context
Mar 3, 2026
Merged

Fix: trace irq context for is_in_irq make correct decision#275
lawkai-vivo merged 1 commit intovivoblueos:mainfrom
zhanghe-vivo:zhanghe_fix_context

Conversation

@zhanghe-vivo
Copy link
Copy Markdown
Contributor

No description provided.

@zhanghe-vivo
Copy link
Copy Markdown
Contributor Author

now , is_in_irq used by many mod, but in many target, the interrupt handler not respect this context, attemp to fixed in related target

@zhanghe-vivo
Copy link
Copy Markdown
Contributor Author

has probability in to deadlock for case 'test_socket_file'

@zhanghe-vivo
Copy link
Copy Markdown
Contributor Author

build_prs #275

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 8, 2026

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 8, 2026

❌ Job failed. Failed jobs: check_format (failure), build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/20804210922.

@zhanghe-vivo
Copy link
Copy Markdown
Contributor Author

build_prs #275

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 8, 2026

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 8, 2026

❌ Job failed. Failed jobs: check_format (failure), build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/20804382293.

@zhanghe-vivo
Copy link
Copy Markdown
Contributor Author

build_prs #275

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 8, 2026

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 8, 2026

❌ Job failed. Failed jobs: check_format (failure), build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/20804578448.

@zhanghe-vivo
Copy link
Copy Markdown
Contributor Author

build_prs #275

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 8, 2026

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 8, 2026

❌ Job failed. Failed jobs: build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/20804898480.

@zhanghe-vivo
Copy link
Copy Markdown
Contributor Author

build_prs #275

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 8, 2026

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 8, 2026

✅ All jobs completed successfully, see https://github.com/vivoblueos/kernel/actions/runs/20807505119.

Comment thread kernel/src/boards/gd32e507_eval/mod.rs Outdated

#[no_mangle]
pub unsafe extern "C" fn uart0_handler() {
let _trace = IrqTrace::new(IrqNumber::new(37));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not hard code this number.

Comment thread kernel/src/time/mod.rs Outdated
pub extern "C" fn handle_tick_increment() {
let _guard = DisableInterruptGuard::new();
// riscv has its own irq trace in riscv.rs
#[cfg(not(any(target_board = "qemu_riscv64", target_board = "qemu_riscv32")))]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should wrap handle_tick_increment in a arch/board specific function.

@zhanghe-vivo
Copy link
Copy Markdown
Contributor Author

build_prs #275

@github-actions
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

❌ Job failed. Failed jobs: build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/22379706983.

@zhanghe-vivo
Copy link
Copy Markdown
Contributor Author

build_prs #275

@github-actions
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

❌ Job failed. Failed jobs: check_format (failure), build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/22380081062.

@zhanghe-vivo
Copy link
Copy Markdown
Contributor Author

build_prs #275

@github-actions
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

❌ Job failed. Failed jobs: build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/22380307964.

@zhanghe-vivo
Copy link
Copy Markdown
Contributor Author

build_prs #275

@github-actions
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

✅ All jobs completed successfully, see https://github.com/vivoblueos/kernel/actions/runs/22380904468.

@lawkai-vivo lawkai-vivo merged commit b1c3842 into vivoblueos:main Mar 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants