blob: c9a7ee33942ccc582fdb1cdcc94716fe2792b55d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/*
* arch/m68k/open.S
*
* Handle the open() system call - oddball due to the varadic
* prototype, which forces the use of the cdecl calling convention,
* and the need for O_LARGEFILE.
*/
#include <asm/unistd.h>
/* <asm/fcntl.h>, despite the name, isn't assembly-safe */
#define O_LARGEFILE 0400000
.globl open
.type open,@function
open:
or.l # O_LARGEFILE, 8(%sp)
move.l # __NR_open, %d0
br __syscall_common
.size open,.-open
|