1
0
Fork 0
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:
Alex Kotov 2022-01-11 10:55:19 +05:00
parent b0817a715f
commit de8ea03ef0
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
2 changed files with 9 additions and 0 deletions

View file

@ -7,6 +7,8 @@ extern "C" {
#include <kernaux/arch/x86_64.h>
void kernaux_asm_x86_64_hang() __attribute__((noreturn));
#ifdef __cplusplus
}
#endif

View file

@ -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