summaryrefslogtreecommitdiffstats
path: root/sys-utils/sync.S
blob: 5b7fd82b2b93eaeb160d6231e47a3fdcd049049c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* File:
 *	sync.S
 * Compile:
 *     gcc -nostdlib sync.S -o sync
 * Author:
 *	Nick Holloway, with thanks to James Bonfield
 *      Modified for ELF by Michael Shields
 *      Rik Faith added __ASSEMBLY__ for gcc 2.5.8
 * Last Changed:
 *     1995-07-04
 */
#include <sys/syscall.h>
#ifndef __ASSEMBLY__
#define __ASSEMBLY__
#endif
#include <linux/linkage.h>

        .text
ENTRY(_start)
        movl    $(SYS_sync),%eax        /* sync () */
        int     $0x80
        movl    $(SYS_exit),%eax        /* exit ( 0 ) */
        movl    $0,%ebx
        int     $0x80