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) */
98 * Handle pending interrupts in interrupt context
103 #endif /* CONFIG_PPC_ISERIES */
106 * Flush instruction cache.
108 _GLOBAL(flush_instruction_cache)
111 * This is called by kgdb code
112 * and should probably go away
113 * to be replaced by invalidating
114 * the cache lines that are actually
117 /* use invalidate-all bit in HID0
118 * - is this consistent across all 64-bit cpus? -- paulus */
127 * Write any modified data cache blocks out to memory
128 * and invalidate the corresponding instruction cache blocks.
130 * flush_icache_range(unsigned long start, unsigned long stop)
132 * flush all bytes from start through stop-1 inclusive
135 _GLOBAL(__flush_icache_range)
138 * Flush the data cache to memory
140 * Different systems have different cache line sizes
141 * and in some cases i-cache and d-cache line sizes differ from
144 LOADADDR(r10,naca) /* Get Naca address */
146 LOADADDR(r11,systemcfg) /* Get systemcfg address */
148 lwz r7,DCACHEL1LINESIZE(r11)/* Get cache line size */
150 andc r6,r3,r5 /* round low to line bdy */
151 subf r8,r6,r4 /* compute length */
152 add r8,r8,r5 /* ensure we get enough */
153 lwz r9,DCACHEL1LOGLINESIZE(r10) /* Get log-2 of cache line size */
154 srw. r8,r8,r9 /* compute line count */
155 beqlr /* nothing to do? */
162 /* Now invalidate the instruction cache */
164 lwz r7,ICACHEL1LINESIZE(r11) /* Get Icache line size */
166 andc r6,r3,r5 /* round low to line bdy */
167 subf r8,r6,r4 /* compute length */
169 lwz r9,ICACHEL1LOGLINESIZE(r10) /* Get log-2 of Icache line size */
170 srw. r8,r8,r9 /* compute line count */
171 beqlr /* nothing to do? */
180 * Like above, but only do the D-cache.
182 * flush_dcache_range(unsigned long start, unsigned long stop)
184 * flush all bytes from start to stop-1 inclusive
186 _GLOBAL(flush_dcache_range)
189 * Flush the data cache to memory
191 * Different systems have different cache line sizes
193 LOADADDR(r10,naca) /* Get Naca address */
195 LOADADDR(r11,systemcfg) /* Get systemcfg address */
197 lwz r7,DCACHEL1LINESIZE(r11) /* Get dcache line size */
199 andc r6,r3,r5 /* round low to line bdy */
200 subf r8,r6,r4 /* compute length */
201 add r8,r8,r5 /* ensure we get enough */
202 lwz r9,DCACHEL1LOGLINESIZE(r10) /* Get log-2 of dcache line size */
203 srw. r8,r8,r9 /* compute line count */
204 beqlr /* nothing to do? */
213 * Like above, but works on non-mapped physical addresses.
214 * Use only for non-LPAR setups ! It also assumes real mode
215 * is cacheable. Used for flushing out the DART before using
216 * it as uncacheable memory
218 * flush_dcache_phys_range(unsigned long start, unsigned long stop)
220 * flush all bytes from start to stop-1 inclusive
222 _GLOBAL(flush_dcache_phys_range)
223 LOADADDR(r10,naca) /* Get Naca address */
225 LOADADDR(r11,systemcfg) /* Get systemcfg address */
227 lwz r7,DCACHEL1LINESIZE(r11) /* Get dcache line size */
229 andc r6,r3,r5 /* round low to line bdy */
230 subf r8,r6,r4 /* compute length */
231 add r8,r8,r5 /* ensure we get enough */
232 lwz r9,DCACHEL1LOGLINESIZE(r10) /* Get log-2 of dcache line size */
233 srw. r8,r8,r9 /* compute line count */
234 beqlr /* nothing to do? */
235 mfmsr r5 /* Disable MMU Data Relocation */
248 mtmsr r5 /* Re-enable MMU Data Relocation */
255 * Flush a particular page from the data cache to RAM.
256 * Note: this is necessary because the instruction cache does *not*
257 * snoop from the data cache.
259 * void __flush_dcache_icache(void *page)
261 _GLOBAL(__flush_dcache_icache)
263 * Flush the data cache to memory
265 * Different systems have different cache line sizes
268 /* Flush the dcache */
271 LOADADDR(r8,systemcfg) /* Get systemcfg address */
273 clrrdi r3,r3,12 /* Page align */
274 lwz r4,DCACHEL1LINESPERPAGE(r7) /* Get # dcache lines per page */
275 lwz r5,DCACHEL1LINESIZE(r8) /* Get dcache line size */
283 /* Now invalidate the icache */
285 lwz r4,ICACHEL1LINESPERPAGE(r7) /* Get # icache lines per page */
286 lwz r5,ICACHEL1LINESIZE(r8) /* Get icache line size */
295 * I/O string operations
297 * insb(port, buf, len)
298 * outsb(port, buf, len)
299 * insw(port, buf, len)
300 * outsw(port, buf, len)
301 * insl(port, buf, len)
302 * outsl(port, buf, len)
303 * insw_ns(port, buf, len)
304 * outsw_ns(port, buf, len)
305 * insl_ns(port, buf, len)
306 * outsl_ns(port, buf, len)
308 * The *_ns versions don't do byte-swapping.
376 /* _GLOBAL(ide_insw) now in drivers/ide/ide-iops.c */
388 /* _GLOBAL(ide_outsw) now in drivers/ide/ide-iops.c */
441 lfd 0,0(r5) /* load up fpscr value */
445 mffs 0 /* save new fpscr value */
450 lfd 0,0(r5) /* load up fpscr value */
454 mffs 0 /* save new fpscr value */
459 * identify_cpu and calls setup_cpu
460 * In: r3 = base of the cpu_specs array
461 * r4 = address of cur_cpu_spec
462 * r5 = relocation offset
464 _GLOBAL(identify_cpu)
467 lwz r8,CPU_SPEC_PVR_MASK(r3)
469 lwz r9,CPU_SPEC_PVR_VALUE(r3)
472 addi r3,r3,CPU_SPEC_ENTRY_SIZE
477 ld r4,CPU_SPEC_SETUP(r3)
482 /* Calling convention for cpu setup is r3=offset, r4=cur_cpu_spec */
488 * do_cpu_ftr_fixups - goes through the list of CPU feature fixups
489 * and writes nop's over sections of code that don't apply for this cpu.
490 * r3 = data offset (not changed)
492 _GLOBAL(do_cpu_ftr_fixups)
493 /* Get CPU 0 features */
494 LOADADDR(r6,cur_cpu_spec)
498 ld r4,CPU_SPEC_FEATURES(r4)
499 /* Get the fixup table */
500 LOADADDR(r6,__start___ftr_fixup)
502 LOADADDR(r7,__stop___ftr_fixup)
508 ld r8,-32(r6) /* mask */
510 ld r9,-24(r6) /* value */
513 ld r8,-16(r6) /* section begin */
514 ld r9,-8(r6) /* section end */
517 /* write nops over the section of code */
518 /* todo: if large section, add a branch at the start of it */
522 lis r0,0x60000000@h /* nop */
524 andi. r10,r4,CPU_FTR_SPLIT_ID_CACHE@l
526 dcbst 0,r8 /* suboptimal, but simpler */
531 sync /* additional sync needed on g4 */
537 * Create a kernel thread
538 * kernel_thread(fn, arg, flags)
540 _GLOBAL(kernel_thread)
543 stdu r1,-STACK_FRAME_OVERHEAD(r1)
546 ori r3,r5,CLONE_VM /* flags */
547 oris r3,r3,(CLONE_UNTRACED>>16)
548 li r4,0 /* new sp (unused) */
551 cmpi 0,r3,0 /* parent or child? */
552 bne 1f /* return if parent */
554 stdu r0,-STACK_FRAME_OVERHEAD(r1)
557 mtlr r29 /* fn addr in lr */
558 mr r3,r30 /* load arg and call fn */
560 li r0,__NR_exit /* exit after child exits */
563 1: addi r1,r1,STACK_FRAME_OVERHEAD
568 #ifdef CONFIG_PPC_ISERIES /* hack hack hack */
569 #define ppc_rtas sys_ni_syscall
572 /* Why isn't this a) automatic, b) written in 'C'? */
574 _GLOBAL(sys_call_table32)
575 .llong .sys_restart_syscall /* 0 */
580 .llong .sys32_open /* 5 */
582 .llong .sys32_waitpid
585 .llong .sys_unlink /* 10 */
590 .llong .sys_chmod /* 15 */
592 .llong .sys_ni_syscall /* old break syscall */
593 .llong .sys_ni_syscall /* old stat syscall */
595 .llong .sys_getpid /* 20 */
596 .llong .compat_sys_mount
597 .llong .sys_oldumount
600 .llong .ppc64_sys32_stime /* 25 */
603 .llong .sys_ni_syscall /* old fstat syscall */
605 .llong .compat_sys_utime /* 30 */
606 .llong .sys_ni_syscall /* old stty syscall */
607 .llong .sys_ni_syscall /* old gtty syscall */
610 .llong .sys_ni_syscall /* 35 - old ftime syscall */
615 .llong .sys_rmdir /* 40 */
618 .llong .compat_sys_times
619 .llong .sys_ni_syscall /* old prof syscall */
620 .llong .sys_brk /* 45 */
625 .llong .sys_getegid /* 50 */
628 .llong .sys_ni_syscall /* old lock syscall */
629 .llong .compat_sys_ioctl
630 .llong .compat_sys_fcntl /* 55 */
631 .llong .sys_ni_syscall /* old mpx syscall */
632 .llong .sys32_setpgid
633 .llong .sys_ni_syscall /* old ulimit syscall */
634 .llong .sys32_olduname
635 .llong .sys32_umask /* 60 */
640 .llong .sys_getpgrp /* 65 */
642 .llong .sys32_sigaction
644 .llong .sys32_ssetmask
645 .llong .sys_setreuid /* 70 */
647 .llong .sys32_sigsuspend
648 .llong .compat_sys_sigpending
649 .llong .sys32_sethostname
650 .llong .compat_sys_setrlimit /* 75 */
651 .llong .compat_sys_old_getrlimit
652 .llong .compat_sys_getrusage
653 .llong .sys32_gettimeofday
654 .llong .sys32_settimeofday
655 .llong .sys32_getgroups /* 80 */
656 .llong .sys32_setgroups
657 .llong .sys_ni_syscall /* old select syscall */
659 .llong .sys_ni_syscall /* old lstat syscall */
660 .llong .sys32_readlink /* 85 */
664 .llong .old32_readdir
665 .llong .sys_mmap /* 90 */
668 .llong .sys_ftruncate
670 .llong .sys_fchown /* 95 */
671 .llong .sys32_getpriority
672 .llong .sys32_setpriority
673 .llong .sys_ni_syscall /* old profil syscall */
674 .llong .compat_sys_statfs
675 .llong .compat_sys_fstatfs /* 100 */
676 .llong .sys_ni_syscall /* old ioperm syscall */
677 .llong .compat_sys_socketcall
679 .llong .compat_sys_setitimer
680 .llong .compat_sys_getitimer /* 105 */
681 .llong .compat_sys_newstat
682 .llong .compat_sys_newlstat
683 .llong .compat_sys_newfstat
685 .llong .sys_ni_syscall /* 110 old iopl syscall */
687 .llong .sys_ni_syscall /* old idle syscall */
688 .llong .sys_ni_syscall /* old vm86 syscall */
689 .llong .compat_sys_wait4
690 .llong .sys_swapoff /* 115 */
691 .llong .sys32_sysinfo
694 .llong .ppc32_sigreturn
695 .llong .sys_clone /* 120 */
696 .llong .sys32_setdomainname
697 .llong .ppc64_newuname
698 .llong .sys_ni_syscall /* old modify_ldt syscall */
699 .llong .sys32_adjtimex
700 .llong .sys_mprotect /* 125 */
701 .llong .compat_sys_sigprocmask
702 .llong .sys_ni_syscall /* old create_module syscall */
703 .llong .sys_init_module
704 .llong .sys_delete_module
705 .llong .sys_ni_syscall /* 130 old get_kernel_syms syscall */
707 .llong .sys32_getpgid
710 .llong .sys32_sysfs /* 135 */
711 .llong .ppc64_personality
712 .llong .sys_ni_syscall /* for afs_syscall */
715 .llong .sys_llseek /* 140 */
716 .llong .sys32_getdents
720 .llong .sys32_readv /* 145 */
723 .llong .sys_fdatasync
725 .llong .sys_mlock /* 150 */
728 .llong .sys_munlockall
729 .llong .sys32_sched_setparam
730 .llong .sys32_sched_getparam /* 155 */
731 .llong .sys32_sched_setscheduler
732 .llong .sys32_sched_getscheduler
733 .llong .sys_sched_yield
734 .llong .sys32_sched_get_priority_max
735 .llong .sys32_sched_get_priority_min /* 160 */
736 .llong .sys32_sched_rr_get_interval
737 .llong .compat_sys_nanosleep
739 .llong .sys_setresuid
740 .llong .sys_getresuid /* 165 */
741 .llong .sys_ni_syscall /* old query_module syscall */
743 .llong .sys32_nfsservctl
744 .llong .sys_setresgid
745 .llong .sys_getresgid /* 170 */
747 .llong .ppc32_rt_sigreturn
748 .llong .sys32_rt_sigaction
749 .llong .sys32_rt_sigprocmask
750 .llong .sys32_rt_sigpending /* 175 */
751 .llong .sys32_rt_sigtimedwait
752 .llong .sys32_rt_sigqueueinfo
753 .llong .sys32_rt_sigsuspend
754 .llong .sys32_pread64
755 .llong .sys32_pwrite64 /* 180 */
760 .llong .sys32_sigaltstack /* 185 */
761 .llong .sys32_sendfile
762 .llong .sys_ni_syscall /* reserved for streams1 */
763 .llong .sys_ni_syscall /* reserved for streams2 */
765 .llong .compat_sys_getrlimit /* 190 */
766 .llong .sys32_readahead
768 .llong .sys32_truncate64
769 .llong .sys32_ftruncate64
770 .llong .sys_stat64 /* 195 */
773 .llong .sys32_pciconfig_read
774 .llong .sys32_pciconfig_write
775 .llong .sys32_pciconfig_iobase /* 200 - pciconfig_iobase */
776 .llong .sys_ni_syscall /* reserved for MacOnLinux */
777 .llong .sys_getdents64
778 .llong .sys_pivot_root
779 .llong .compat_sys_fcntl64
780 .llong .sys_madvise /* 205 */
785 .llong .sys_lsetxattr /* 210 */
786 .llong .sys_fsetxattr
788 .llong .sys_lgetxattr
789 .llong .sys_fgetxattr
790 .llong .sys_listxattr /* 215 */
791 .llong .sys_llistxattr
792 .llong .sys_flistxattr
793 .llong .sys_removexattr
794 .llong .sys_lremovexattr
795 .llong .sys_fremovexattr /* 220 */
796 .llong .compat_sys_futex
797 .llong .compat_sys_sched_setaffinity
798 .llong .compat_sys_sched_getaffinity
799 .llong .sys_ni_syscall
800 .llong .sys_ni_syscall /* 225 - reserved for tux */
801 .llong .sys32_sendfile64
802 .llong .compat_sys_io_setup
803 .llong .sys_io_destroy
804 .llong .compat_sys_io_getevents
805 .llong .compat_sys_io_submit
806 .llong .sys_io_cancel
807 .llong .sys_set_tid_address
808 .llong .ppc32_fadvise64
809 .llong .sys_exit_group
810 .llong .ppc32_lookup_dcookie /* 235 */
811 .llong .sys_epoll_create
812 .llong .sys_epoll_ctl
813 .llong .sys_epoll_wait
814 .llong .sys_remap_file_pages
815 .llong .ppc32_timer_create /* 240 */
816 .llong .compat_timer_settime
817 .llong .compat_timer_gettime
818 .llong .sys_timer_getoverrun
819 .llong .sys_timer_delete
820 .llong .compat_clock_settime /* 245 */
821 .llong .compat_clock_gettime
822 .llong .compat_clock_getres
823 .llong .compat_clock_nanosleep
824 .llong .ppc32_swapcontext
825 .llong .sys32_tgkill /* 250 */
827 .llong .compat_statfs64
828 .llong .compat_fstatfs64
829 .llong .ppc32_fadvise64_64 /* 32bit only fadvise64_64 */
830 .llong .ppc_rtas /* 255 */
831 .llong .sys_ni_syscall /* 256 reserved for sys_debug_setcontext */
833 .llong .sys_ni_syscall /* 258 reserved for new sys_remap_file_pages */
834 .llong .sys_ni_syscall /* 259 reserved for new sys_mbind */
835 .llong .sys_ni_syscall /* 260 reserved for new sys_get_mempolicy */
836 .llong .sys_ni_syscall /* 261 reserved for new sys_set_mempolicy */
837 .llong .compat_sys_mq_open
838 .llong .sys_mq_unlink
839 .llong .compat_sys_mq_timedsend
840 .llong .compat_sys_mq_timedreceive /* 265 */
841 .llong .compat_sys_mq_notify
842 .llong .compat_sys_mq_getsetattr
845 _GLOBAL(sys_call_table)
846 .llong .sys_restart_syscall /* 0 */
851 .llong .sys_open /* 5 */
856 .llong .sys_unlink /* 10 */
861 .llong .sys_chmod /* 15 */
863 .llong .sys_ni_syscall /* old break syscall */
864 .llong .sys_ni_syscall /* old stat syscall */
866 .llong .sys_getpid /* 20 */
868 .llong .sys_ni_syscall /* old umount syscall */
871 .llong .ppc64_sys_stime /* 25 */
874 .llong .sys_ni_syscall /* old fstat syscall */
876 .llong .sys_utime /* 30 */
877 .llong .sys_ni_syscall /* old stty syscall */
878 .llong .sys_ni_syscall /* old gtty syscall */
881 .llong .sys_ni_syscall /* 35 - old ftime syscall */
886 .llong .sys_rmdir /* 40 */
890 .llong .sys_ni_syscall /* old prof syscall */
891 .llong .sys_brk /* 45 */
896 .llong .sys_getegid /* 50 */
899 .llong .sys_ni_syscall /* old lock syscall */
901 .llong .sys_fcntl /* 55 */
902 .llong .sys_ni_syscall /* old mpx syscall */
904 .llong .sys_ni_syscall /* old ulimit syscall */
905 .llong .sys_ni_syscall /* old uname syscall */
906 .llong .sys_umask /* 60 */
911 .llong .sys_getpgrp /* 65 */
913 .llong .sys_ni_syscall
916 .llong .sys_setreuid /* 70 */
918 .llong .sys_ni_syscall
919 .llong .sys_ni_syscall
920 .llong .sys_sethostname
921 .llong .sys_setrlimit /* 75 */
922 .llong .sys_ni_syscall /* old getrlimit syscall */
923 .llong .sys_getrusage
924 .llong .sys_gettimeofday
925 .llong .sys_settimeofday
926 .llong .sys_getgroups /* 80 */
927 .llong .sys_setgroups
928 .llong .sys_ni_syscall /* old select syscall */
930 .llong .sys_ni_syscall /* old lstat syscall */
931 .llong .sys_readlink /* 85 */
935 .llong .sys_ni_syscall /* old readdir syscall */
936 .llong .sys_mmap /* 90 */
939 .llong .sys_ftruncate
941 .llong .sys_fchown /* 95 */
942 .llong .sys_getpriority
943 .llong .sys_setpriority
944 .llong .sys_ni_syscall /* old profil syscall holder */
946 .llong .sys_fstatfs /* 100 */
947 .llong .sys_ni_syscall /* old ioperm syscall */
948 .llong .sys_socketcall
950 .llong .sys_setitimer
951 .llong .sys_getitimer /* 105 */
955 .llong .sys_ni_syscall /* old uname syscall */
956 .llong .sys_ni_syscall /* 110 old iopl syscall */
958 .llong .sys_ni_syscall /* old idle syscall */
959 .llong .sys_ni_syscall /* old vm86 syscall */
961 .llong .sys_swapoff /* 115 */
965 .llong .sys_ni_syscall
966 .llong .sys_clone /* 120 */
967 .llong .sys_setdomainname
968 .llong .ppc64_newuname
969 .llong .sys_ni_syscall /* old modify_ldt syscall */
971 .llong .sys_mprotect /* 125 */
972 .llong .sys_ni_syscall
973 .llong .sys_ni_syscall /* old create_module syscall */
974 .llong .sys_init_module
975 .llong .sys_delete_module
976 .llong .sys_ni_syscall /* 130 old get_kernel_syms syscall */
981 .llong .sys_sysfs /* 135 */
982 .llong .ppc64_personality
983 .llong .sys_ni_syscall /* for afs_syscall */
986 .llong .sys_llseek /* 140 */
991 .llong .sys_readv /* 145 */
994 .llong .sys_fdatasync
996 .llong .sys_mlock /* 150 */
999 .llong .sys_munlockall
1000 .llong .sys_sched_setparam
1001 .llong .sys_sched_getparam /* 155 */
1002 .llong .sys_sched_setscheduler
1003 .llong .sys_sched_getscheduler
1004 .llong .sys_sched_yield
1005 .llong .sys_sched_get_priority_max
1006 .llong .sys_sched_get_priority_min /* 160 */
1007 .llong .sys_sched_rr_get_interval
1008 .llong .sys_nanosleep
1010 .llong .sys_setresuid
1011 .llong .sys_getresuid /* 165 */
1012 .llong .sys_ni_syscall /* old query_module syscall */
1014 .llong .sys_nfsservctl
1015 .llong .sys_setresgid
1016 .llong .sys_getresgid /* 170 */
1018 .llong .ppc64_rt_sigreturn
1019 .llong .sys_rt_sigaction
1020 .llong .sys_rt_sigprocmask
1021 .llong .sys_rt_sigpending /* 175 */
1022 .llong .sys_rt_sigtimedwait
1023 .llong .sys_rt_sigqueueinfo
1024 .llong .sys_rt_sigsuspend
1026 .llong .sys_pwrite64 /* 180 */
1031 .llong .sys_sigaltstack /* 185 */
1032 .llong .sys_sendfile
1033 .llong .sys_ni_syscall /* reserved for streams1 */
1034 .llong .sys_ni_syscall /* reserved for streams2 */
1036 .llong .sys_getrlimit /* 190 */
1037 .llong .sys_readahead
1038 .llong .sys_ni_syscall /* 32bit only mmap2 */
1039 .llong .sys_ni_syscall /* 32bit only truncate64 */
1040 .llong .sys_ni_syscall /* 32bit only ftruncate64 */
1041 .llong .sys_ni_syscall /* 195 - 32bit only stat64 */
1042 .llong .sys_ni_syscall /* 32bit only lstat64 */
1043 .llong .sys_ni_syscall /* 32bit only fstat64 */
1044 .llong .sys_ni_syscall /* 32bit only pciconfig_read */
1045 .llong .sys_ni_syscall /* 32bit only pciconfig_write */
1046 .llong .sys_ni_syscall /* 32bit only pciconfig_iobase */
1047 .llong .sys_ni_syscall /* reserved for MacOnLinux */
1048 .llong .sys_getdents64
1049 .llong .sys_pivot_root
1050 .llong .sys_ni_syscall /* 32bit only fcntl64 */
1051 .llong .sys_madvise /* 205 */
1055 .llong .sys_setxattr
1056 .llong .sys_lsetxattr /* 210 */
1057 .llong .sys_fsetxattr
1058 .llong .sys_getxattr
1059 .llong .sys_lgetxattr
1060 .llong .sys_fgetxattr
1061 .llong .sys_listxattr /* 215 */
1062 .llong .sys_llistxattr
1063 .llong .sys_flistxattr
1064 .llong .sys_removexattr
1065 .llong .sys_lremovexattr
1066 .llong .sys_fremovexattr /* 220 */
1068 .llong .sys_sched_setaffinity
1069 .llong .sys_sched_getaffinity
1070 .llong .sys_ni_syscall
1071 .llong .sys_ni_syscall /* 225 - reserved for tux */
1072 .llong .sys_ni_syscall /* 32bit only sendfile64 */
1073 .llong .sys_io_setup
1074 .llong .sys_io_destroy
1075 .llong .sys_io_getevents
1076 .llong .sys_io_submit /* 230 */
1077 .llong .sys_io_cancel
1078 .llong .sys_set_tid_address
1079 .llong .sys_fadvise64
1080 .llong .sys_exit_group
1081 .llong .sys_lookup_dcookie /* 235 */
1082 .llong .sys_epoll_create
1083 .llong .sys_epoll_ctl
1084 .llong .sys_epoll_wait
1085 .llong .sys_remap_file_pages
1086 .llong .sys_timer_create /* 240 */
1087 .llong .sys_timer_settime
1088 .llong .sys_timer_gettime
1089 .llong .sys_timer_getoverrun
1090 .llong .sys_timer_delete
1091 .llong .sys_clock_settime /* 245 */
1092 .llong .sys_clock_gettime
1093 .llong .sys_clock_getres
1094 .llong .sys_clock_nanosleep
1095 .llong .ppc64_swapcontext
1096 .llong .sys_tgkill /* 250 */
1098 .llong .sys_statfs64
1099 .llong .sys_fstatfs64
1100 .llong .sys_ni_syscall /* 32bit only fadvise64_64 */
1101 .llong .ppc_rtas /* 255 */
1102 .llong .sys_ni_syscall /* 256 reserved for sys_debug_setcontext */
1103 .llong .sys_ni_syscall /* 257 reserved for vserver */
1104 .llong .sys_ni_syscall /* 258 reserved for new sys_remap_file_pages */
1105 .llong .sys_ni_syscall /* 259 reserved for new sys_mbind */
1106 .llong .sys_ni_syscall /* 260 reserved for new sys_get_mempolicy */
1107 .llong .sys_ni_syscall /* 261 reserved for new sys_set_mempolicy */
1109 .llong .sys_mq_unlink
1110 .llong .sys_mq_timedsend
1111 .llong .sys_mq_timedreceive /* 265 */
1112 .llong .sys_mq_notify
1113 .llong .sys_mq_getsetattr