diff options
Diffstat (limited to 'sys-utils/sync.S')
-rw-r--r-- | sys-utils/sync.S | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sys-utils/sync.S b/sys-utils/sync.S new file mode 100644 index 000000000..2fa8f5662 --- /dev/null +++ b/sys-utils/sync.S @@ -0,0 +1,21 @@ +/* File: + * sync.S + * Compile: + * /lib/cpp sync.S > sync.s + * as -o sync.o sync.s + * ld -s -N -e _main sync.o -o sync + * Author: + * Nick Holloway, with thanks to James Bonfield + * Last Changed: + * September 1993. + */ +# include <sys/syscall.h> + + .text + .globl _main +_main: + movl $(SYS_sync),%eax /* sync () */ + int $0x80 + movl $(SYS_exit),%eax /* exit ( 0 ) */ + movl $0,%ebx + int $0x80 |