mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 19:46:31 +01:00
fix(payload-import): ASM only enable for i386 fiwix/linux, undefined for other arch
This commit is contained in:
parent
e19f13fcd4
commit
f2a151e96b
1 changed files with 4 additions and 1 deletions
|
|
@ -126,11 +126,14 @@ static int has_payload_magic(const char *path)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef __i386__
|
||||||
|
#error "This is only for x86 i386 fiwix/linux"
|
||||||
|
#endif
|
||||||
static int sys_mount(const char *source, const char *target,
|
static int sys_mount(const char *source, const char *target,
|
||||||
const char *fstype, unsigned int flags, const void *data)
|
const char *fstype, unsigned int flags, const void *data)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
// Only for x86 fiwix/linux
|
||||||
__asm__ __volatile__(
|
__asm__ __volatile__(
|
||||||
"int $0x80"
|
"int $0x80"
|
||||||
: "=a"(ret)
|
: "=a"(ret)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue