summaryrefslogtreecommitdiff
path: root/agbx/source/bs/done.c
blob: 17b55c6431d7a33aebdb0f2a37b9e4f7288ec422 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
	Copyright 2022 Gabriel Jensen.
	This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
	If a copy of the MPL was not distributed with this file, You can obtain one at <https://mozilla.org/MPL/2.0>.
*/

#include <ax/priv.h>

#include <ax/gfx.h>

void ax_done(ax_err const _err) {
	if (_err == ax_err_ok) {
		__asm__ (
			"svc 0x3\n"
		);
		__builtin_unreachable();
	}
	__asm__ (
		"svc 0x2\n"
	);
	for (;;) {}
}