Make hang() noreturn
This commit is contained in:
parent
99192204fe
commit
003c730117
@ -1,4 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
void hang();
|
[[noreturn]] void hang();
|
||||||
void halt();
|
void halt();
|
@ -1,6 +1,6 @@
|
|||||||
#include "panic/hang.h"
|
#include "panic/hang.h"
|
||||||
|
|
||||||
void hang()
|
[[noreturn]] void hang()
|
||||||
{
|
{
|
||||||
asm volatile("cli");
|
asm volatile("cli");
|
||||||
end:
|
end:
|
||||||
|
Loading…
Reference in New Issue
Block a user