mirror of
https://github.com/tailix/libkernaux.git
synced 2024-10-30 11:54:01 -04:00
Add func "kernaux_asm_x86_64_hang"
This commit is contained in:
parent
b0817a715f
commit
de8ea03ef0
2 changed files with 9 additions and 0 deletions
|
@ -7,6 +7,8 @@ extern "C" {
|
|||
|
||||
#include <kernaux/arch/x86_64.h>
|
||||
|
||||
void kernaux_asm_x86_64_hang() __attribute__((noreturn));
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
.global kernaux_asm_x86_64_hang
|
||||
|
||||
kernaux_asm_x86_64_hang:
|
||||
cli
|
||||
hlt
|
||||
jmp kernaux_asm_x86_64_hang
|
||||
|
|
Loading…
Reference in a new issue