2 * arch/ppc/kernel/misc.S
6 * This file contains miscellaneous low-level functions.
7 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
9 * Largely rewritten by Cort Dougan (cort@cs.nmt.edu)
11 * Adapted for iSeries by Mike Corrigan (mikejc@us.ibm.com)
12 * PPC64 updates by Dave Engebretsen (engebret@us.ibm.com)
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version
17 * 2 of the License, or (at your option) any later version.
21 #include <linux/config.h>
22 #include <linux/sys.h>
23 #include <asm/unistd.h>
24 #include <asm/errno.h>
25 #include <asm/processor.h>
27 #include <asm/cache.h>
28 #include <asm/ppc_asm.h>
29 #include <asm/offsets.h>
30 #include <asm/cputable.h>
35 * Returns (address we're running at) - (address we were linked at)
36 * for use before the text and data are mapped to KERNELBASE.
68 #ifdef CONFIG_PPC_ISERIES
69 /* unsigned long local_save_flags(void) */
70 _GLOBAL(local_get_flags)
71 lbz r3,PACAPROCENABLED(r13)
74 /* unsigned long local_irq_disable(void) */
75 _GLOBAL(local_irq_disable)
76 lbz r3,PACAPROCENABLED(r13)
78 stb r4,PACAPROCENABLED(r13)
81 /* void local_irq_restore(unsigned long flags) */
82 _GLOBAL(local_irq_restore)
83 lbz r5,PACAPROCENABLED(r13)
84 /* Check if things are setup the way we want _already_. */
87 /* are we enabling interrupts? */
89 stb r3,PACAPROCENABLED(r13)
91 /* Check pending interrupts */
92 /* A decrementer, IPI or PMC interrupt may have occurred
93 * while we were in the hypervisor (which enables) */
94 ld r4,PACALPPACA+LPPACAANYINT(r13)
99 * Handle pending interrupts in interrupt context
104 #endif /* CONFIG_PPC_ISERIES */
106 #ifdef CONFIG_IRQSTACKS
107 _GLOBAL(call_do_softirq)
110 stdu r1,THREAD_SIZE-112(r3)
118 _GLOBAL(call_handle_irq_event)
121 stdu r1,THREAD_SIZE-112(r6)
128 #endif /* CONFIG_IRQSTACKS */
131 * Flush instruction cache.
133 _GLOBAL(flush_instruction_cache)
136 * This is called by kgdb code
137 * and should probably go away
138 * to be replaced by invalidating
139 * the cache lines that are actually
142 /* use invalidate-all bit in HID0
143 * - is this consistent across all 64-bit cpus? -- paulus */
152 * Write any modified data cache blocks out to memory
153 * and invalidate the corresponding instruction cache blocks.
155 * flush_icache_range(unsigned long start, unsigned long stop)
157 * flush all bytes from start through stop-1 inclusive
160 _GLOBAL(__flush_icache_range)
163 * Flush the data cache to memory
165 * Different systems have different cache line sizes
166 * and in some cases i-cache and d-cache line sizes differ from
169 LOADADDR(r10,naca) /* Get Naca address */
171 LOADADDR(r11,systemcfg) /* Get systemcfg address */
173 lwz r7,DCACHEL1LINESIZE(r11)/* Get cache line size */
175 andc r6,r3,r5 /* round low to line bdy */
176 subf r8,r6,r4 /* compute length */
177 add r8,r8,r5 /* ensure we get enough */
178 lwz r9,DCACHEL1LOGLINESIZE(r10) /* Get log-2 of cache line size */
179 srw. r8,r8,r9 /* compute line count */
180 beqlr /* nothing to do? */
187 /* Now invalidate the instruction cache */
189 lwz r7,ICACHEL1LINESIZE(r11) /* Get Icache line size */
191 andc r6,r3,r5 /* round low to line bdy */
192 subf r8,r6,r4 /* compute length */
194 lwz r9,ICACHEL1LOGLINESIZE(r10) /* Get log-2 of Icache line size */
195 srw. r8,r8,r9 /* compute line count */
196 beqlr /* nothing to do? */
205 * Like above, but only do the D-cache.
207 * flush_dcache_range(unsigned long start, unsigned long stop)
209 * flush all bytes from start to stop-1 inclusive
211 _GLOBAL(flush_dcache_range)
214 * Flush the data cache to memory
216 * Different systems have different cache line sizes
218 LOADADDR(r10,naca) /* Get Naca address */
220 LOADADDR(r11,systemcfg) /* Get systemcfg address */
222 lwz r7,DCACHEL1LINESIZE(r11) /* Get dcache line size */
224 andc r6,r3,r5 /* round low to line bdy */
225 subf r8,r6,r4 /* compute length */
226 add r8,r8,r5 /* ensure we get enough */
227 lwz r9,DCACHEL1LOGLINESIZE(r10) /* Get log-2 of dcache line size */
228 srw. r8,r8,r9 /* compute line count */
229 beqlr /* nothing to do? */
238 * Like above, but works on non-mapped physical addresses.
239 * Use only for non-LPAR setups ! It also assumes real mode
240 * is cacheable. Used for flushing out the DART before using
241 * it as uncacheable memory
243 * flush_dcache_phys_range(unsigned long start, unsigned long stop)
245 * flush all bytes from start to stop-1 inclusive
247 _GLOBAL(flush_dcache_phys_range)
248 LOADADDR(r10,naca) /* Get Naca address */
250 LOADADDR(r11,systemcfg) /* Get systemcfg address */
252 lwz r7,DCACHEL1LINESIZE(r11) /* Get dcache line size */
254 andc r6,r3,r5 /* round low to line bdy */
255 subf r8,r6,r4 /* compute length */
256 add r8,r8,r5 /* ensure we get enough */
257 lwz r9,DCACHEL1LOGLINESIZE(r10) /* Get log-2 of dcache line size */
258 srw. r8,r8,r9 /* compute line count */
259 beqlr /* nothing to do? */
260 mfmsr r5 /* Disable MMU Data Relocation */
273 mtmsr r5 /* Re-enable MMU Data Relocation */
280 * Flush a particular page from the data cache to RAM.
281 * Note: this is necessary because the instruction cache does *not*
282 * snoop from the data cache.
284 * void __flush_dcache_icache(void *page)
286 _GLOBAL(__flush_dcache_icache)
288 * Flush the data cache to memory
290 * Different systems have different cache line sizes
293 /* Flush the dcache */
296 LOADADDR(r8,systemcfg) /* Get systemcfg address */
298 clrrdi r3,r3,12 /* Page align */
299 lwz r4,DCACHEL1LINESPERPAGE(r7) /* Get # dcache lines per page */
300 lwz r5,DCACHEL1LINESIZE(r8) /* Get dcache line size */
308 /* Now invalidate the icache */
310 lwz r4,ICACHEL1LINESPERPAGE(r7) /* Get # icache lines per page */
311 lwz r5,ICACHEL1LINESIZE(r8) /* Get icache line size */
320 * I/O string operations
322 * insb(port, buf, len)
323 * outsb(port, buf, len)
324 * insw(port, buf, len)
325 * outsw(port, buf, len)
326 * insl(port, buf, len)
327 * outsl(port, buf, len)
328 * insw_ns(port, buf, len)
329 * outsw_ns(port, buf, len)
330 * insl_ns(port, buf, len)
331 * outsl_ns(port, buf, len)
333 * The *_ns versions don't do byte-swapping.
407 /* _GLOBAL(ide_insw) now in drivers/ide/ide-iops.c */
421 /* _GLOBAL(ide_outsw) now in drivers/ide/ide-iops.c */
476 lfd 0,0(r5) /* load up fpscr value */
480 mffs 0 /* save new fpscr value */
485 lfd 0,0(r5) /* load up fpscr value */
489 mffs 0 /* save new fpscr value */
494 * identify_cpu and calls setup_cpu
495 * In: r3 = base of the cpu_specs array
496 * r4 = address of cur_cpu_spec
497 * r5 = relocation offset
499 _GLOBAL(identify_cpu)
502 lwz r8,CPU_SPEC_PVR_MASK(r3)
504 lwz r9,CPU_SPEC_PVR_VALUE(r3)
507 addi r3,r3,CPU_SPEC_ENTRY_SIZE
512 ld r4,CPU_SPEC_SETUP(r3)
517 /* Calling convention for cpu setup is r3=offset, r4=cur_cpu_spec */
523 * do_cpu_ftr_fixups - goes through the list of CPU feature fixups
524 * and writes nop's over sections of code that don't apply for this cpu.
525 * r3 = data offset (not changed)
527 _GLOBAL(do_cpu_ftr_fixups)
528 /* Get CPU 0 features */
529 LOADADDR(r6,cur_cpu_spec)
533 ld r4,CPU_SPEC_FEATURES(r4)
534 /* Get the fixup table */
535 LOADADDR(r6,__start___ftr_fixup)
537 LOADADDR(r7,__stop___ftr_fixup)
543 ld r8,-32(r6) /* mask */
545 ld r9,-24(r6) /* value */
548 ld r8,-16(r6) /* section begin */
549 ld r9,-8(r6) /* section end */
552 /* write nops over the section of code */
553 /* todo: if large section, add a branch at the start of it */
557 lis r0,0x60000000@h /* nop */
559 andi. r10,r4,CPU_FTR_SPLIT_ID_CACHE@l
561 dcbst 0,r8 /* suboptimal, but simpler */
566 sync /* additional sync needed on g4 */
572 * Create a kernel thread
573 * kernel_thread(fn, arg, flags)
575 _GLOBAL(kernel_thread)
578 stdu r1,-STACK_FRAME_OVERHEAD(r1)
581 ori r3,r5,CLONE_VM /* flags */
582 oris r3,r3,(CLONE_UNTRACED>>16)
583 li r4,0 /* new sp (unused) */
586 cmpi 0,r3,0 /* parent or child? */
587 bne 1f /* return if parent */
589 stdu r0,-STACK_FRAME_OVERHEAD(r1)
592 mtlr r29 /* fn addr in lr */
593 mr r3,r30 /* load arg and call fn */
595 li r0,__NR_exit /* exit after child exits */
598 1: addi r1,r1,STACK_FRAME_OVERHEAD
603 #ifdef CONFIG_PPC_ISERIES /* hack hack hack */
604 #define ppc_rtas sys_ni_syscall
607 /* Why isn't this a) automatic, b) written in 'C'? */
609 _GLOBAL(sys_call_table32)
610 .llong .sys_restart_syscall /* 0 */
615 .llong .sys32_open /* 5 */
617 .llong .sys32_waitpid
620 .llong .sys_unlink /* 10 */
625 .llong .sys_chmod /* 15 */
627 .llong .sys_ni_syscall /* old break syscall */
628 .llong .sys_ni_syscall /* old stat syscall */
630 .llong .sys_getpid /* 20 */
631 .llong .compat_sys_mount
632 .llong .sys_oldumount
635 .llong .ppc64_sys32_stime /* 25 */
638 .llong .sys_ni_syscall /* old fstat syscall */
640 .llong .compat_sys_utime /* 30 */
641 .llong .sys_ni_syscall /* old stty syscall */
642 .llong .sys_ni_syscall /* old gtty syscall */
645 .llong .sys_ni_syscall /* 35 - old ftime syscall */
650 .llong .sys_rmdir /* 40 */
653 .llong .compat_sys_times
654 .llong .sys_ni_syscall /* old prof syscall */
655 .llong .sys_brk /* 45 */
660 .llong .sys_getegid /* 50 */
663 .llong .sys_ni_syscall /* old lock syscall */
664 .llong .compat_sys_ioctl
665 .llong .compat_sys_fcntl /* 55 */
666 .llong .sys_ni_syscall /* old mpx syscall */
667 .llong .sys32_setpgid
668 .llong .sys_ni_syscall /* old ulimit syscall */
669 .llong .sys32_olduname
670 .llong .sys32_umask /* 60 */
675 .llong .sys_getpgrp /* 65 */
677 .llong .sys32_sigaction
679 .llong .sys32_ssetmask
680 .llong .sys_setreuid /* 70 */
682 .llong .ppc32_sigsuspend
683 .llong .compat_sys_sigpending
684 .llong .sys32_sethostname
685 .llong .compat_sys_setrlimit /* 75 */
686 .llong .compat_sys_old_getrlimit
687 .llong .compat_sys_getrusage
688 .llong .sys32_gettimeofday
689 .llong .sys32_settimeofday
690 .llong .sys32_getgroups /* 80 */
691 .llong .sys32_setgroups
692 .llong .sys_ni_syscall /* old select syscall */
694 .llong .sys_ni_syscall /* old lstat syscall */
695 .llong .sys32_readlink /* 85 */
699 .llong .old32_readdir
700 .llong .sys_mmap /* 90 */
703 .llong .sys_ftruncate
705 .llong .sys_fchown /* 95 */
706 .llong .sys32_getpriority
707 .llong .sys32_setpriority
708 .llong .sys_ni_syscall /* old profil syscall */
709 .llong .compat_sys_statfs
710 .llong .compat_sys_fstatfs /* 100 */
711 .llong .sys_ni_syscall /* old ioperm syscall */
712 .llong .compat_sys_socketcall
714 .llong .compat_sys_setitimer
715 .llong .compat_sys_getitimer /* 105 */
716 .llong .compat_sys_newstat
717 .llong .compat_sys_newlstat
718 .llong .compat_sys_newfstat
720 .llong .sys_ni_syscall /* 110 old iopl syscall */
722 .llong .sys_ni_syscall /* old idle syscall */
723 .llong .sys_ni_syscall /* old vm86 syscall */
724 .llong .compat_sys_wait4
725 .llong .sys_swapoff /* 115 */
726 .llong .sys32_sysinfo
729 .llong .ppc32_sigreturn
730 .llong .ppc_clone /* 120 */
731 .llong .sys32_setdomainname
732 .llong .ppc64_newuname
733 .llong .sys_ni_syscall /* old modify_ldt syscall */
734 .llong .sys32_adjtimex
735 .llong .sys_mprotect /* 125 */
736 .llong .compat_sys_sigprocmask
737 .llong .sys_ni_syscall /* old create_module syscall */
738 .llong .sys_init_module
739 .llong .sys_delete_module
740 .llong .sys_ni_syscall /* 130 old get_kernel_syms syscall */
742 .llong .sys32_getpgid
745 .llong .sys32_sysfs /* 135 */
746 .llong .ppc64_personality
747 .llong .sys_ni_syscall /* for afs_syscall */
750 .llong .sys_llseek /* 140 */
751 .llong .sys32_getdents
755 .llong .compat_sys_readv /* 145 */
756 .llong .compat_sys_writev
758 .llong .sys_fdatasync
760 .llong .sys_mlock /* 150 */
763 .llong .sys_munlockall
764 .llong .sys32_sched_setparam
765 .llong .sys32_sched_getparam /* 155 */
766 .llong .sys32_sched_setscheduler
767 .llong .sys32_sched_getscheduler
768 .llong .sys_sched_yield
769 .llong .sys32_sched_get_priority_max
770 .llong .sys32_sched_get_priority_min /* 160 */
771 .llong .sys32_sched_rr_get_interval
772 .llong .compat_sys_nanosleep
774 .llong .sys_setresuid
775 .llong .sys_getresuid /* 165 */
776 .llong .sys_ni_syscall /* old query_module syscall */
778 .llong .compat_sys_nfsservctl
779 .llong .sys_setresgid
780 .llong .sys_getresgid /* 170 */
782 .llong .ppc32_rt_sigreturn
783 .llong .sys32_rt_sigaction
784 .llong .sys32_rt_sigprocmask
785 .llong .sys32_rt_sigpending /* 175 */
786 .llong .sys32_rt_sigtimedwait
787 .llong .sys32_rt_sigqueueinfo
788 .llong .ppc32_rt_sigsuspend
789 .llong .sys32_pread64
790 .llong .sys32_pwrite64 /* 180 */
795 .llong .sys32_sigaltstack /* 185 */
796 .llong .sys32_sendfile
797 .llong .sys_ni_syscall /* reserved for streams1 */
798 .llong .sys_ni_syscall /* reserved for streams2 */
800 .llong .compat_sys_getrlimit /* 190 */
801 .llong .sys32_readahead
803 .llong .sys32_truncate64
804 .llong .sys32_ftruncate64
805 .llong .sys_stat64 /* 195 */
808 .llong .sys32_pciconfig_read
809 .llong .sys32_pciconfig_write
810 .llong .sys32_pciconfig_iobase /* 200 - pciconfig_iobase */
811 .llong .sys_ni_syscall /* reserved for MacOnLinux */
812 .llong .sys_getdents64
813 .llong .sys_pivot_root
814 .llong .compat_sys_fcntl64
815 .llong .sys_madvise /* 205 */
820 .llong .sys_lsetxattr /* 210 */
821 .llong .sys_fsetxattr
823 .llong .sys_lgetxattr
824 .llong .sys_fgetxattr
825 .llong .sys_listxattr /* 215 */
826 .llong .sys_llistxattr
827 .llong .sys_flistxattr
828 .llong .sys_removexattr
829 .llong .sys_lremovexattr
830 .llong .sys_fremovexattr /* 220 */
831 .llong .compat_sys_futex
832 .llong .compat_sys_sched_setaffinity
833 .llong .compat_sys_sched_getaffinity
834 .llong .sys_ni_syscall
838 # ifdef CONFIG_TUX_MODULE
841 .llong .sys_ni_syscall
844 .llong .sys32_sendfile64
845 .llong .compat_sys_io_setup
846 .llong .sys_io_destroy
847 .llong .compat_sys_io_getevents
848 .llong .compat_sys_io_submit
849 .llong .sys_io_cancel
850 .llong .sys_set_tid_address
851 .llong .ppc32_fadvise64
852 .llong .sys_exit_group
853 .llong .ppc32_lookup_dcookie /* 235 */
854 .llong .sys_epoll_create
855 .llong .sys_epoll_ctl
856 .llong .sys_epoll_wait
857 .llong .sys_remap_file_pages
858 .llong .ppc32_timer_create /* 240 */
859 .llong .compat_timer_settime
860 .llong .compat_timer_gettime
861 .llong .sys_timer_getoverrun
862 .llong .sys_timer_delete
863 .llong .compat_clock_settime /* 245 */
864 .llong .compat_clock_gettime
865 .llong .compat_clock_getres
866 .llong .compat_clock_nanosleep
867 .llong .ppc32_swapcontext
868 .llong .sys32_tgkill /* 250 */
870 .llong .compat_statfs64
871 .llong .compat_fstatfs64
872 .llong .ppc32_fadvise64_64 /* 32bit only fadvise64_64 */
873 .llong .ppc_rtas /* 255 */
874 .llong .sys_ni_syscall /* 256 reserved for sys_debug_setcontext */
876 .llong .sys_ni_syscall /* 258 reserved for new sys_remap_file_pages */
877 .llong .sys_ni_syscall /* 259 reserved for new sys_mbind */
878 .llong .sys_ni_syscall /* 260 reserved for new sys_get_mempolicy */
879 .llong .sys_ni_syscall /* 261 reserved for new sys_set_mempolicy */
880 .llong .compat_sys_mq_open
881 .llong .sys_mq_unlink
882 .llong .compat_sys_mq_timedsend
883 .llong .compat_sys_mq_timedreceive /* 265 */
884 .llong .compat_sys_mq_notify
885 .llong .compat_sys_mq_getsetattr
886 .llong .sys_ni_syscall /* 268 reserved for sys_kexec_load */
889 _GLOBAL(sys_call_table)
890 .llong .sys_restart_syscall /* 0 */
895 .llong .sys_open /* 5 */
900 .llong .sys_unlink /* 10 */
905 .llong .sys_chmod /* 15 */
907 .llong .sys_ni_syscall /* old break syscall */
908 .llong .sys_ni_syscall /* old stat syscall */
910 .llong .sys_getpid /* 20 */
912 .llong .sys_ni_syscall /* old umount syscall */
915 .llong .ppc64_sys_stime /* 25 */
918 .llong .sys_ni_syscall /* old fstat syscall */
920 .llong .sys_utime /* 30 */
921 .llong .sys_ni_syscall /* old stty syscall */
922 .llong .sys_ni_syscall /* old gtty syscall */
925 .llong .sys_ni_syscall /* 35 - old ftime syscall */
930 .llong .sys_rmdir /* 40 */
934 .llong .sys_ni_syscall /* old prof syscall */
935 .llong .sys_brk /* 45 */
940 .llong .sys_getegid /* 50 */
943 .llong .sys_ni_syscall /* old lock syscall */
945 .llong .sys_fcntl /* 55 */
946 .llong .sys_ni_syscall /* old mpx syscall */
948 .llong .sys_ni_syscall /* old ulimit syscall */
949 .llong .sys_ni_syscall /* old uname syscall */
950 .llong .sys_umask /* 60 */
955 .llong .sys_getpgrp /* 65 */
957 .llong .sys_ni_syscall
960 .llong .sys_setreuid /* 70 */
962 .llong .sys_ni_syscall
963 .llong .sys_ni_syscall
964 .llong .sys_sethostname
965 .llong .sys_setrlimit /* 75 */
966 .llong .sys_ni_syscall /* old getrlimit syscall */
967 .llong .sys_getrusage
968 .llong .sys_gettimeofday
969 .llong .sys_settimeofday
970 .llong .sys_getgroups /* 80 */
971 .llong .sys_setgroups
972 .llong .sys_ni_syscall /* old select syscall */
974 .llong .sys_ni_syscall /* old lstat syscall */
975 .llong .sys_readlink /* 85 */
979 .llong .sys_ni_syscall /* old readdir syscall */
980 .llong .sys_mmap /* 90 */
983 .llong .sys_ftruncate
985 .llong .sys_fchown /* 95 */
986 .llong .sys_getpriority
987 .llong .sys_setpriority
988 .llong .sys_ni_syscall /* old profil syscall holder */
990 .llong .sys_fstatfs /* 100 */
991 .llong .sys_ni_syscall /* old ioperm syscall */
992 .llong .sys_socketcall
994 .llong .sys_setitimer
995 .llong .sys_getitimer /* 105 */
999 .llong .sys_ni_syscall /* old uname syscall */
1000 .llong .sys_ni_syscall /* 110 old iopl syscall */
1002 .llong .sys_ni_syscall /* old idle syscall */
1003 .llong .sys_ni_syscall /* old vm86 syscall */
1005 .llong .sys_swapoff /* 115 */
1009 .llong .sys_ni_syscall
1010 .llong .ppc_clone /* 120 */
1011 .llong .sys_setdomainname
1012 .llong .ppc64_newuname
1013 .llong .sys_ni_syscall /* old modify_ldt syscall */
1014 .llong .sys_adjtimex
1015 .llong .sys_mprotect /* 125 */
1016 .llong .sys_ni_syscall
1017 .llong .sys_ni_syscall /* old create_module syscall */
1018 .llong .sys_init_module
1019 .llong .sys_delete_module
1020 .llong .sys_ni_syscall /* 130 old get_kernel_syms syscall */
1021 .llong .sys_quotactl
1025 .llong .sys_sysfs /* 135 */
1026 .llong .ppc64_personality
1027 .llong .sys_ni_syscall /* for afs_syscall */
1028 .llong .sys_setfsuid
1029 .llong .sys_setfsgid
1030 .llong .sys_llseek /* 140 */
1031 .llong .sys_getdents
1035 .llong .sys_readv /* 145 */
1038 .llong .sys_fdatasync
1040 .llong .sys_mlock /* 150 */
1042 .llong .sys_mlockall
1043 .llong .sys_munlockall
1044 .llong .sys_sched_setparam
1045 .llong .sys_sched_getparam /* 155 */
1046 .llong .sys_sched_setscheduler
1047 .llong .sys_sched_getscheduler
1048 .llong .sys_sched_yield
1049 .llong .sys_sched_get_priority_max
1050 .llong .sys_sched_get_priority_min /* 160 */
1051 .llong .sys_sched_rr_get_interval
1052 .llong .sys_nanosleep
1054 .llong .sys_setresuid
1055 .llong .sys_getresuid /* 165 */
1056 .llong .sys_ni_syscall /* old query_module syscall */
1058 .llong .sys_nfsservctl
1059 .llong .sys_setresgid
1060 .llong .sys_getresgid /* 170 */
1062 .llong .ppc64_rt_sigreturn
1063 .llong .sys_rt_sigaction
1064 .llong .sys_rt_sigprocmask
1065 .llong .sys_rt_sigpending /* 175 */
1066 .llong .sys_rt_sigtimedwait
1067 .llong .sys_rt_sigqueueinfo
1068 .llong .ppc64_rt_sigsuspend
1070 .llong .sys_pwrite64 /* 180 */
1075 .llong .sys_sigaltstack /* 185 */
1076 .llong .sys_sendfile64
1077 .llong .sys_ni_syscall /* reserved for streams1 */
1078 .llong .sys_ni_syscall /* reserved for streams2 */
1080 .llong .sys_getrlimit /* 190 */
1081 .llong .sys_readahead
1082 .llong .sys_ni_syscall /* 32bit only mmap2 */
1083 .llong .sys_ni_syscall /* 32bit only truncate64 */
1084 .llong .sys_ni_syscall /* 32bit only ftruncate64 */
1085 .llong .sys_ni_syscall /* 195 - 32bit only stat64 */
1086 .llong .sys_ni_syscall /* 32bit only lstat64 */
1087 .llong .sys_ni_syscall /* 32bit only fstat64 */
1088 .llong .sys_ni_syscall /* 32bit only pciconfig_read */
1089 .llong .sys_ni_syscall /* 32bit only pciconfig_write */
1090 .llong .sys_ni_syscall /* 32bit only pciconfig_iobase */
1091 .llong .sys_ni_syscall /* reserved for MacOnLinux */
1092 .llong .sys_getdents64
1093 .llong .sys_pivot_root
1094 .llong .sys_ni_syscall /* 32bit only fcntl64 */
1095 .llong .sys_madvise /* 205 */
1099 .llong .sys_setxattr
1100 .llong .sys_lsetxattr /* 210 */
1101 .llong .sys_fsetxattr
1102 .llong .sys_getxattr
1103 .llong .sys_lgetxattr
1104 .llong .sys_fgetxattr
1105 .llong .sys_listxattr /* 215 */
1106 .llong .sys_llistxattr
1107 .llong .sys_flistxattr
1108 .llong .sys_removexattr
1109 .llong .sys_lremovexattr
1110 .llong .sys_fremovexattr /* 220 */
1112 .llong .sys_sched_setaffinity
1113 .llong .sys_sched_getaffinity
1114 .llong .sys_ni_syscall
1118 # ifdef CONFIG_TUX_MODULE
1121 .llong .sys_ni_syscall
1124 .llong .sys_ni_syscall /* 32bit only sendfile64 */
1125 .llong .sys_io_setup
1126 .llong .sys_io_destroy
1127 .llong .sys_io_getevents
1128 .llong .sys_io_submit /* 230 */
1129 .llong .sys_io_cancel
1130 .llong .sys_set_tid_address
1131 .llong .sys_fadvise64
1132 .llong .sys_exit_group
1133 .llong .sys_lookup_dcookie /* 235 */
1134 .llong .sys_epoll_create
1135 .llong .sys_epoll_ctl
1136 .llong .sys_epoll_wait
1137 .llong .sys_remap_file_pages
1138 .llong .sys_timer_create /* 240 */
1139 .llong .sys_timer_settime
1140 .llong .sys_timer_gettime
1141 .llong .sys_timer_getoverrun
1142 .llong .sys_timer_delete
1143 .llong .sys_clock_settime /* 245 */
1144 .llong .sys_clock_gettime
1145 .llong .sys_clock_getres
1146 .llong .sys_clock_nanosleep
1147 .llong .ppc64_swapcontext
1148 .llong .sys_tgkill /* 250 */
1150 .llong .sys_statfs64
1151 .llong .sys_fstatfs64
1152 .llong .sys_ni_syscall /* 32bit only fadvise64_64 */
1153 .llong .ppc_rtas /* 255 */
1154 .llong .sys_ni_syscall /* 256 reserved for sys_debug_setcontext */
1155 .llong .sys_ni_syscall /* 257 reserved for vserver */
1156 .llong .sys_ni_syscall /* 258 reserved for new sys_remap_file_pages */
1157 .llong .sys_ni_syscall /* 259 reserved for new sys_mbind */
1158 .llong .sys_ni_syscall /* 260 reserved for new sys_get_mempolicy */
1159 .llong .sys_ni_syscall /* 261 reserved for new sys_set_mempolicy */
1161 .llong .sys_mq_unlink
1162 .llong .sys_mq_timedsend
1163 .llong .sys_mq_timedreceive /* 265 */
1164 .llong .sys_mq_notify
1165 .llong .sys_mq_getsetattr
1166 .llong .sys_ni_syscall /* 268 reserved for sys_kexec_load */