2 * This file contains miscellaneous low-level functions.
3 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
5 * Largely rewritten by Cort Dougan (cort@cs.nmt.edu)
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version
11 * 2 of the License, or (at your option) any later version.
15 #include <linux/config.h>
16 #include <linux/sys.h>
17 #include <asm/unistd.h>
18 #include <asm/errno.h>
19 #include <asm/processor.h>
21 #include <asm/cache.h>
22 #include <asm/cputable.h>
24 #include <asm/ppc_asm.h>
25 #include <asm/thread_info.h>
26 #include <asm/asm-offsets.h>
39 * Returns (address we're running at) - (address we were linked at)
40 * for use before the text and data are mapped to KERNELBASE.
53 * add_reloc_offset(x) returns x + reloc_offset().
55 _GLOBAL(add_reloc_offset)
67 * sub_reloc_offset(x) returns x - reloc_offset().
69 _GLOBAL(sub_reloc_offset)
81 * reloc_got2 runs through the .got2 section adding an offset
86 lis r7,__got2_start@ha
87 addi r7,r7,__got2_start@l
89 addi r8,r8,__got2_end@l
110 * called with r3 = data offset and r4 = CPU number
113 _GLOBAL(identify_cpu)
114 addis r8,r3,cpu_specs@ha
115 addi r8,r8,cpu_specs@l
118 lwz r5,CPU_SPEC_PVR_MASK(r8)
120 lwz r6,CPU_SPEC_PVR_VALUE(r8)
123 addi r8,r8,CPU_SPEC_ENTRY_SIZE
126 addis r6,r3,cur_cpu_spec@ha
127 addi r6,r6,cur_cpu_spec@l
133 * do_cpu_ftr_fixups - goes through the list of CPU feature fixups
134 * and writes nop's over sections of code that don't apply for this cpu.
135 * r3 = data offset (not changed)
137 _GLOBAL(do_cpu_ftr_fixups)
138 /* Get CPU 0 features */
139 addis r6,r3,cur_cpu_spec@ha
140 addi r6,r6,cur_cpu_spec@l
143 lwz r4,CPU_SPEC_FEATURES(r4)
145 /* Get the fixup table */
146 addis r6,r3,__start___ftr_fixup@ha
147 addi r6,r6,__start___ftr_fixup@l
148 addis r7,r3,__stop___ftr_fixup@ha
149 addi r7,r7,__stop___ftr_fixup@l
155 lwz r8,-16(r6) /* mask */
157 lwz r9,-12(r6) /* value */
160 lwz r8,-8(r6) /* section begin */
161 lwz r9,-4(r6) /* section end */
164 /* write nops over the section of code */
165 /* todo: if large section, add a branch at the start of it */
169 lis r0,0x60000000@h /* nop */
171 andi. r10,r4,CPU_FTR_SPLIT_ID_CACHE@l
173 dcbst 0,r8 /* suboptimal, but simpler */
178 sync /* additional sync needed on g4 */
183 * call_setup_cpu - call the setup_cpu function for this cpu
184 * r3 = data offset, r24 = cpu number
186 * Setup function is called with:
188 * r4 = ptr to CPU spec (relocated)
190 _GLOBAL(call_setup_cpu)
191 addis r4,r3,cur_cpu_spec@ha
192 addi r4,r4,cur_cpu_spec@l
195 lwz r5,CPU_SPEC_SETUP(r4)
202 #if defined(CONFIG_CPU_FREQ_PMAC) && defined(CONFIG_6xx)
204 /* This gets called by via-pmu.c to switch the PLL selection
205 * on 750fx CPU. This function should really be moved to some
206 * other place (as most of the cpufreq code in via-pmu
208 _GLOBAL(low_choose_750fx_pll)
214 /* If switching to PLL1, disable HID0:BTIC */
225 /* Calc new HID1 value */
226 mfspr r4,SPRN_HID1 /* Build a HID1:PS bit from parameter */
227 rlwinm r5,r3,16,15,15 /* Clear out HID1:PS from value read */
228 rlwinm r4,r4,0,16,14 /* Could have I used rlwimi here ? */
232 /* Store new HID1 image */
236 addis r6,r6,nap_save_hid1@ha
237 stw r4,nap_save_hid1@l(r6)
239 /* If switching to PLL0, enable HID0:BTIC */
254 _GLOBAL(low_choose_7447a_dfs)
260 /* Calc new HID1 value */
262 insrwi r4,r3,1,9 /* insert parameter into bit 9 */
272 #endif /* CONFIG_CPU_FREQ_PMAC && CONFIG_6xx */
275 * complement mask on the msr then "or" some values on.
276 * _nmask_and_or_msr(nmask, value_to_or)
278 _GLOBAL(_nmask_and_or_msr)
279 mfmsr r0 /* Get current msr */
280 andc r0,r0,r3 /* And off the bits set in r3 (first parm) */
281 or r0,r0,r4 /* Or on the bits in r4 (second parm) */
282 SYNC /* Some chip revs have problems here... */
283 mtmsr r0 /* Update machine state */
292 #if defined(CONFIG_40x)
293 sync /* Flush to memory before changing mapping */
295 isync /* Flush shadow TLB */
296 #elif defined(CONFIG_44x)
300 /* Load high watermark */
301 lis r4,tlb_44x_hwater@ha
302 lwz r5,tlb_44x_hwater@l(r4)
304 1: tlbwe r3,r3,PPC44x_TLB_PAGEID
310 #elif defined(CONFIG_FSL_BOOKE)
311 /* Invalidate all entries in TLB0 */
314 /* Invalidate all entries in TLB1 */
317 /* Invalidate all entries in TLB2 */
320 /* Invalidate all entries in TLB3 */
326 #endif /* CONFIG_SMP */
327 #else /* !(CONFIG_40x || CONFIG_44x || CONFIG_FSL_BOOKE) */
328 #if defined(CONFIG_SMP)
334 rlwinm r0,r10,0,17,15 /* clear bit 16 (MSR_EE) */
335 rlwinm r0,r0,0,28,26 /* clear DR */
339 lis r9,mmu_hash_lock@h
340 ori r9,r9,mmu_hash_lock@l
352 stw r0,0(r9) /* clear mmu_hash_lock */
356 #else /* CONFIG_SMP */
360 #endif /* CONFIG_SMP */
361 #endif /* ! defined(CONFIG_40x) */
365 * Flush MMU TLB for a particular address
368 #if defined(CONFIG_40x)
372 /* There are only 64 TLB entries, so r3 < 64, which means bit 25 is clear.
373 * Since 25 is the V bit in the TLB_TAG, loading this value will invalidate
375 tlbwe r3, r3, TLB_TAG
378 #elif defined(CONFIG_44x)
380 mfspr r5,SPRN_PID /* Get PID */
381 rlwimi r4,r5,0,24,31 /* Set TID */
387 /* There are only 64 TLB entries, so r3 < 64,
388 * which means bit 22, is clear. Since 22 is
389 * the V bit in the TLB_PAGEID, loading this
390 * value will invalidate the TLB entry.
392 tlbwe r3, r3, PPC44x_TLB_PAGEID
395 #elif defined(CONFIG_FSL_BOOKE)
396 rlwinm r4, r3, 0, 0, 19
397 ori r5, r4, 0x08 /* TLBSEL = 1 */
398 ori r6, r4, 0x10 /* TLBSEL = 2 */
399 ori r7, r4, 0x18 /* TLBSEL = 3 */
405 #if defined(CONFIG_SMP)
407 #endif /* CONFIG_SMP */
408 #else /* !(CONFIG_40x || CONFIG_44x || CONFIG_FSL_BOOKE) */
409 #if defined(CONFIG_SMP)
415 rlwinm r0,r10,0,17,15 /* clear bit 16 (MSR_EE) */
416 rlwinm r0,r0,0,28,26 /* clear DR */
420 lis r9,mmu_hash_lock@h
421 ori r9,r9,mmu_hash_lock@l
433 stw r0,0(r9) /* clear mmu_hash_lock */
437 #else /* CONFIG_SMP */
440 #endif /* CONFIG_SMP */
441 #endif /* ! CONFIG_40x */
445 * Flush instruction cache.
446 * This is a no-op on the 601.
448 _GLOBAL(flush_instruction_cache)
449 #if defined(CONFIG_8xx)
452 mtspr SPRN_IC_CST, r5
453 #elif defined(CONFIG_4xx)
465 #elif CONFIG_FSL_BOOKE
468 ori r3,r3,L1CSR0_CFI|L1CSR0_CLFC
469 /* msync; isync recommended here */
473 END_FTR_SECTION_IFCLR(CPU_FTR_SPLIT_ID_CACHE)
475 ori r3,r3,L1CSR1_ICFI|L1CSR1_ICLFR
479 rlwinm r3,r3,16,16,31
481 beqlr /* for 601, do nothing */
482 /* 603/604 processor - use invalidate-all bit in HID0 */
486 #endif /* CONFIG_8xx/4xx */
491 * Write any modified data cache blocks out to memory
492 * and invalidate the corresponding instruction cache blocks.
493 * This is a no-op on the 601.
495 * flush_icache_range(unsigned long start, unsigned long stop)
497 _GLOBAL(flush_icache_range)
499 blr /* for 601, do nothing */
500 END_FTR_SECTION_IFCLR(CPU_FTR_SPLIT_ID_CACHE)
501 li r5,L1_CACHE_BYTES-1
505 srwi. r4,r4,L1_CACHE_SHIFT
510 addi r3,r3,L1_CACHE_BYTES
512 sync /* wait for dcbst's to get to ram */
515 addi r6,r6,L1_CACHE_BYTES
517 sync /* additional sync needed on g4 */
521 * Write any modified data cache blocks out to memory.
522 * Does not invalidate the corresponding cache lines (especially for
523 * any corresponding instruction cache).
525 * clean_dcache_range(unsigned long start, unsigned long stop)
527 _GLOBAL(clean_dcache_range)
528 li r5,L1_CACHE_BYTES-1
532 srwi. r4,r4,L1_CACHE_SHIFT
537 addi r3,r3,L1_CACHE_BYTES
539 sync /* wait for dcbst's to get to ram */
543 * Write any modified data cache blocks out to memory and invalidate them.
544 * Does not invalidate the corresponding instruction cache blocks.
546 * flush_dcache_range(unsigned long start, unsigned long stop)
548 _GLOBAL(flush_dcache_range)
549 li r5,L1_CACHE_BYTES-1
553 srwi. r4,r4,L1_CACHE_SHIFT
558 addi r3,r3,L1_CACHE_BYTES
560 sync /* wait for dcbst's to get to ram */
564 * Like above, but invalidate the D-cache. This is used by the 8xx
565 * to invalidate the cache so the PPC core doesn't get stale data
566 * from the CPM (no cache snooping here :-).
568 * invalidate_dcache_range(unsigned long start, unsigned long stop)
570 _GLOBAL(invalidate_dcache_range)
571 li r5,L1_CACHE_BYTES-1
575 srwi. r4,r4,L1_CACHE_SHIFT
580 addi r3,r3,L1_CACHE_BYTES
582 sync /* wait for dcbi's to get to ram */
585 #ifdef CONFIG_NOT_COHERENT_CACHE
587 * 40x cores have 8K or 16K dcache and 32 byte line size.
588 * 44x has a 32K dcache and 32 byte line size.
589 * 8xx has 1, 2, 4, 8K variants.
590 * For now, cover the worst case of the 44x.
591 * Must be called with external interrupts disabled.
593 #define CACHE_NWAYS 64
594 #define CACHE_NLINES 16
596 _GLOBAL(flush_dcache_all)
597 li r4, (2 * CACHE_NWAYS * CACHE_NLINES)
600 1: lwz r3, 0(r5) /* Load one word from every line */
601 addi r5, r5, L1_CACHE_BYTES
604 #endif /* CONFIG_NOT_COHERENT_CACHE */
607 * Flush a particular page from the data cache to RAM.
608 * Note: this is necessary because the instruction cache does *not*
609 * snoop from the data cache.
610 * This is a no-op on the 601 which has a unified cache.
612 * void __flush_dcache_icache(void *page)
614 _GLOBAL(__flush_dcache_icache)
616 blr /* for 601, do nothing */
617 END_FTR_SECTION_IFCLR(CPU_FTR_SPLIT_ID_CACHE)
618 rlwinm r3,r3,0,0,19 /* Get page base address */
619 li r4,4096/L1_CACHE_BYTES /* Number of lines in a page */
622 0: dcbst 0,r3 /* Write line to ram */
623 addi r3,r3,L1_CACHE_BYTES
628 addi r6,r6,L1_CACHE_BYTES
635 * Flush a particular page from the data cache to RAM, identified
636 * by its physical address. We turn off the MMU so we can just use
637 * the physical address (this may be a highmem page without a kernel
640 * void __flush_dcache_icache_phys(unsigned long physaddr)
642 _GLOBAL(__flush_dcache_icache_phys)
644 blr /* for 601, do nothing */
645 END_FTR_SECTION_IFCLR(CPU_FTR_SPLIT_ID_CACHE)
647 rlwinm r0,r10,0,28,26 /* clear DR */
650 rlwinm r3,r3,0,0,19 /* Get page base address */
651 li r4,4096/L1_CACHE_BYTES /* Number of lines in a page */
654 0: dcbst 0,r3 /* Write line to ram */
655 addi r3,r3,L1_CACHE_BYTES
660 addi r6,r6,L1_CACHE_BYTES
663 mtmsr r10 /* restore DR */
668 * Clear pages using the dcbz instruction, which doesn't cause any
669 * memory traffic (except to write out any cache lines which get
670 * displaced). This only works on cacheable memory.
672 * void clear_pages(void *page, int order) ;
675 li r0,4096/L1_CACHE_BYTES
687 addi r3,r3,L1_CACHE_BYTES
692 * Copy a whole page. We use the dcbz instruction on the destination
693 * to reduce memory traffic (it eliminates the unnecessary reads of
694 * the destination into cache). This requires that the destination
697 #define COPY_16_BYTES \
712 /* don't use prefetch on 8xx */
713 li r0,4096/L1_CACHE_BYTES
719 #else /* not 8xx, we can prefetch */
722 #if MAX_COPY_PREFETCH > 1
723 li r0,MAX_COPY_PREFETCH
727 addi r11,r11,L1_CACHE_BYTES
729 #else /* MAX_COPY_PREFETCH == 1 */
731 li r11,L1_CACHE_BYTES+4
732 #endif /* MAX_COPY_PREFETCH */
733 li r0,4096/L1_CACHE_BYTES - MAX_COPY_PREFETCH
741 #if L1_CACHE_BYTES >= 32
743 #if L1_CACHE_BYTES >= 64
746 #if L1_CACHE_BYTES >= 128
756 crnot 4*cr0+eq,4*cr0+eq
757 li r0,MAX_COPY_PREFETCH
760 #endif /* CONFIG_8xx */
763 * void atomic_clear_mask(atomic_t mask, atomic_t *addr)
764 * void atomic_set_mask(atomic_t mask, atomic_t *addr);
766 _GLOBAL(atomic_clear_mask)
773 _GLOBAL(atomic_set_mask)
782 * I/O string operations
784 * insb(port, buf, len)
785 * outsb(port, buf, len)
786 * insw(port, buf, len)
787 * outsw(port, buf, len)
788 * insl(port, buf, len)
789 * outsl(port, buf, len)
790 * insw_ns(port, buf, len)
791 * outsw_ns(port, buf, len)
792 * insl_ns(port, buf, len)
793 * outsl_ns(port, buf, len)
795 * The *_ns versions don't do byte-swapping.
863 _GLOBAL(__ide_mm_insw)
875 _GLOBAL(__ide_mm_outsw)
887 _GLOBAL(__ide_mm_insl)
899 _GLOBAL(__ide_mm_outsl)
912 * Extended precision shifts.
914 * Updated to be valid for shift counts from 0 to 63 inclusive.
917 * R3/R4 has 64 bit value
921 * ashrdi3: arithmetic right shift (sign propagation)
922 * lshrdi3: logical right shift
923 * ashldi3: left shift
927 srw r4,r4,r5 # LSW = count > 31 ? 0 : LSW >> count
928 addi r7,r5,32 # could be xori, or addi with -32
929 slw r6,r3,r6 # t1 = count > 31 ? 0 : MSW << (32-count)
930 rlwinm r8,r7,0,32 # t3 = (count < 32) ? 32 : 0
931 sraw r7,r3,r7 # t2 = MSW >> (count-32)
932 or r4,r4,r6 # LSW |= t1
933 slw r7,r7,r8 # t2 = (count < 32) ? 0 : t2
934 sraw r3,r3,r5 # MSW = MSW >> count
935 or r4,r4,r7 # LSW |= t2
940 slw r3,r3,r5 # MSW = count > 31 ? 0 : MSW << count
941 addi r7,r5,32 # could be xori, or addi with -32
942 srw r6,r4,r6 # t1 = count > 31 ? 0 : LSW >> (32-count)
943 slw r7,r4,r7 # t2 = count < 32 ? 0 : LSW << (count-32)
944 or r3,r3,r6 # MSW |= t1
945 slw r4,r4,r5 # LSW = LSW << count
946 or r3,r3,r7 # MSW |= t2
951 srw r4,r4,r5 # LSW = count > 31 ? 0 : LSW >> count
952 addi r7,r5,32 # could be xori, or addi with -32
953 slw r6,r3,r6 # t1 = count > 31 ? 0 : MSW << (32-count)
954 srw r7,r3,r7 # t2 = count < 32 ? 0 : MSW >> (count-32)
955 or r4,r4,r6 # LSW |= t1
956 srw r3,r3,r5 # MSW = MSW >> count
957 or r4,r4,r7 # LSW |= t2
967 mr r3,r1 /* Close enough */
971 * Create a kernel thread
972 * kernel_thread(fn, arg, flags)
974 _GLOBAL(kernel_thread)
978 mr r30,r3 /* function */
979 mr r31,r4 /* argument */
980 ori r3,r5,CLONE_VM /* flags */
981 oris r3,r3,CLONE_UNTRACED>>16
982 li r4,0 /* new sp (unused) */
985 cmpwi 0,r3,0 /* parent or child? */
986 bne 1f /* return if parent */
987 li r0,0 /* make top-level stack frame */
989 mtlr r30 /* fn addr in lr */
990 mr r3,r31 /* load arg and call fn */
993 li r0,__NR_exit /* exit if function returns */
1002 * This routine is just here to keep GCC happy - sigh...
1007 #define SYSCALL(name) \
1009 li r0,__NR_##name; \
1013 stw r3,errno@l(r4); \
1019 /* Why isn't this a) automatic, b) written in 'C'? */
1022 _GLOBAL(sys_call_table)
1023 .long sys_restart_syscall /* 0 */
1028 .long sys_open /* 5 */
1033 .long sys_unlink /* 10 */
1038 .long sys_chmod /* 15 */
1040 .long sys_ni_syscall /* old break syscall holder */
1043 .long sys_getpid /* 20 */
1048 .long sys_stime /* 25 */
1053 .long sys_utime /* 30 */
1054 .long sys_ni_syscall /* old stty syscall holder */
1055 .long sys_ni_syscall /* old gtty syscall holder */
1058 .long sys_ni_syscall /* 35 */ /* old ftime syscall holder */
1063 .long sys_rmdir /* 40 */
1067 .long sys_ni_syscall /* old prof syscall holder */
1068 .long sys_brk /* 45 */
1073 .long sys_getegid /* 50 */
1075 .long sys_umount /* recycled never used phys() */
1076 .long sys_ni_syscall /* old lock syscall holder */
1078 .long sys_fcntl /* 55 */
1079 .long sys_ni_syscall /* old mpx syscall holder */
1081 .long sys_ni_syscall /* old ulimit syscall holder */
1083 .long sys_umask /* 60 */
1088 .long sys_getpgrp /* 65 */
1093 .long sys_setreuid /* 70 */
1095 .long ppc_sigsuspend
1096 .long sys_sigpending
1097 .long sys_sethostname
1098 .long sys_setrlimit /* 75 */
1099 .long sys_old_getrlimit
1101 .long sys_gettimeofday
1102 .long sys_settimeofday
1103 .long sys_getgroups /* 80 */
1108 .long sys_readlink /* 85 */
1113 .long sys_mmap /* 90 */
1118 .long sys_fchown /* 95 */
1119 .long sys_getpriority
1120 .long sys_setpriority
1121 .long sys_ni_syscall /* old profil syscall holder */
1123 .long sys_fstatfs /* 100 */
1124 .long sys_ni_syscall
1125 .long sys_socketcall
1128 .long sys_getitimer /* 105 */
1133 .long sys_ni_syscall /* 110 */
1135 .long sys_ni_syscall /* old 'idle' syscall */
1136 .long sys_ni_syscall
1138 .long sys_swapoff /* 115 */
1143 .long ppc_clone /* 120 */
1144 .long sys_setdomainname
1146 .long sys_ni_syscall
1148 .long sys_mprotect /* 125 */
1149 .long sys_sigprocmask
1150 .long sys_ni_syscall /* old sys_create_module */
1151 .long sys_init_module
1152 .long sys_delete_module
1153 .long sys_ni_syscall /* old sys_get_kernel_syms */ /* 130 */
1158 .long sys_sysfs /* 135 */
1159 .long sys_personality
1160 .long sys_ni_syscall /* for afs_syscall */
1163 .long sys_llseek /* 140 */
1168 .long sys_readv /* 145 */
1173 .long sys_mlock /* 150 */
1176 .long sys_munlockall
1177 .long sys_sched_setparam
1178 .long sys_sched_getparam /* 155 */
1179 .long sys_sched_setscheduler
1180 .long sys_sched_getscheduler
1181 .long sys_sched_yield
1182 .long sys_sched_get_priority_max
1183 .long sys_sched_get_priority_min /* 160 */
1184 .long sys_sched_rr_get_interval
1188 .long sys_getresuid /* 165 */
1189 .long sys_ni_syscall /* old sys_query_module */
1191 .long sys_nfsservctl
1193 .long sys_getresgid /* 170 */
1195 .long sys_rt_sigreturn
1196 .long sys_rt_sigaction
1197 .long sys_rt_sigprocmask
1198 .long sys_rt_sigpending /* 175 */
1199 .long sys_rt_sigtimedwait
1200 .long sys_rt_sigqueueinfo
1201 .long ppc_rt_sigsuspend
1203 .long sys_pwrite64 /* 180 */
1208 .long sys_sigaltstack /* 185 */
1210 .long sys_ni_syscall /* streams1 */
1211 .long sys_ni_syscall /* streams2 */
1213 .long sys_getrlimit /* 190 */
1216 .long sys_truncate64
1217 .long sys_ftruncate64
1218 .long sys_stat64 /* 195 */
1221 .long sys_pciconfig_read
1222 .long sys_pciconfig_write
1223 .long sys_pciconfig_iobase /* 200 */
1224 .long sys_ni_syscall /* 201 - reserved - MacOnLinux - new */
1225 .long sys_getdents64
1226 .long sys_pivot_root
1228 .long sys_madvise /* 205 */
1233 .long sys_lsetxattr /* 210 */
1238 .long sys_listxattr /* 215 */
1239 .long sys_llistxattr
1240 .long sys_flistxattr
1241 .long sys_removexattr
1242 .long sys_lremovexattr
1243 .long sys_fremovexattr /* 220 */
1245 .long sys_sched_setaffinity
1246 .long sys_sched_getaffinity
1247 .long sys_ni_syscall
1248 .long sys_ni_syscall /* 225 - reserved for Tux */
1249 .long sys_sendfile64
1251 .long sys_io_destroy
1252 .long sys_io_getevents
1253 .long sys_io_submit /* 230 */
1255 .long sys_set_tid_address
1257 .long sys_exit_group
1258 .long sys_lookup_dcookie /* 235 */
1259 .long sys_epoll_create
1261 .long sys_epoll_wait
1262 .long sys_remap_file_pages
1263 .long sys_timer_create /* 240 */
1264 .long sys_timer_settime
1265 .long sys_timer_gettime
1266 .long sys_timer_getoverrun
1267 .long sys_timer_delete
1268 .long sys_clock_settime /* 245 */
1269 .long sys_clock_gettime
1270 .long sys_clock_getres
1271 .long sys_clock_nanosleep
1272 .long ppc_swapcontext
1273 .long sys_tgkill /* 250 */
1277 .long ppc_fadvise64_64
1278 .long sys_ni_syscall /* 255 - rtas (used on ppc64) */
1279 .long sys_debug_setcontext
1280 .long sys_ni_syscall /* 257 reserved for vserver */
1281 .long sys_ni_syscall /* 258 reserved for new sys_remap_file_pages */
1282 .long sys_ni_syscall /* 259 reserved for new sys_mbind */
1283 .long sys_ni_syscall /* 260 reserved for new sys_get_mempolicy */
1284 .long sys_ni_syscall /* 261 reserved for new sys_set_mempolicy */
1287 .long sys_mq_timedsend
1288 .long sys_mq_timedreceive /* 265 */
1290 .long sys_mq_getsetattr
1291 .long sys_kexec_load
1293 .long sys_request_key /* 270 */
1296 .long sys_ioprio_set
1297 .long sys_ioprio_get
1298 .long sys_inotify_init /* 275 */
1299 .long sys_inotify_add_watch
1300 .long sys_inotify_rm_watch