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 * To be called by C code which needs to do some operations with MMU
132 * disabled. Note that interrupts have to be disabled by the caller
133 * prior to calling us. The code called _MUST_ be in the RMO of course
134 * and part of the linear mapping as we don't attempt to translate the
135 * stack pointer at all. The function is called with the stack switched
136 * to this CPU emergency stack
138 * prototype is void *call_with_mmu_off(void *func, void *data);
140 * the called function is expected to be of the form
142 * void *called(void *data);
144 _GLOBAL(call_with_mmu_off)
145 mflr r0 /* get link, save it on stackframe */
147 mr r1,r5 /* save old stack ptr */
148 ld r1,PACAEMERGSP(r13) /* get emerg. stack */
149 subi r1,r1,STACK_FRAME_OVERHEAD
150 std r0,16(r1) /* save link on emerg. stack */
151 std r5,0(r1) /* save old stack ptr in backchain */
152 ld r3,0(r3) /* get to real function ptr (assume same TOC) */
153 bl 2f /* we need LR to return, continue at label 2 */
155 ld r0,16(r1) /* we return here from the call, get LR and */
156 ld r1,0(r1) /* .. old stack ptr */
157 mtspr SPRN_SRR0,r0 /* and get back to virtual mode with these */
159 ori r4,r4,MSR_IR|MSR_DR
163 2: mtspr SPRN_SRR0,r3 /* coming from above, enter real mode */
164 mr r3,r4 /* get parameter */
166 ori r0,r0,MSR_IR|MSR_DR
167 xori r0,r0,MSR_IR|MSR_DR
172 * Flush instruction cache.
174 _GLOBAL(flush_instruction_cache)
177 * This is called by kgdb code
178 * and should probably go away
179 * to be replaced by invalidating
180 * the cache lines that are actually
183 /* use invalidate-all bit in HID0
184 * - is this consistent across all 64-bit cpus? -- paulus */
193 * Write any modified data cache blocks out to memory
194 * and invalidate the corresponding instruction cache blocks.
196 * flush_icache_range(unsigned long start, unsigned long stop)
198 * flush all bytes from start through stop-1 inclusive
201 _GLOBAL(__flush_icache_range)
204 * Flush the data cache to memory
206 * Different systems have different cache line sizes
207 * and in some cases i-cache and d-cache line sizes differ from
210 LOADADDR(r10,naca) /* Get Naca address */
212 LOADADDR(r11,systemcfg) /* Get systemcfg address */
214 lwz r7,DCACHEL1LINESIZE(r11)/* Get cache line size */
216 andc r6,r3,r5 /* round low to line bdy */
217 subf r8,r6,r4 /* compute length */
218 add r8,r8,r5 /* ensure we get enough */
219 lwz r9,DCACHEL1LOGLINESIZE(r10) /* Get log-2 of cache line size */
220 srw. r8,r8,r9 /* compute line count */
221 beqlr /* nothing to do? */
228 /* Now invalidate the instruction cache */
230 lwz r7,ICACHEL1LINESIZE(r11) /* Get Icache line size */
232 andc r6,r3,r5 /* round low to line bdy */
233 subf r8,r6,r4 /* compute length */
235 lwz r9,ICACHEL1LOGLINESIZE(r10) /* Get log-2 of Icache line size */
236 srw. r8,r8,r9 /* compute line count */
237 beqlr /* nothing to do? */
246 * Like above, but only do the D-cache.
248 * flush_dcache_range(unsigned long start, unsigned long stop)
250 * flush all bytes from start to stop-1 inclusive
252 _GLOBAL(flush_dcache_range)
255 * Flush the data cache to memory
257 * Different systems have different cache line sizes
259 LOADADDR(r10,naca) /* Get Naca address */
261 LOADADDR(r11,systemcfg) /* Get systemcfg address */
263 lwz r7,DCACHEL1LINESIZE(r11) /* Get dcache line size */
265 andc r6,r3,r5 /* round low to line bdy */
266 subf r8,r6,r4 /* compute length */
267 add r8,r8,r5 /* ensure we get enough */
268 lwz r9,DCACHEL1LOGLINESIZE(r10) /* Get log-2 of dcache line size */
269 srw. r8,r8,r9 /* compute line count */
270 beqlr /* nothing to do? */
279 * Like above, but works on non-mapped physical addresses.
280 * Use only for non-LPAR setups ! It also assumes real mode
281 * is cacheable. Used for flushing out the DART before using
282 * it as uncacheable memory
284 * flush_dcache_phys_range(unsigned long start, unsigned long stop)
286 * flush all bytes from start to stop-1 inclusive
288 _GLOBAL(flush_dcache_phys_range)
289 LOADADDR(r10,naca) /* Get Naca address */
291 LOADADDR(r11,systemcfg) /* Get systemcfg address */
293 lwz r7,DCACHEL1LINESIZE(r11) /* Get dcache line size */
295 andc r6,r3,r5 /* round low to line bdy */
296 subf r8,r6,r4 /* compute length */
297 add r8,r8,r5 /* ensure we get enough */
298 lwz r9,DCACHEL1LOGLINESIZE(r10) /* Get log-2 of dcache line size */
299 srw. r8,r8,r9 /* compute line count */
300 beqlr /* nothing to do? */
301 mfmsr r5 /* Disable MMU Data Relocation */
314 mtmsr r5 /* Re-enable MMU Data Relocation */
321 * Flush a particular page from the data cache to RAM.
322 * Note: this is necessary because the instruction cache does *not*
323 * snoop from the data cache.
325 * void __flush_dcache_icache(void *page)
327 _GLOBAL(__flush_dcache_icache)
329 * Flush the data cache to memory
331 * Different systems have different cache line sizes
334 /* Flush the dcache */
337 LOADADDR(r8,systemcfg) /* Get systemcfg address */
339 clrrdi r3,r3,12 /* Page align */
340 lwz r4,DCACHEL1LINESPERPAGE(r7) /* Get # dcache lines per page */
341 lwz r5,DCACHEL1LINESIZE(r8) /* Get dcache line size */
349 /* Now invalidate the icache */
351 lwz r4,ICACHEL1LINESPERPAGE(r7) /* Get # icache lines per page */
352 lwz r5,ICACHEL1LINESIZE(r8) /* Get icache line size */
361 * I/O string operations
363 * insb(port, buf, len)
364 * outsb(port, buf, len)
365 * insw(port, buf, len)
366 * outsw(port, buf, len)
367 * insl(port, buf, len)
368 * outsl(port, buf, len)
369 * insw_ns(port, buf, len)
370 * outsw_ns(port, buf, len)
371 * insl_ns(port, buf, len)
372 * outsl_ns(port, buf, len)
374 * The *_ns versions don't do byte-swapping.
448 /* _GLOBAL(ide_insw) now in drivers/ide/ide-iops.c */
462 /* _GLOBAL(ide_outsw) now in drivers/ide/ide-iops.c */
500 lfd 0,0(r5) /* load up fpscr value */
504 mffs 0 /* save new fpscr value */
509 lfd 0,0(r5) /* load up fpscr value */
513 mffs 0 /* save new fpscr value */
518 * identify_cpu and calls setup_cpu
519 * In: r3 = base of the cpu_specs array
520 * r4 = address of cur_cpu_spec
521 * r5 = relocation offset
523 _GLOBAL(identify_cpu)
526 lwz r8,CPU_SPEC_PVR_MASK(r3)
528 lwz r9,CPU_SPEC_PVR_VALUE(r3)
531 addi r3,r3,CPU_SPEC_ENTRY_SIZE
536 ld r4,CPU_SPEC_SETUP(r3)
541 /* Calling convention for cpu setup is r3=offset, r4=cur_cpu_spec */
547 * do_cpu_ftr_fixups - goes through the list of CPU feature fixups
548 * and writes nop's over sections of code that don't apply for this cpu.
549 * r3 = data offset (not changed)
551 _GLOBAL(do_cpu_ftr_fixups)
552 /* Get CPU 0 features */
553 LOADADDR(r6,cur_cpu_spec)
557 ld r4,CPU_SPEC_FEATURES(r4)
558 /* Get the fixup table */
559 LOADADDR(r6,__start___ftr_fixup)
561 LOADADDR(r7,__stop___ftr_fixup)
567 ld r8,-32(r6) /* mask */
569 ld r9,-24(r6) /* value */
572 ld r8,-16(r6) /* section begin */
573 ld r9,-8(r6) /* section end */
576 /* write nops over the section of code */
577 /* todo: if large section, add a branch at the start of it */
581 lis r0,0x60000000@h /* nop */
583 andi. r10,r4,CPU_FTR_SPLIT_ID_CACHE@l
585 dcbst 0,r8 /* suboptimal, but simpler */
590 sync /* additional sync needed on g4 */
594 #ifdef CONFIG_PPC_PMAC
596 * Do an IO access in real mode
627 * Do an IO access in real mode
656 #endif /* CONFIG_PPC_PMAC */
659 * Create a kernel thread
660 * kernel_thread(fn, arg, flags)
662 _GLOBAL(kernel_thread)
665 stdu r1,-STACK_FRAME_OVERHEAD(r1)
668 ori r3,r5,CLONE_VM /* flags */
669 oris r3,r3,(CLONE_UNTRACED>>16)
670 li r4,0 /* new sp (unused) */
673 cmpdi 0,r3,0 /* parent or child? */
674 bne 1f /* return if parent */
676 stdu r0,-STACK_FRAME_OVERHEAD(r1)
679 mtlr r29 /* fn addr in lr */
680 mr r3,r30 /* load arg and call fn */
682 li r0,__NR_exit /* exit after child exits */
685 1: addi r1,r1,STACK_FRAME_OVERHEAD
690 #ifndef CONFIG_PPC_PSERIES /* hack hack hack */
691 #define ppc_rtas sys_ni_syscall
694 /* Why isn't this a) automatic, b) written in 'C'? */
696 _GLOBAL(sys_call_table32)
697 .llong .sys_restart_syscall /* 0 */
702 .llong .sys32_open /* 5 */
704 .llong .sys32_waitpid
707 .llong .sys_unlink /* 10 */
712 .llong .sys_chmod /* 15 */
714 .llong .sys_ni_syscall /* old break syscall */
715 .llong .sys_ni_syscall /* old stat syscall */
717 .llong .sys_getpid /* 20 */
718 .llong .compat_sys_mount
719 .llong .sys_oldumount
722 .llong .ppc64_sys32_stime /* 25 */
725 .llong .sys_ni_syscall /* old fstat syscall */
727 .llong .compat_sys_utime /* 30 */
728 .llong .sys_ni_syscall /* old stty syscall */
729 .llong .sys_ni_syscall /* old gtty syscall */
732 .llong .sys_ni_syscall /* 35 - old ftime syscall */
737 .llong .sys_rmdir /* 40 */
740 .llong .compat_sys_times
741 .llong .sys_ni_syscall /* old prof syscall */
742 .llong .sys_brk /* 45 */
747 .llong .sys_getegid /* 50 */
750 .llong .sys_ni_syscall /* old lock syscall */
751 .llong .compat_sys_ioctl
752 .llong .compat_sys_fcntl /* 55 */
753 .llong .sys_ni_syscall /* old mpx syscall */
754 .llong .sys32_setpgid
755 .llong .sys_ni_syscall /* old ulimit syscall */
756 .llong .sys32_olduname
757 .llong .sys32_umask /* 60 */
762 .llong .sys_getpgrp /* 65 */
764 .llong .sys32_sigaction
766 .llong .sys32_ssetmask
767 .llong .sys_setreuid /* 70 */
769 .llong .ppc32_sigsuspend
770 .llong .compat_sys_sigpending
771 .llong .sys32_sethostname
772 .llong .compat_sys_setrlimit /* 75 */
773 .llong .compat_sys_old_getrlimit
774 .llong .compat_sys_getrusage
775 .llong .sys32_gettimeofday
776 .llong .sys32_settimeofday
777 .llong .sys32_getgroups /* 80 */
778 .llong .sys32_setgroups
779 .llong .sys_ni_syscall /* old select syscall */
781 .llong .sys_ni_syscall /* old lstat syscall */
782 .llong .sys32_readlink /* 85 */
786 .llong .old32_readdir
787 .llong .sys_mmap /* 90 */
790 .llong .sys_ftruncate
792 .llong .sys_fchown /* 95 */
793 .llong .sys32_getpriority
794 .llong .sys32_setpriority
795 .llong .sys_ni_syscall /* old profil syscall */
796 .llong .compat_sys_statfs
797 .llong .compat_sys_fstatfs /* 100 */
798 .llong .sys_ni_syscall /* old ioperm syscall */
799 .llong .compat_sys_socketcall
801 .llong .compat_sys_setitimer
802 .llong .compat_sys_getitimer /* 105 */
803 .llong .compat_sys_newstat
804 .llong .compat_sys_newlstat
805 .llong .compat_sys_newfstat
807 .llong .sys_ni_syscall /* 110 old iopl syscall */
809 .llong .sys_ni_syscall /* old idle syscall */
810 .llong .sys_ni_syscall /* old vm86 syscall */
811 .llong .compat_sys_wait4
812 .llong .sys_swapoff /* 115 */
813 .llong .sys32_sysinfo
816 .llong .ppc32_sigreturn
817 .llong .ppc_clone /* 120 */
818 .llong .sys32_setdomainname
819 .llong .ppc64_newuname
820 .llong .sys_ni_syscall /* old modify_ldt syscall */
821 .llong .sys32_adjtimex
822 .llong .sys_mprotect /* 125 */
823 .llong .compat_sys_sigprocmask
824 .llong .sys_ni_syscall /* old create_module syscall */
825 .llong .sys_init_module
826 .llong .sys_delete_module
827 .llong .sys_ni_syscall /* 130 old get_kernel_syms syscall */
829 .llong .sys32_getpgid
832 .llong .sys32_sysfs /* 135 */
833 .llong .ppc64_personality
834 .llong .sys_ni_syscall /* for afs_syscall */
837 .llong .sys_llseek /* 140 */
838 .llong .sys32_getdents
842 .llong .compat_sys_readv /* 145 */
843 .llong .compat_sys_writev
845 .llong .sys_fdatasync
847 .llong .sys_mlock /* 150 */
850 .llong .sys_munlockall
851 .llong .sys32_sched_setparam
852 .llong .sys32_sched_getparam /* 155 */
853 .llong .sys32_sched_setscheduler
854 .llong .sys32_sched_getscheduler
855 .llong .sys_sched_yield
856 .llong .sys32_sched_get_priority_max
857 .llong .sys32_sched_get_priority_min /* 160 */
858 .llong .sys32_sched_rr_get_interval
859 .llong .compat_sys_nanosleep
861 .llong .sys_setresuid
862 .llong .sys_getresuid /* 165 */
863 .llong .sys_ni_syscall /* old query_module syscall */
865 .llong .compat_sys_nfsservctl
866 .llong .sys_setresgid
867 .llong .sys_getresgid /* 170 */
869 .llong .ppc32_rt_sigreturn
870 .llong .sys32_rt_sigaction
871 .llong .sys32_rt_sigprocmask
872 .llong .sys32_rt_sigpending /* 175 */
873 .llong .sys32_rt_sigtimedwait
874 .llong .sys32_rt_sigqueueinfo
875 .llong .ppc32_rt_sigsuspend
876 .llong .sys32_pread64
877 .llong .sys32_pwrite64 /* 180 */
882 .llong .sys32_sigaltstack /* 185 */
883 .llong .sys32_sendfile
884 .llong .sys_ni_syscall /* reserved for streams1 */
885 .llong .sys_ni_syscall /* reserved for streams2 */
887 .llong .compat_sys_getrlimit /* 190 */
888 .llong .sys32_readahead
890 .llong .sys32_truncate64
891 .llong .sys32_ftruncate64
892 .llong .sys_stat64 /* 195 */
895 .llong .sys32_pciconfig_read
896 .llong .sys32_pciconfig_write
897 .llong .sys32_pciconfig_iobase /* 200 - pciconfig_iobase */
898 .llong .sys_ni_syscall /* reserved for MacOnLinux */
899 .llong .sys_getdents64
900 .llong .sys_pivot_root
901 .llong .compat_sys_fcntl64
902 .llong .sys_madvise /* 205 */
907 .llong .sys_lsetxattr /* 210 */
908 .llong .sys_fsetxattr
910 .llong .sys_lgetxattr
911 .llong .sys_fgetxattr
912 .llong .sys_listxattr /* 215 */
913 .llong .sys_llistxattr
914 .llong .sys_flistxattr
915 .llong .sys_removexattr
916 .llong .sys_lremovexattr
917 .llong .sys_fremovexattr /* 220 */
918 .llong .compat_sys_futex
919 .llong .compat_sys_sched_setaffinity
920 .llong .compat_sys_sched_getaffinity
921 .llong .sys_ni_syscall
922 .llong .sys_ni_syscall /* 225 - reserved for tux */
923 .llong .sys32_sendfile64
924 .llong .compat_sys_io_setup
925 .llong .sys_io_destroy
926 .llong .compat_sys_io_getevents
927 .llong .compat_sys_io_submit
928 .llong .sys_io_cancel
929 .llong .sys_set_tid_address
930 .llong .ppc32_fadvise64
931 .llong .sys_exit_group
932 .llong .ppc32_lookup_dcookie /* 235 */
933 .llong .sys_epoll_create
934 .llong .sys_epoll_ctl
935 .llong .sys_epoll_wait
936 .llong .sys_remap_file_pages
937 .llong .ppc32_timer_create /* 240 */
938 .llong .compat_timer_settime
939 .llong .compat_timer_gettime
940 .llong .sys_timer_getoverrun
941 .llong .sys_timer_delete
942 .llong .compat_clock_settime /* 245 */
943 .llong .compat_clock_gettime
944 .llong .compat_clock_getres
945 .llong .compat_clock_nanosleep
946 .llong .ppc32_swapcontext
947 .llong .sys32_tgkill /* 250 */
949 .llong .compat_statfs64
950 .llong .compat_fstatfs64
951 .llong .ppc32_fadvise64_64 /* 32bit only fadvise64_64 */
952 .llong .ppc_rtas /* 255 */
953 .llong .sys_ni_syscall /* 256 reserved for sys_debug_setcontext */
955 .llong .sys_ni_syscall /* 258 reserved for new sys_remap_file_pages */
957 .llong .compat_get_mempolicy /* 260 */
958 .llong .compat_set_mempolicy
959 .llong .compat_sys_mq_open
960 .llong .sys_mq_unlink
961 .llong .compat_sys_mq_timedsend
962 .llong .compat_sys_mq_timedreceive /* 265 */
963 .llong .compat_sys_mq_notify
964 .llong .compat_sys_mq_getsetattr
965 .llong .sys_ni_syscall /* 268 reserved for sys_kexec_load */
968 _GLOBAL(sys_call_table)
969 .llong .sys_restart_syscall /* 0 */
974 .llong .sys_open /* 5 */
979 .llong .sys_unlink /* 10 */
984 .llong .sys_chmod /* 15 */
986 .llong .sys_ni_syscall /* old break syscall */
987 .llong .sys_ni_syscall /* old stat syscall */
989 .llong .sys_getpid /* 20 */
991 .llong .sys_ni_syscall /* old umount syscall */
994 .llong .ppc64_sys_stime /* 25 */
997 .llong .sys_ni_syscall /* old fstat syscall */
999 .llong .sys_utime /* 30 */
1000 .llong .sys_ni_syscall /* old stty syscall */
1001 .llong .sys_ni_syscall /* old gtty syscall */
1004 .llong .sys_ni_syscall /* 35 - old ftime syscall */
1009 .llong .sys_rmdir /* 40 */
1013 .llong .sys_ni_syscall /* old prof syscall */
1014 .llong .sys_brk /* 45 */
1019 .llong .sys_getegid /* 50 */
1022 .llong .sys_ni_syscall /* old lock syscall */
1024 .llong .sys_fcntl /* 55 */
1025 .llong .sys_ni_syscall /* old mpx syscall */
1027 .llong .sys_ni_syscall /* old ulimit syscall */
1028 .llong .sys_ni_syscall /* old uname syscall */
1029 .llong .sys_umask /* 60 */
1034 .llong .sys_getpgrp /* 65 */
1036 .llong .sys_ni_syscall
1037 .llong .sys_sgetmask
1038 .llong .sys_ssetmask
1039 .llong .sys_setreuid /* 70 */
1040 .llong .sys_setregid
1041 .llong .sys_ni_syscall
1042 .llong .sys_ni_syscall
1043 .llong .sys_sethostname
1044 .llong .sys_setrlimit /* 75 */
1045 .llong .sys_ni_syscall /* old getrlimit syscall */
1046 .llong .sys_getrusage
1047 .llong .sys_gettimeofday
1048 .llong .sys_settimeofday
1049 .llong .sys_getgroups /* 80 */
1050 .llong .sys_setgroups
1051 .llong .sys_ni_syscall /* old select syscall */
1053 .llong .sys_ni_syscall /* old lstat syscall */
1054 .llong .sys_readlink /* 85 */
1058 .llong .sys_ni_syscall /* old readdir syscall */
1059 .llong .sys_mmap /* 90 */
1061 .llong .sys_truncate
1062 .llong .sys_ftruncate
1064 .llong .sys_fchown /* 95 */
1065 .llong .sys_getpriority
1066 .llong .sys_setpriority
1067 .llong .sys_ni_syscall /* old profil syscall holder */
1069 .llong .sys_fstatfs /* 100 */
1070 .llong .sys_ni_syscall /* old ioperm syscall */
1071 .llong .sys_socketcall
1073 .llong .sys_setitimer
1074 .llong .sys_getitimer /* 105 */
1076 .llong .sys_newlstat
1077 .llong .sys_newfstat
1078 .llong .sys_ni_syscall /* old uname syscall */
1079 .llong .sys_ni_syscall /* 110 old iopl syscall */
1081 .llong .sys_ni_syscall /* old idle syscall */
1082 .llong .sys_ni_syscall /* old vm86 syscall */
1084 .llong .sys_swapoff /* 115 */
1088 .llong .sys_ni_syscall
1089 .llong .ppc_clone /* 120 */
1090 .llong .sys_setdomainname
1091 .llong .ppc64_newuname
1092 .llong .sys_ni_syscall /* old modify_ldt syscall */
1093 .llong .sys_adjtimex
1094 .llong .sys_mprotect /* 125 */
1095 .llong .sys_ni_syscall
1096 .llong .sys_ni_syscall /* old create_module syscall */
1097 .llong .sys_init_module
1098 .llong .sys_delete_module
1099 .llong .sys_ni_syscall /* 130 old get_kernel_syms syscall */
1100 .llong .sys_quotactl
1104 .llong .sys_sysfs /* 135 */
1105 .llong .ppc64_personality
1106 .llong .sys_ni_syscall /* for afs_syscall */
1107 .llong .sys_setfsuid
1108 .llong .sys_setfsgid
1109 .llong .sys_llseek /* 140 */
1110 .llong .sys_getdents
1114 .llong .sys_readv /* 145 */
1117 .llong .sys_fdatasync
1119 .llong .sys_mlock /* 150 */
1121 .llong .sys_mlockall
1122 .llong .sys_munlockall
1123 .llong .sys_sched_setparam
1124 .llong .sys_sched_getparam /* 155 */
1125 .llong .sys_sched_setscheduler
1126 .llong .sys_sched_getscheduler
1127 .llong .sys_sched_yield
1128 .llong .sys_sched_get_priority_max
1129 .llong .sys_sched_get_priority_min /* 160 */
1130 .llong .sys_sched_rr_get_interval
1131 .llong .sys_nanosleep
1133 .llong .sys_setresuid
1134 .llong .sys_getresuid /* 165 */
1135 .llong .sys_ni_syscall /* old query_module syscall */
1137 .llong .sys_nfsservctl
1138 .llong .sys_setresgid
1139 .llong .sys_getresgid /* 170 */
1141 .llong .ppc64_rt_sigreturn
1142 .llong .sys_rt_sigaction
1143 .llong .sys_rt_sigprocmask
1144 .llong .sys_rt_sigpending /* 175 */
1145 .llong .sys_rt_sigtimedwait
1146 .llong .sys_rt_sigqueueinfo
1147 .llong .ppc64_rt_sigsuspend
1149 .llong .sys_pwrite64 /* 180 */
1154 .llong .sys_sigaltstack /* 185 */
1155 .llong .sys_sendfile64
1156 .llong .sys_ni_syscall /* reserved for streams1 */
1157 .llong .sys_ni_syscall /* reserved for streams2 */
1159 .llong .sys_getrlimit /* 190 */
1160 .llong .sys_readahead
1161 .llong .sys_ni_syscall /* 32bit only mmap2 */
1162 .llong .sys_ni_syscall /* 32bit only truncate64 */
1163 .llong .sys_ni_syscall /* 32bit only ftruncate64 */
1164 .llong .sys_ni_syscall /* 195 - 32bit only stat64 */
1165 .llong .sys_ni_syscall /* 32bit only lstat64 */
1166 .llong .sys_ni_syscall /* 32bit only fstat64 */
1167 .llong .sys_ni_syscall /* 32bit only pciconfig_read */
1168 .llong .sys_ni_syscall /* 32bit only pciconfig_write */
1169 .llong .sys_ni_syscall /* 32bit only pciconfig_iobase */
1170 .llong .sys_ni_syscall /* reserved for MacOnLinux */
1171 .llong .sys_getdents64
1172 .llong .sys_pivot_root
1173 .llong .sys_ni_syscall /* 32bit only fcntl64 */
1174 .llong .sys_madvise /* 205 */
1178 .llong .sys_setxattr
1179 .llong .sys_lsetxattr /* 210 */
1180 .llong .sys_fsetxattr
1181 .llong .sys_getxattr
1182 .llong .sys_lgetxattr
1183 .llong .sys_fgetxattr
1184 .llong .sys_listxattr /* 215 */
1185 .llong .sys_llistxattr
1186 .llong .sys_flistxattr
1187 .llong .sys_removexattr
1188 .llong .sys_lremovexattr
1189 .llong .sys_fremovexattr /* 220 */
1191 .llong .sys_sched_setaffinity
1192 .llong .sys_sched_getaffinity
1193 .llong .sys_ni_syscall
1194 .llong .sys_ni_syscall /* 225 - reserved for tux */
1195 .llong .sys_ni_syscall /* 32bit only sendfile64 */
1196 .llong .sys_io_setup
1197 .llong .sys_io_destroy
1198 .llong .sys_io_getevents
1199 .llong .sys_io_submit /* 230 */
1200 .llong .sys_io_cancel
1201 .llong .sys_set_tid_address
1202 .llong .sys_fadvise64
1203 .llong .sys_exit_group
1204 .llong .sys_lookup_dcookie /* 235 */
1205 .llong .sys_epoll_create
1206 .llong .sys_epoll_ctl
1207 .llong .sys_epoll_wait
1208 .llong .sys_remap_file_pages
1209 .llong .sys_timer_create /* 240 */
1210 .llong .sys_timer_settime
1211 .llong .sys_timer_gettime
1212 .llong .sys_timer_getoverrun
1213 .llong .sys_timer_delete
1214 .llong .sys_clock_settime /* 245 */
1215 .llong .sys_clock_gettime
1216 .llong .sys_clock_getres
1217 .llong .sys_clock_nanosleep
1218 .llong .ppc64_swapcontext
1219 .llong .sys_tgkill /* 250 */
1221 .llong .sys_statfs64
1222 .llong .sys_fstatfs64
1223 .llong .sys_ni_syscall /* 32bit only fadvise64_64 */
1224 .llong .ppc_rtas /* 255 */
1225 .llong .sys_ni_syscall /* 256 reserved for sys_debug_setcontext */
1226 .llong .sys_ni_syscall /* 257 reserved for vserver */
1227 .llong .sys_ni_syscall /* 258 reserved for new sys_remap_file_pages */
1229 .llong .sys_get_mempolicy /* 260 */
1230 .llong .sys_set_mempolicy
1232 .llong .sys_mq_unlink
1233 .llong .sys_mq_timedsend
1234 .llong .sys_mq_timedreceive /* 265 */
1235 .llong .sys_mq_notify
1236 .llong .sys_mq_getsetattr
1237 .llong .sys_ni_syscall /* 268 reserved for sys_kexec_load */