diff options
Diffstat (limited to 'include/asm-mips')
38 files changed, 157 insertions, 1049 deletions
diff --git a/include/asm-mips/.gitignore b/include/asm-mips/.gitignore deleted file mode 100644 index 4ec57ad5bc3c..000000000000 --- a/include/asm-mips/.gitignore +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | asm_offsets.h | ||
diff --git a/include/asm-mips/atomic.h b/include/asm-mips/atomic.h index 55c37c106ef0..654b97d3e13a 100644 --- a/include/asm-mips/atomic.h +++ b/include/asm-mips/atomic.h | |||
| @@ -24,10 +24,9 @@ | |||
| 24 | #define _ASM_ATOMIC_H | 24 | #define _ASM_ATOMIC_H |
| 25 | 25 | ||
| 26 | #include <asm/cpu-features.h> | 26 | #include <asm/cpu-features.h> |
| 27 | #include <asm/interrupt.h> | ||
| 27 | #include <asm/war.h> | 28 | #include <asm/war.h> |
| 28 | 29 | ||
| 29 | extern spinlock_t atomic_lock; | ||
| 30 | |||
| 31 | typedef struct { volatile int counter; } atomic_t; | 30 | typedef struct { volatile int counter; } atomic_t; |
| 32 | 31 | ||
| 33 | #define ATOMIC_INIT(i) { (i) } | 32 | #define ATOMIC_INIT(i) { (i) } |
| @@ -85,9 +84,9 @@ static __inline__ void atomic_add(int i, atomic_t * v) | |||
| 85 | } else { | 84 | } else { |
| 86 | unsigned long flags; | 85 | unsigned long flags; |
| 87 | 86 | ||
| 88 | spin_lock_irqsave(&atomic_lock, flags); | 87 | local_irq_save(flags); |
| 89 | v->counter += i; | 88 | v->counter += i; |
| 90 | spin_unlock_irqrestore(&atomic_lock, flags); | 89 | local_irq_restore(flags); |
| 91 | } | 90 | } |
| 92 | } | 91 | } |
| 93 | 92 | ||
| @@ -127,9 +126,9 @@ static __inline__ void atomic_sub(int i, atomic_t * v) | |||
| 127 | } else { | 126 | } else { |
| 128 | unsigned long flags; | 127 | unsigned long flags; |
| 129 | 128 | ||
| 130 | spin_lock_irqsave(&atomic_lock, flags); | 129 | local_irq_save(flags); |
| 131 | v->counter -= i; | 130 | v->counter -= i; |
| 132 | spin_unlock_irqrestore(&atomic_lock, flags); | 131 | local_irq_restore(flags); |
| 133 | } | 132 | } |
| 134 | } | 133 | } |
| 135 | 134 | ||
| @@ -173,11 +172,11 @@ static __inline__ int atomic_add_return(int i, atomic_t * v) | |||
| 173 | } else { | 172 | } else { |
| 174 | unsigned long flags; | 173 | unsigned long flags; |
| 175 | 174 | ||
| 176 | spin_lock_irqsave(&atomic_lock, flags); | 175 | local_irq_save(flags); |
| 177 | result = v->counter; | 176 | result = v->counter; |
| 178 | result += i; | 177 | result += i; |
| 179 | v->counter = result; | 178 | v->counter = result; |
| 180 | spin_unlock_irqrestore(&atomic_lock, flags); | 179 | local_irq_restore(flags); |
| 181 | } | 180 | } |
| 182 | 181 | ||
| 183 | return result; | 182 | return result; |
| @@ -220,11 +219,11 @@ static __inline__ int atomic_sub_return(int i, atomic_t * v) | |||
| 220 | } else { | 219 | } else { |
| 221 | unsigned long flags; | 220 | unsigned long flags; |
| 222 | 221 | ||
| 223 | spin_lock_irqsave(&atomic_lock, flags); | 222 | local_irq_save(flags); |
| 224 | result = v->counter; | 223 | result = v->counter; |
| 225 | result -= i; | 224 | result -= i; |
| 226 | v->counter = result; | 225 | v->counter = result; |
| 227 | spin_unlock_irqrestore(&atomic_lock, flags); | 226 | local_irq_restore(flags); |
| 228 | } | 227 | } |
| 229 | 228 | ||
| 230 | return result; | 229 | return result; |
| @@ -277,18 +276,19 @@ static __inline__ int atomic_sub_if_positive(int i, atomic_t * v) | |||
| 277 | } else { | 276 | } else { |
| 278 | unsigned long flags; | 277 | unsigned long flags; |
| 279 | 278 | ||
| 280 | spin_lock_irqsave(&atomic_lock, flags); | 279 | local_irq_save(flags); |
| 281 | result = v->counter; | 280 | result = v->counter; |
| 282 | result -= i; | 281 | result -= i; |
| 283 | if (result >= 0) | 282 | if (result >= 0) |
| 284 | v->counter = result; | 283 | v->counter = result; |
| 285 | spin_unlock_irqrestore(&atomic_lock, flags); | 284 | local_irq_restore(flags); |
| 286 | } | 285 | } |
| 287 | 286 | ||
| 288 | return result; | 287 | return result; |
| 289 | } | 288 | } |
| 290 | 289 | ||
| 291 | #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) | 290 | #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) |
| 291 | #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) | ||
| 292 | 292 | ||
| 293 | /** | 293 | /** |
| 294 | * atomic_add_unless - add unless the number is a given value | 294 | * atomic_add_unless - add unless the number is a given value |
| @@ -432,9 +432,9 @@ static __inline__ void atomic64_add(long i, atomic64_t * v) | |||
| 432 | } else { | 432 | } else { |
| 433 | unsigned long flags; | 433 | unsigned long flags; |
| 434 | 434 | ||
| 435 | spin_lock_irqsave(&atomic_lock, flags); | 435 | local_irq_save(flags); |
| 436 | v->counter += i; | 436 | v->counter += i; |
| 437 | spin_unlock_irqrestore(&atomic_lock, flags); | 437 | local_irq_restore(flags); |
| 438 | } | 438 | } |
| 439 | } | 439 | } |
| 440 | 440 | ||
| @@ -474,9 +474,9 @@ static __inline__ void atomic64_sub(long i, atomic64_t * v) | |||
| 474 | } else { | 474 | } else { |
| 475 | unsigned long flags; | 475 | unsigned long flags; |
| 476 | 476 | ||
| 477 | spin_lock_irqsave(&atomic_lock, flags); | 477 | local_irq_save(flags); |
| 478 | v->counter -= i; | 478 | v->counter -= i; |
| 479 | spin_unlock_irqrestore(&atomic_lock, flags); | 479 | local_irq_restore(flags); |
| 480 | } | 480 | } |
| 481 | } | 481 | } |
| 482 | 482 | ||
| @@ -520,11 +520,11 @@ static __inline__ long atomic64_add_return(long i, atomic64_t * v) | |||
| 520 | } else { | 520 | } else { |
| 521 | unsigned long flags; | 521 | unsigned long flags; |
| 522 | 522 | ||
| 523 | spin_lock_irqsave(&atomic_lock, flags); | 523 | local_irq_save(flags); |
| 524 | result = v->counter; | 524 | result = v->counter; |
| 525 | result += i; | 525 | result += i; |
| 526 | v->counter = result; | 526 | v->counter = result; |
| 527 | spin_unlock_irqrestore(&atomic_lock, flags); | 527 | local_irq_restore(flags); |
| 528 | } | 528 | } |
| 529 | 529 | ||
| 530 | return result; | 530 | return result; |
| @@ -567,11 +567,11 @@ static __inline__ long atomic64_sub_return(long i, atomic64_t * v) | |||
| 567 | } else { | 567 | } else { |
| 568 | unsigned long flags; | 568 | unsigned long flags; |
| 569 | 569 | ||
| 570 | spin_lock_irqsave(&atomic_lock, flags); | 570 | local_irq_save(flags); |
| 571 | result = v->counter; | 571 | result = v->counter; |
| 572 | result -= i; | 572 | result -= i; |
| 573 | v->counter = result; | 573 | v->counter = result; |
| 574 | spin_unlock_irqrestore(&atomic_lock, flags); | 574 | local_irq_restore(flags); |
| 575 | } | 575 | } |
| 576 | 576 | ||
| 577 | return result; | 577 | return result; |
| @@ -624,12 +624,12 @@ static __inline__ long atomic64_sub_if_positive(long i, atomic64_t * v) | |||
| 624 | } else { | 624 | } else { |
| 625 | unsigned long flags; | 625 | unsigned long flags; |
| 626 | 626 | ||
| 627 | spin_lock_irqsave(&atomic_lock, flags); | 627 | local_irq_save(flags); |
| 628 | result = v->counter; | 628 | result = v->counter; |
| 629 | result -= i; | 629 | result -= i; |
| 630 | if (result >= 0) | 630 | if (result >= 0) |
| 631 | v->counter = result; | 631 | v->counter = result; |
| 632 | spin_unlock_irqrestore(&atomic_lock, flags); | 632 | local_irq_restore(flags); |
| 633 | } | 633 | } |
| 634 | 634 | ||
| 635 | return result; | 635 | return result; |
| @@ -713,4 +713,5 @@ static __inline__ long atomic64_sub_if_positive(long i, atomic64_t * v) | |||
| 713 | #define smp_mb__before_atomic_inc() smp_mb() | 713 | #define smp_mb__before_atomic_inc() smp_mb() |
| 714 | #define smp_mb__after_atomic_inc() smp_mb() | 714 | #define smp_mb__after_atomic_inc() smp_mb() |
| 715 | 715 | ||
| 716 | #include <asm-generic/atomic.h> | ||
| 716 | #endif /* _ASM_ATOMIC_H */ | 717 | #endif /* _ASM_ATOMIC_H */ |
diff --git a/include/asm-mips/bitops.h b/include/asm-mips/bitops.h index 5496f9064a6a..3b0c8aaf6e8b 100644 --- a/include/asm-mips/bitops.h +++ b/include/asm-mips/bitops.h | |||
| @@ -695,7 +695,7 @@ static inline unsigned long fls(unsigned long word) | |||
| 695 | 695 | ||
| 696 | return flz(~word) + 1; | 696 | return flz(~word) + 1; |
| 697 | } | 697 | } |
| 698 | 698 | #define fls64(x) generic_fls64(x) | |
| 699 | 699 | ||
| 700 | /* | 700 | /* |
| 701 | * find_next_zero_bit - find the first zero bit in a memory region | 701 | * find_next_zero_bit - find the first zero bit in a memory region |
diff --git a/include/asm-mips/cache.h b/include/asm-mips/cache.h index 1a5d1a669db3..55e19f2ff0e0 100644 --- a/include/asm-mips/cache.h +++ b/include/asm-mips/cache.h | |||
| @@ -15,7 +15,6 @@ | |||
| 15 | #define L1_CACHE_SHIFT CONFIG_MIPS_L1_CACHE_SHIFT | 15 | #define L1_CACHE_SHIFT CONFIG_MIPS_L1_CACHE_SHIFT |
| 16 | #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) | 16 | #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) |
| 17 | 17 | ||
| 18 | #define L1_CACHE_SHIFT_MAX 6 | ||
| 19 | #define SMP_CACHE_SHIFT L1_CACHE_SHIFT | 18 | #define SMP_CACHE_SHIFT L1_CACHE_SHIFT |
| 20 | #define SMP_CACHE_BYTES L1_CACHE_BYTES | 19 | #define SMP_CACHE_BYTES L1_CACHE_BYTES |
| 21 | 20 | ||
diff --git a/include/asm-mips/cpu-features.h b/include/asm-mips/cpu-features.h index 03627cfb3e45..78c9cc2735d5 100644 --- a/include/asm-mips/cpu-features.h +++ b/include/asm-mips/cpu-features.h | |||
| @@ -116,6 +116,27 @@ | |||
| 116 | #endif | 116 | #endif |
| 117 | #endif | 117 | #endif |
| 118 | 118 | ||
| 119 | # ifndef cpu_has_mips32r1 | ||
| 120 | # define cpu_has_mips32r1 (cpu_data[0].isa_level & MIPS_CPU_ISA_M32R1) | ||
| 121 | # endif | ||
| 122 | # ifndef cpu_has_mips32r2 | ||
| 123 | # define cpu_has_mips32r2 (cpu_data[0].isa_level & MIPS_CPU_ISA_M32R2) | ||
| 124 | # endif | ||
| 125 | # ifndef cpu_has_mips64r1 | ||
| 126 | # define cpu_has_mips64r1 (cpu_data[0].isa_level & MIPS_CPU_ISA_M64R1) | ||
| 127 | # endif | ||
| 128 | # ifndef cpu_has_mips64r2 | ||
| 129 | # define cpu_has_mips64r2 (cpu_data[0].isa_level & MIPS_CPU_ISA_M64R2) | ||
| 130 | # endif | ||
| 131 | |||
| 132 | /* | ||
| 133 | * Shortcuts ... | ||
| 134 | */ | ||
| 135 | #define cpu_has_mips32 (cpu_has_mips32r1 | cpu_has_mips32r2) | ||
| 136 | #define cpu_has_mips64 (cpu_has_mips64r1 | cpu_has_mips64r2) | ||
| 137 | #define cpu_has_mips_r1 (cpu_has_mips32r1 | cpu_has_mips64r1) | ||
| 138 | #define cpu_has_mips_r2 (cpu_has_mips32r2 | cpu_has_mips64r2) | ||
| 139 | |||
| 119 | #ifndef cpu_has_dsp | 140 | #ifndef cpu_has_dsp |
| 120 | #define cpu_has_dsp (cpu_data[0].ases & MIPS_ASE_DSP) | 141 | #define cpu_has_dsp (cpu_data[0].ases & MIPS_ASE_DSP) |
| 121 | #endif | 142 | #endif |
diff --git a/include/asm-mips/cpu.h b/include/asm-mips/cpu.h index 48eac296060f..934e063e79f1 100644 --- a/include/asm-mips/cpu.h +++ b/include/asm-mips/cpu.h | |||
| @@ -204,16 +204,18 @@ | |||
| 204 | */ | 204 | */ |
| 205 | #define MIPS_CPU_ISA_I 0x00000001 | 205 | #define MIPS_CPU_ISA_I 0x00000001 |
| 206 | #define MIPS_CPU_ISA_II 0x00000002 | 206 | #define MIPS_CPU_ISA_II 0x00000002 |
| 207 | #define MIPS_CPU_ISA_III 0x00008003 | 207 | #define MIPS_CPU_ISA_III 0x00000003 |
| 208 | #define MIPS_CPU_ISA_IV 0x00008004 | 208 | #define MIPS_CPU_ISA_IV 0x00000004 |
| 209 | #define MIPS_CPU_ISA_V 0x00008005 | 209 | #define MIPS_CPU_ISA_V 0x00000005 |
| 210 | #define MIPS_CPU_ISA_M32 0x00000020 | 210 | #define MIPS_CPU_ISA_M32R1 0x00000020 |
| 211 | #define MIPS_CPU_ISA_M64 0x00008040 | 211 | #define MIPS_CPU_ISA_M32R2 0x00000040 |
| 212 | #define MIPS_CPU_ISA_M64R1 0x00000080 | ||
| 213 | #define MIPS_CPU_ISA_M64R2 0x00000100 | ||
| 212 | 214 | ||
| 213 | /* | 215 | #define MIPS_CPU_ISA_32BIT (MIPS_CPU_ISA_I | MIPS_CPU_ISA_II | \ |
| 214 | * Bit 15 encodes if an ISA level supports 64-bit operations. | 216 | MIPS_CPU_ISA_M32R1 | MIPS_CPU_ISA_M32R2 ) |
| 215 | */ | 217 | #define MIPS_CPU_ISA_64BIT (MIPS_CPU_ISA_III | MIPS_CPU_ISA_IV | \ |
| 216 | #define MIPS_CPU_ISA_64BIT 0x00008000 | 218 | MIPS_CPU_ISA_V | MIPS_CPU_ISA_M64R1 | MIPS_CPU_ISA_M64R2) |
| 217 | 219 | ||
| 218 | /* | 220 | /* |
| 219 | * CPU Option encodings | 221 | * CPU Option encodings |
diff --git a/include/asm-mips/delay.h b/include/asm-mips/delay.h index 48d00cccdafa..64dd45150f64 100644 --- a/include/asm-mips/delay.h +++ b/include/asm-mips/delay.h | |||
| @@ -52,13 +52,11 @@ static inline void __udelay(unsigned long usecs, unsigned long lpj) | |||
| 52 | unsigned long lo; | 52 | unsigned long lo; |
| 53 | 53 | ||
| 54 | /* | 54 | /* |
| 55 | * The common rates of 1000 and 128 are rounded wrongly by the | 55 | * The rates of 128 is rounded wrongly by the catchall case |
| 56 | * catchall case for 64-bit. Excessive precission? Probably ... | 56 | * for 64-bit. Excessive precission? Probably ... |
| 57 | */ | 57 | */ |
| 58 | #if defined(CONFIG_64BIT) && (HZ == 128) | 58 | #if defined(CONFIG_64BIT) && (HZ == 128) |
| 59 | usecs *= 0x0008637bd05af6c7UL; /* 2**64 / (1000000 / HZ) */ | 59 | usecs *= 0x0008637bd05af6c7UL; /* 2**64 / (1000000 / HZ) */ |
| 60 | #elif defined(CONFIG_64BIT) && (HZ == 1000) | ||
| 61 | usecs *= 0x004189374BC6A7f0UL; /* 2**64 / (1000000 / HZ) */ | ||
| 62 | #elif defined(CONFIG_64BIT) | 60 | #elif defined(CONFIG_64BIT) |
| 63 | usecs *= (0x8000000000000000UL / (500000 / HZ)); | 61 | usecs *= (0x8000000000000000UL / (500000 / HZ)); |
| 64 | #else /* 32-bit junk follows here */ | 62 | #else /* 32-bit junk follows here */ |
diff --git a/include/asm-mips/dsp.h b/include/asm-mips/dsp.h index 50f556bb4978..e9bfc0813c72 100644 --- a/include/asm-mips/dsp.h +++ b/include/asm-mips/dsp.h | |||
| @@ -16,7 +16,7 @@ | |||
| 16 | #include <asm/mipsregs.h> | 16 | #include <asm/mipsregs.h> |
| 17 | 17 | ||
| 18 | #define DSP_DEFAULT 0x00000000 | 18 | #define DSP_DEFAULT 0x00000000 |
| 19 | #define DSP_MASK 0x1f | 19 | #define DSP_MASK 0x3ff |
| 20 | 20 | ||
| 21 | #define __enable_dsp_hazard() \ | 21 | #define __enable_dsp_hazard() \ |
| 22 | do { \ | 22 | do { \ |
| @@ -48,6 +48,7 @@ do { \ | |||
| 48 | tsk->thread.dsp.dspr[3] = mflo2(); \ | 48 | tsk->thread.dsp.dspr[3] = mflo2(); \ |
| 49 | tsk->thread.dsp.dspr[4] = mfhi3(); \ | 49 | tsk->thread.dsp.dspr[4] = mfhi3(); \ |
| 50 | tsk->thread.dsp.dspr[5] = mflo3(); \ | 50 | tsk->thread.dsp.dspr[5] = mflo3(); \ |
| 51 | tsk->thread.dsp.dspcontrol = rddsp(DSP_MASK); \ | ||
| 51 | } while (0) | 52 | } while (0) |
| 52 | 53 | ||
| 53 | #define save_dsp(tsk) \ | 54 | #define save_dsp(tsk) \ |
| @@ -64,6 +65,7 @@ do { \ | |||
| 64 | mtlo2(tsk->thread.dsp.dspr[3]); \ | 65 | mtlo2(tsk->thread.dsp.dspr[3]); \ |
| 65 | mthi3(tsk->thread.dsp.dspr[4]); \ | 66 | mthi3(tsk->thread.dsp.dspr[4]); \ |
| 66 | mtlo3(tsk->thread.dsp.dspr[5]); \ | 67 | mtlo3(tsk->thread.dsp.dspr[5]); \ |
| 68 | wrdsp(tsk->thread.dsp.dspcontrol, DSP_MASK); \ | ||
| 67 | } while (0) | 69 | } while (0) |
| 68 | 70 | ||
| 69 | #define restore_dsp(tsk) \ | 71 | #define restore_dsp(tsk) \ |
diff --git a/include/asm-mips/elf.h b/include/asm-mips/elf.h index d2c9a25f8459..851f013adad3 100644 --- a/include/asm-mips/elf.h +++ b/include/asm-mips/elf.h | |||
| @@ -277,12 +277,12 @@ do { \ | |||
| 277 | 277 | ||
| 278 | struct task_struct; | 278 | struct task_struct; |
| 279 | 279 | ||
| 280 | extern void dump_regs(elf_greg_t *, struct pt_regs *regs); | 280 | extern void elf_dump_regs(elf_greg_t *, struct pt_regs *regs); |
| 281 | extern int dump_task_regs (struct task_struct *, elf_gregset_t *); | 281 | extern int dump_task_regs (struct task_struct *, elf_gregset_t *); |
| 282 | extern int dump_task_fpu(struct task_struct *, elf_fpregset_t *); | 282 | extern int dump_task_fpu(struct task_struct *, elf_fpregset_t *); |
| 283 | 283 | ||
| 284 | #define ELF_CORE_COPY_REGS(elf_regs, regs) \ | 284 | #define ELF_CORE_COPY_REGS(elf_regs, regs) \ |
| 285 | dump_regs((elf_greg_t *)&(elf_regs), regs); | 285 | elf_dump_regs((elf_greg_t *)&(elf_regs), regs); |
| 286 | #define ELF_CORE_COPY_TASK_REGS(tsk, elf_regs) dump_task_regs(tsk, elf_regs) | 286 | #define ELF_CORE_COPY_TASK_REGS(tsk, elf_regs) dump_task_regs(tsk, elf_regs) |
| 287 | #define ELF_CORE_COPY_FPREGS(tsk, elf_fpregs) \ | 287 | #define ELF_CORE_COPY_FPREGS(tsk, elf_fpregs) \ |
| 288 | dump_task_fpu(tsk, elf_fpregs) | 288 | dump_task_fpu(tsk, elf_fpregs) |
diff --git a/include/asm-mips/hazards.h b/include/asm-mips/hazards.h index 7517189e469f..2fc90632f88c 100644 --- a/include/asm-mips/hazards.h +++ b/include/asm-mips/hazards.h | |||
| @@ -233,15 +233,25 @@ __asm__( | |||
| 233 | #endif | 233 | #endif |
| 234 | 234 | ||
| 235 | #ifdef CONFIG_CPU_MIPSR2 | 235 | #ifdef CONFIG_CPU_MIPSR2 |
| 236 | /* | ||
| 237 | * gcc has a tradition of misscompiling the previous construct using the | ||
| 238 | * address of a label as argument to inline assembler. Gas otoh has the | ||
| 239 | * annoying difference between la and dla which are only usable for 32-bit | ||
| 240 | * rsp. 64-bit code, so can't be used without conditional compilation. | ||
| 241 | * The alterantive is switching the assembler to 64-bit code which happens | ||
| 242 | * to work right even for 32-bit code ... | ||
| 243 | */ | ||
| 236 | #define instruction_hazard() \ | 244 | #define instruction_hazard() \ |
| 237 | do { \ | 245 | do { \ |
| 238 | __label__ __next; \ | 246 | unsigned long tmp; \ |
| 247 | \ | ||
| 239 | __asm__ __volatile__( \ | 248 | __asm__ __volatile__( \ |
| 249 | " .set mips64r2 \n" \ | ||
| 250 | " dla %0, 1f \n" \ | ||
| 240 | " jr.hb %0 \n" \ | 251 | " jr.hb %0 \n" \ |
| 241 | : \ | 252 | " .set mips0 \n" \ |
| 242 | : "r" (&&__next)); \ | 253 | "1: \n" \ |
| 243 | __next: \ | 254 | : "=r" (tmp)); \ |
| 244 | ; \ | ||
| 245 | } while (0) | 255 | } while (0) |
| 246 | 256 | ||
| 247 | #else | 257 | #else |
diff --git a/include/asm-mips/interrupt.h b/include/asm-mips/interrupt.h index a5735761f5e5..abdf54ee64cf 100644 --- a/include/asm-mips/interrupt.h +++ b/include/asm-mips/interrupt.h | |||
| @@ -93,6 +93,7 @@ __asm__ ( | |||
| 93 | " .set noat \n" | 93 | " .set noat \n" |
| 94 | #ifdef CONFIG_CPU_MIPSR2 | 94 | #ifdef CONFIG_CPU_MIPSR2 |
| 95 | " di \\result \n" | 95 | " di \\result \n" |
| 96 | " andi \\result, 1 \n" | ||
| 96 | #else | 97 | #else |
| 97 | " mfc0 \\result, $12 \n" | 98 | " mfc0 \\result, $12 \n" |
| 98 | " ori $1, \\result, 1 \n" | 99 | " ori $1, \\result, 1 \n" |
diff --git a/include/asm-mips/mach-au1x00/au1000.h b/include/asm-mips/mach-au1x00/au1000.h index 8327ec341c18..8e1d7ed7d8e3 100644 --- a/include/asm-mips/mach-au1x00/au1000.h +++ b/include/asm-mips/mach-au1x00/au1000.h | |||
| @@ -838,6 +838,7 @@ extern au1xxx_irq_map_t au1xxx_irq_map[]; | |||
| 838 | #define UART3_ADDR 0xB1400000 | 838 | #define UART3_ADDR 0xB1400000 |
| 839 | 839 | ||
| 840 | #define USB_OHCI_BASE 0x14020000 // phys addr for ioremap | 840 | #define USB_OHCI_BASE 0x14020000 // phys addr for ioremap |
| 841 | #define USB_OHCI_LEN 0x00060000 | ||
| 841 | #define USB_HOST_CONFIG 0xB4027ffc | 842 | #define USB_HOST_CONFIG 0xB4027ffc |
| 842 | 843 | ||
| 843 | #define AU1550_ETH0_BASE 0xB0500000 | 844 | #define AU1550_ETH0_BASE 0xB0500000 |
| @@ -1017,10 +1018,12 @@ extern au1xxx_irq_map_t au1xxx_irq_map[]; | |||
| 1017 | #define I2S_CONTROL_D (1<<1) | 1018 | #define I2S_CONTROL_D (1<<1) |
| 1018 | #define I2S_CONTROL_CE (1<<0) | 1019 | #define I2S_CONTROL_CE (1<<0) |
| 1019 | 1020 | ||
| 1020 | #ifndef CONFIG_SOC_AU1200 | ||
| 1021 | |||
| 1022 | /* USB Host Controller */ | 1021 | /* USB Host Controller */ |
| 1022 | #ifndef USB_OHCI_LEN | ||
| 1023 | #define USB_OHCI_LEN 0x00100000 | 1023 | #define USB_OHCI_LEN 0x00100000 |
| 1024 | #endif | ||
| 1025 | |||
| 1026 | #ifndef CONFIG_SOC_AU1200 | ||
| 1024 | 1027 | ||
| 1025 | /* USB Device Controller */ | 1028 | /* USB Device Controller */ |
| 1026 | #define USBD_EP0RD 0xB0200000 | 1029 | #define USBD_EP0RD 0xB0200000 |
diff --git a/include/asm-mips/mach-ip22/cpu-feature-overrides.h b/include/asm-mips/mach-ip22/cpu-feature-overrides.h index ab9714668177..2a37bedb4053 100644 --- a/include/asm-mips/mach-ip22/cpu-feature-overrides.h +++ b/include/asm-mips/mach-ip22/cpu-feature-overrides.h | |||
| @@ -34,4 +34,9 @@ | |||
| 34 | #define cpu_has_nofpuex 0 | 34 | #define cpu_has_nofpuex 0 |
| 35 | #define cpu_has_64bits 1 | 35 | #define cpu_has_64bits 1 |
| 36 | 36 | ||
| 37 | #define cpu_has_mips32r1 0 | ||
| 38 | #define cpu_has_mips32r2 0 | ||
| 39 | #define cpu_has_mips64r1 0 | ||
| 40 | #define cpu_has_mips64r2 0 | ||
| 41 | |||
| 37 | #endif /* __ASM_MACH_IP22_CPU_FEATURE_OVERRIDES_H */ | 42 | #endif /* __ASM_MACH_IP22_CPU_FEATURE_OVERRIDES_H */ |
diff --git a/include/asm-mips/mach-ip27/cpu-feature-overrides.h b/include/asm-mips/mach-ip27/cpu-feature-overrides.h index 4c8a90051fd0..2d2f5b91e47f 100644 --- a/include/asm-mips/mach-ip27/cpu-feature-overrides.h +++ b/include/asm-mips/mach-ip27/cpu-feature-overrides.h | |||
| @@ -37,4 +37,9 @@ | |||
| 37 | #define cpu_icache_line_size() 64 | 37 | #define cpu_icache_line_size() 64 |
| 38 | #define cpu_scache_line_size() 128 | 38 | #define cpu_scache_line_size() 128 |
| 39 | 39 | ||
| 40 | #define cpu_has_mips32r1 0 | ||
| 41 | #define cpu_has_mips32r2 0 | ||
| 42 | #define cpu_has_mips64r1 0 | ||
| 43 | #define cpu_has_mips64r2 0 | ||
| 44 | |||
| 40 | #endif /* __ASM_MACH_IP27_CPU_FEATURE_OVERRIDES_H */ | 45 | #endif /* __ASM_MACH_IP27_CPU_FEATURE_OVERRIDES_H */ |
diff --git a/include/asm-mips/mach-ip27/topology.h b/include/asm-mips/mach-ip27/topology.h index 82141c711c33..59d26b52ba32 100644 --- a/include/asm-mips/mach-ip27/topology.h +++ b/include/asm-mips/mach-ip27/topology.h | |||
| @@ -27,7 +27,6 @@ extern unsigned char __node_distances[MAX_COMPACT_NODES][MAX_COMPACT_NODES]; | |||
| 27 | .max_interval = 32, \ | 27 | .max_interval = 32, \ |
| 28 | .busy_factor = 32, \ | 28 | .busy_factor = 32, \ |
| 29 | .imbalance_pct = 125, \ | 29 | .imbalance_pct = 125, \ |
| 30 | .cache_hot_time = (10*1000), \ | ||
| 31 | .cache_nice_tries = 1, \ | 30 | .cache_nice_tries = 1, \ |
| 32 | .per_cpu_gain = 100, \ | 31 | .per_cpu_gain = 100, \ |
| 33 | .flags = SD_LOAD_BALANCE \ | 32 | .flags = SD_LOAD_BALANCE \ |
diff --git a/include/asm-mips/mach-ip32/cpu-feature-overrides.h b/include/asm-mips/mach-ip32/cpu-feature-overrides.h index ab37fc1842ba..b80c30725cf6 100644 --- a/include/asm-mips/mach-ip32/cpu-feature-overrides.h +++ b/include/asm-mips/mach-ip32/cpu-feature-overrides.h | |||
| @@ -39,4 +39,9 @@ | |||
| 39 | #define cpu_has_ic_fills_f_dc 0 | 39 | #define cpu_has_ic_fills_f_dc 0 |
| 40 | #define cpu_has_dsp 0 | 40 | #define cpu_has_dsp 0 |
| 41 | 41 | ||
| 42 | #define cpu_has_mips32r1 0 | ||
| 43 | #define cpu_has_mips32r2 0 | ||
| 44 | #define cpu_has_mips64r1 0 | ||
| 45 | #define cpu_has_mips64r2 0 | ||
| 46 | |||
| 42 | #endif /* __ASM_MACH_IP32_CPU_FEATURE_OVERRIDES_H */ | 47 | #endif /* __ASM_MACH_IP32_CPU_FEATURE_OVERRIDES_H */ |
diff --git a/include/asm-mips/mach-ja/cpu-feature-overrides.h b/include/asm-mips/mach-ja/cpu-feature-overrides.h index a0fde405d4c4..90ff087083b9 100644 --- a/include/asm-mips/mach-ja/cpu-feature-overrides.h +++ b/include/asm-mips/mach-ja/cpu-feature-overrides.h | |||
| @@ -37,4 +37,9 @@ | |||
| 37 | #define cpu_icache_line_size() 32 | 37 | #define cpu_icache_line_size() 32 |
| 38 | #define cpu_scache_line_size() 32 | 38 | #define cpu_scache_line_size() 32 |
| 39 | 39 | ||
| 40 | #define cpu_has_mips32r1 0 | ||
| 41 | #define cpu_has_mips32r2 0 | ||
| 42 | #define cpu_has_mips64r1 0 | ||
| 43 | #define cpu_has_mips64r2 0 | ||
| 44 | |||
| 40 | #endif /* __ASM_MACH_JA_CPU_FEATURE_OVERRIDES_H */ | 45 | #endif /* __ASM_MACH_JA_CPU_FEATURE_OVERRIDES_H */ |
diff --git a/include/asm-mips/mach-ocelot3/cpu-feature-overrides.h b/include/asm-mips/mach-ocelot3/cpu-feature-overrides.h index 825c5f674dfc..782b986241dd 100644 --- a/include/asm-mips/mach-ocelot3/cpu-feature-overrides.h +++ b/include/asm-mips/mach-ocelot3/cpu-feature-overrides.h | |||
| @@ -40,4 +40,9 @@ | |||
| 40 | #define cpu_icache_line_size() 32 | 40 | #define cpu_icache_line_size() 32 |
| 41 | #define cpu_scache_line_size() 32 | 41 | #define cpu_scache_line_size() 32 |
| 42 | 42 | ||
| 43 | #define cpu_has_mips32r1 0 | ||
| 44 | #define cpu_has_mips32r2 0 | ||
| 45 | #define cpu_has_mips64r1 0 | ||
| 46 | #define cpu_has_mips64r2 0 | ||
| 47 | |||
| 43 | #endif /* __ASM_MACH_JA_CPU_FEATURE_OVERRIDES_H */ | 48 | #endif /* __ASM_MACH_JA_CPU_FEATURE_OVERRIDES_H */ |
diff --git a/include/asm-mips/mach-rm200/cpu-feature-overrides.h b/include/asm-mips/mach-rm200/cpu-feature-overrides.h index 79f9b064c864..91e7cf5f2bfe 100644 --- a/include/asm-mips/mach-rm200/cpu-feature-overrides.h +++ b/include/asm-mips/mach-rm200/cpu-feature-overrides.h | |||
| @@ -40,4 +40,9 @@ | |||
| 40 | #define cpu_icache_line_size() 32 | 40 | #define cpu_icache_line_size() 32 |
| 41 | #define cpu_scache_line_size() 0 /* No S-cache on R5000 I think ... */ | 41 | #define cpu_scache_line_size() 0 /* No S-cache on R5000 I think ... */ |
| 42 | 42 | ||
| 43 | #define cpu_has_mips32r1 0 | ||
| 44 | #define cpu_has_mips32r2 0 | ||
| 45 | #define cpu_has_mips64r1 0 | ||
| 46 | #define cpu_has_mips64r2 0 | ||
| 47 | |||
| 43 | #endif /* __ASM_MACH_RM200_CPU_FEATURE_OVERRIDES_H */ | 48 | #endif /* __ASM_MACH_RM200_CPU_FEATURE_OVERRIDES_H */ |
diff --git a/include/asm-mips/mach-yosemite/cpu-feature-overrides.h b/include/asm-mips/mach-yosemite/cpu-feature-overrides.h index 463d051f4683..3073542c93c7 100644 --- a/include/asm-mips/mach-yosemite/cpu-feature-overrides.h +++ b/include/asm-mips/mach-yosemite/cpu-feature-overrides.h | |||
| @@ -37,4 +37,9 @@ | |||
| 37 | #define cpu_icache_line_size() 32 | 37 | #define cpu_icache_line_size() 32 |
| 38 | #define cpu_scache_line_size() 32 | 38 | #define cpu_scache_line_size() 32 |
| 39 | 39 | ||
| 40 | #define cpu_has_mips32r1 0 | ||
| 41 | #define cpu_has_mips32r2 0 | ||
| 42 | #define cpu_has_mips64r1 0 | ||
| 43 | #define cpu_has_mips64r2 0 | ||
| 44 | |||
| 40 | #endif /* __ASM_MACH_YOSEMITE_CPU_FEATURE_OVERRIDES_H */ | 45 | #endif /* __ASM_MACH_YOSEMITE_CPU_FEATURE_OVERRIDES_H */ |
diff --git a/include/asm-mips/mipsregs.h b/include/asm-mips/mipsregs.h index 80370e0a5589..035ba0a9b0df 100644 --- a/include/asm-mips/mipsregs.h +++ b/include/asm-mips/mipsregs.h | |||
| @@ -1059,7 +1059,7 @@ do { \ | |||
| 1059 | " .set noat \n" \ | 1059 | " .set noat \n" \ |
| 1060 | " move $1, %0 \n" \ | 1060 | " move $1, %0 \n" \ |
| 1061 | " # wrdsp $1, %x1 \n" \ | 1061 | " # wrdsp $1, %x1 \n" \ |
| 1062 | " .word 0x7c2004f8 | (%x1 << 15) \n" \ | 1062 | " .word 0x7c2004f8 | (%x1 << 11) \n" \ |
| 1063 | " .set pop \n" \ | 1063 | " .set pop \n" \ |
| 1064 | : \ | 1064 | : \ |
| 1065 | : "r" (val), "i" (mask)); \ | 1065 | : "r" (val), "i" (mask)); \ |
diff --git a/include/asm-mips/mman.h b/include/asm-mips/mman.h index 62060957ba93..dd17c8bd62a1 100644 --- a/include/asm-mips/mman.h +++ b/include/asm-mips/mman.h | |||
| @@ -65,6 +65,7 @@ | |||
| 65 | #define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */ | 65 | #define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */ |
| 66 | #define MADV_WILLNEED 0x3 /* pre-fault pages */ | 66 | #define MADV_WILLNEED 0x3 /* pre-fault pages */ |
| 67 | #define MADV_DONTNEED 0x4 /* discard these pages */ | 67 | #define MADV_DONTNEED 0x4 /* discard these pages */ |
| 68 | #define MADV_REMOVE 0x5 /* remove these pages & resources */ | ||
| 68 | 69 | ||
| 69 | /* compatibility flags */ | 70 | /* compatibility flags */ |
| 70 | #define MAP_ANON MAP_ANONYMOUS | 71 | #define MAP_ANON MAP_ANONYMOUS |
diff --git a/include/asm-mips/mutex.h b/include/asm-mips/mutex.h new file mode 100644 index 000000000000..458c1f7fbc18 --- /dev/null +++ b/include/asm-mips/mutex.h | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | /* | ||
| 2 | * Pull in the generic implementation for the mutex fastpath. | ||
| 3 | * | ||
| 4 | * TODO: implement optimized primitives instead, or leave the generic | ||
| 5 | * implementation in place, or pick the atomic_xchg() based generic | ||
| 6 | * implementation. (see asm-generic/mutex-xchg.h for details) | ||
| 7 | */ | ||
| 8 | |||
| 9 | #include <asm-generic/mutex-dec.h> | ||
diff --git a/include/asm-mips/processor.h b/include/asm-mips/processor.h index f1980c6c3bcc..39d2bd50fece 100644 --- a/include/asm-mips/processor.h +++ b/include/asm-mips/processor.h | |||
| @@ -103,7 +103,6 @@ typedef __u32 dspreg_t; | |||
| 103 | struct mips_dsp_state { | 103 | struct mips_dsp_state { |
| 104 | dspreg_t dspr[NUM_DSP_REGS]; | 104 | dspreg_t dspr[NUM_DSP_REGS]; |
| 105 | unsigned int dspcontrol; | 105 | unsigned int dspcontrol; |
| 106 | unsigned short used_dsp; | ||
| 107 | }; | 106 | }; |
| 108 | 107 | ||
| 109 | #define INIT_DSP {{0,},} | 108 | #define INIT_DSP {{0,},} |
| @@ -201,11 +200,11 @@ extern void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long | |||
| 201 | 200 | ||
| 202 | unsigned long get_wchan(struct task_struct *p); | 201 | unsigned long get_wchan(struct task_struct *p); |
| 203 | 202 | ||
| 204 | #define __PT_REG(reg) ((long)&((struct pt_regs *)0)->reg - sizeof(struct pt_regs)) | 203 | #define __KSTK_TOS(tsk) ((unsigned long)task_stack_page(tsk) + THREAD_SIZE - 32) |
| 205 | #define __KSTK_TOS(tsk) ((unsigned long)(tsk->thread_info) + THREAD_SIZE - 32) | 204 | #define task_pt_regs(tsk) ((struct pt_regs *)__KSTK_TOS(tsk) - 1) |
| 206 | #define KSTK_EIP(tsk) (*(unsigned long *)(__KSTK_TOS(tsk) + __PT_REG(cp0_epc))) | 205 | #define KSTK_EIP(tsk) (task_pt_regs(tsk)->cp0_epc) |
| 207 | #define KSTK_ESP(tsk) (*(unsigned long *)(__KSTK_TOS(tsk) + __PT_REG(regs[29]))) | 206 | #define KSTK_ESP(tsk) (task_pt_regs(tsk)->regs[29]) |
| 208 | #define KSTK_STATUS(tsk) (*(unsigned long *)(__KSTK_TOS(tsk) + __PT_REG(cp0_status))) | 207 | #define KSTK_STATUS(tsk) (task_pt_regs(tsk)->cp0_status) |
| 209 | 208 | ||
| 210 | #define cpu_relax() barrier() | 209 | #define cpu_relax() barrier() |
| 211 | 210 | ||
diff --git a/include/asm-mips/riscos-syscall.h b/include/asm-mips/riscos-syscall.h deleted file mode 100644 index 4d8eb15461eb..000000000000 --- a/include/asm-mips/riscos-syscall.h +++ /dev/null | |||
| @@ -1,979 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * This file is subject to the terms and conditions of the GNU General Public | ||
| 3 | * License. See the file "COPYING" in the main directory of this archive | ||
| 4 | * for more details. | ||
| 5 | * | ||
| 6 | * Copyright (C) 1995, 96, 97, 98, 99, 2000 by Ralf Baechle | ||
| 7 | */ | ||
| 8 | #ifndef _ASM_RISCOS_SYSCALL_H | ||
| 9 | #define _ASM_RISCOS_SYSCALL_H | ||
| 10 | |||
| 11 | /* | ||
| 12 | * The syscalls 0 - 3999 are reserved for a down to the root syscall | ||
| 13 | * compatibility with RISC/os and IRIX. We'll see how to deal with the | ||
| 14 | * various "real" BSD variants like Ultrix, NetBSD ... | ||
| 15 | */ | ||
| 16 | |||
| 17 | /* | ||
| 18 | * SVR4 syscalls are in the range from 1 to 999 | ||
| 19 | */ | ||
| 20 | #define __NR_SVR4 0 | ||
| 21 | #define __NR_SVR4_syscall (__NR_SVR4 + 0) | ||
| 22 | #define __NR_SVR4_exit (__NR_SVR4 + 1) | ||
| 23 | #define __NR_SVR4_fork (__NR_SVR4 + 2) | ||
| 24 | #define __NR_SVR4_read (__NR_SVR4 + 3) | ||
| 25 | #define __NR_SVR4_write (__NR_SVR4 + 4) | ||
| 26 | #define __NR_SVR4_open (__NR_SVR4 + 5) | ||
| 27 | #define __NR_SVR4_close (__NR_SVR4 + 6) | ||
| 28 | #define __NR_SVR4_wait (__NR_SVR4 + 7) | ||
| 29 | #define __NR_SVR4_creat (__NR_SVR4 + 8) | ||
| 30 | #define __NR_SVR4_link (__NR_SVR4 + 9) | ||
| 31 | #define __NR_SVR4_unlink (__NR_SVR4 + 10) | ||
| 32 | #define __NR_SVR4_exec (__NR_SVR4 + 11) | ||
| 33 | #define __NR_SVR4_chdir (__NR_SVR4 + 12) | ||
| 34 | #define __NR_SVR4_gtime (__NR_SVR4 + 13) | ||
| 35 | #define __NR_SVR4_mknod (__NR_SVR4 + 14) | ||
| 36 | #define __NR_SVR4_chmod (__NR_SVR4 + 15) | ||
| 37 | #define __NR_SVR4_chown (__NR_SVR4 + 16) | ||
| 38 | #define __NR_SVR4_sbreak (__NR_SVR4 + 17) | ||
| 39 | #define __NR_SVR4_stat (__NR_SVR4 + 18) | ||
| 40 | #define __NR_SVR4_lseek (__NR_SVR4 + 19) | ||
| 41 | #define __NR_SVR4_getpid (__NR_SVR4 + 20) | ||
| 42 | #define __NR_SVR4_mount (__NR_SVR4 + 21) | ||
| 43 | #define __NR_SVR4_umount (__NR_SVR4 + 22) | ||
| 44 | #define __NR_SVR4_setuid (__NR_SVR4 + 23) | ||
| 45 | #define __NR_SVR4_getuid (__NR_SVR4 + 24) | ||
| 46 | #define __NR_SVR4_stime (__NR_SVR4 + 25) | ||
| 47 | #define __NR_SVR4_ptrace (__NR_SVR4 + 26) | ||
| 48 | #define __NR_SVR4_alarm (__NR_SVR4 + 27) | ||
| 49 | #define __NR_SVR4_fstat (__NR_SVR4 + 28) | ||
| 50 | #define __NR_SVR4_pause (__NR_SVR4 + 29) | ||
| 51 | #define __NR_SVR4_utime (__NR_SVR4 + 30) | ||
| 52 | #define __NR_SVR4_stty (__NR_SVR4 + 31) | ||
| 53 | #define __NR_SVR4_gtty (__NR_SVR4 + 32) | ||
| 54 | #define __NR_SVR4_access (__NR_SVR4 + 33) | ||
| 55 | #define __NR_SVR4_nice (__NR_SVR4 + 34) | ||
| 56 | #define __NR_SVR4_statfs (__NR_SVR4 + 35) | ||
| 57 | #define __NR_SVR4_sync (__NR_SVR4 + 36) | ||
| 58 | #define __NR_SVR4_kill (__NR_SVR4 + 37) | ||
| 59 | #define __NR_SVR4_fstatfs (__NR_SVR4 + 38) | ||
| 60 | #define __NR_SVR4_setpgrp (__NR_SVR4 + 39) | ||
| 61 | #define __NR_SVR4_cxenix (__NR_SVR4 + 40) | ||
| 62 | #define __NR_SVR4_dup (__NR_SVR4 + 41) | ||
| 63 | #define __NR_SVR4_pipe (__NR_SVR4 + 42) | ||
| 64 | #define __NR_SVR4_times (__NR_SVR4 + 43) | ||
| 65 | #define __NR_SVR4_profil (__NR_SVR4 + 44) | ||
| 66 | #define __NR_SVR4_plock (__NR_SVR4 + 45) | ||
| 67 | #define __NR_SVR4_setgid (__NR_SVR4 + 46) | ||
| 68 | #define __NR_SVR4_getgid (__NR_SVR4 + 47) | ||
| 69 | #define __NR_SVR4_sig (__NR_SVR4 + 48) | ||
| 70 | #define __NR_SVR4_msgsys (__NR_SVR4 + 49) | ||
| 71 | #define __NR_SVR4_sysmips (__NR_SVR4 + 50) | ||
| 72 | #define __NR_SVR4_sysacct (__NR_SVR4 + 51) | ||
| 73 | #define __NR_SVR4_shmsys (__NR_SVR4 + 52) | ||
| 74 | #define __NR_SVR4_semsys (__NR_SVR4 + 53) | ||
| 75 | #define __NR_SVR4_ioctl (__NR_SVR4 + 54) | ||
| 76 | #define __NR_SVR4_uadmin (__NR_SVR4 + 55) | ||
| 77 | #define __NR_SVR4_exch (__NR_SVR4 + 56) | ||
| 78 | #define __NR_SVR4_utssys (__NR_SVR4 + 57) | ||
| 79 | #define __NR_SVR4_fsync (__NR_SVR4 + 58) | ||
| 80 | #define __NR_SVR4_exece (__NR_SVR4 + 59) | ||
| 81 | #define __NR_SVR4_umask (__NR_SVR4 + 60) | ||
| 82 | #define __NR_SVR4_chroot (__NR_SVR4 + 61) | ||
| 83 | #define __NR_SVR4_fcntl (__NR_SVR4 + 62) | ||
| 84 | #define __NR_SVR4_ulimit (__NR_SVR4 + 63) | ||
| 85 | #define __NR_SVR4_reserved1 (__NR_SVR4 + 64) | ||
| 86 | #define __NR_SVR4_reserved2 (__NR_SVR4 + 65) | ||
| 87 | #define __NR_SVR4_reserved3 (__NR_SVR4 + 66) | ||
| 88 | #define __NR_SVR4_reserved4 (__NR_SVR4 + 67) | ||
| 89 | #define __NR_SVR4_reserved5 (__NR_SVR4 + 68) | ||
| 90 | #define __NR_SVR4_reserved6 (__NR_SVR4 + 69) | ||
| 91 | #define __NR_SVR4_advfs (__NR_SVR4 + 70) | ||
| 92 | #define __NR_SVR4_unadvfs (__NR_SVR4 + 71) | ||
| 93 | #define __NR_SVR4_unused1 (__NR_SVR4 + 72) | ||
| 94 | #define __NR_SVR4_unused2 (__NR_SVR4 + 73) | ||
| 95 | #define __NR_SVR4_rfstart (__NR_SVR4 + 74) | ||
| 96 | #define __NR_SVR4_unused3 (__NR_SVR4 + 75) | ||
| 97 | #define __NR_SVR4_rdebug (__NR_SVR4 + 76) | ||
| 98 | #define __NR_SVR4_rfstop (__NR_SVR4 + 77) | ||
| 99 | #define __NR_SVR4_rfsys (__NR_SVR4 + 78) | ||
| 100 | #define __NR_SVR4_rmdir (__NR_SVR4 + 79) | ||
| 101 | #define __NR_SVR4_mkdir (__NR_SVR4 + 80) | ||
| 102 | #define __NR_SVR4_getdents (__NR_SVR4 + 81) | ||
| 103 | #define __NR_SVR4_libattach (__NR_SVR4 + 82) | ||
| 104 | #define __NR_SVR4_libdetach (__NR_SVR4 + 83) | ||
| 105 | #define __NR_SVR4_sysfs (__NR_SVR4 + 84) | ||
| 106 | #define __NR_SVR4_getmsg (__NR_SVR4 + 85) | ||
| 107 | #define __NR_SVR4_putmsg (__NR_SVR4 + 86) | ||
| 108 | #define __NR_SVR4_poll (__NR_SVR4 + 87) | ||
| 109 | #define __NR_SVR4_lstat (__NR_SVR4 + 88) | ||
| 110 | #define __NR_SVR4_symlink (__NR_SVR4 + 89) | ||
| 111 | #define __NR_SVR4_readlink (__NR_SVR4 + 90) | ||
| 112 | #define __NR_SVR4_setgroups (__NR_SVR4 + 91) | ||
| 113 | #define __NR_SVR4_getgroups (__NR_SVR4 + 92) | ||
| 114 | #define __NR_SVR4_fchmod (__NR_SVR4 + 93) | ||
| 115 | #define __NR_SVR4_fchown (__NR_SVR4 + 94) | ||
| 116 | #define __NR_SVR4_sigprocmask (__NR_SVR4 + 95) | ||
| 117 | #define __NR_SVR4_sigsuspend (__NR_SVR4 + 96) | ||
| 118 | #define __NR_SVR4_sigaltstack (__NR_SVR4 + 97) | ||
| 119 | #define __NR_SVR4_sigaction (__NR_SVR4 + 98) | ||
| 120 | #define __NR_SVR4_sigpending (__NR_SVR4 + 99) | ||
| 121 | #define __NR_SVR4_setcontext (__NR_SVR4 + 100) | ||
| 122 | #define __NR_SVR4_evsys (__NR_SVR4 + 101) | ||
| 123 | #define __NR_SVR4_evtrapret (__NR_SVR4 + 102) | ||
| 124 | #define __NR_SVR4_statvfs (__NR_SVR4 + 103) | ||
| 125 | #define __NR_SVR4_fstatvfs (__NR_SVR4 + 104) | ||
| 126 | #define __NR_SVR4_reserved7 (__NR_SVR4 + 105) | ||
| 127 | #define __NR_SVR4_nfssys (__NR_SVR4 + 106) | ||
| 128 | #define __NR_SVR4_waitid (__NR_SVR4 + 107) | ||
| 129 | #define __NR_SVR4_sigsendset (__NR_SVR4 + 108) | ||
| 130 | #define __NR_SVR4_hrtsys (__NR_SVR4 + 109) | ||
| 131 | #define __NR_SVR4_acancel (__NR_SVR4 + 110) | ||
| 132 | #define __NR_SVR4_async (__NR_SVR4 + 111) | ||
| 133 | #define __NR_SVR4_priocntlset (__NR_SVR4 + 112) | ||
| 134 | #define __NR_SVR4_pathconf (__NR_SVR4 + 113) | ||
| 135 | #define __NR_SVR4_mincore (__NR_SVR4 + 114) | ||
| 136 | #define __NR_SVR4_mmap (__NR_SVR4 + 115) | ||
| 137 | #define __NR_SVR4_mprotect (__NR_SVR4 + 116) | ||
| 138 | #define __NR_SVR4_munmap (__NR_SVR4 + 117) | ||
| 139 | #define __NR_SVR4_fpathconf (__NR_SVR4 + 118) | ||
| 140 | #define __NR_SVR4_vfork (__NR_SVR4 + 119) | ||
| 141 | #define __NR_SVR4_fchdir (__NR_SVR4 + 120) | ||
| 142 | #define __NR_SVR4_readv (__NR_SVR4 + 121) | ||
| 143 | #define __NR_SVR4_writev (__NR_SVR4 + 122) | ||
| 144 | #define __NR_SVR4_xstat (__NR_SVR4 + 123) | ||
| 145 | #define __NR_SVR4_lxstat (__NR_SVR4 + 124) | ||
| 146 | #define __NR_SVR4_fxstat (__NR_SVR4 + 125) | ||
| 147 | #define __NR_SVR4_xmknod (__NR_SVR4 + 126) | ||
| 148 | #define __NR_SVR4_clocal (__NR_SVR4 + 127) | ||
| 149 | #define __NR_SVR4_setrlimit (__NR_SVR4 + 128) | ||
| 150 | #define __NR_SVR4_getrlimit (__NR_SVR4 + 129) | ||
| 151 | #define __NR_SVR4_lchown (__NR_SVR4 + 130) | ||
| 152 | #define __NR_SVR4_memcntl (__NR_SVR4 + 131) | ||
| 153 | #define __NR_SVR4_getpmsg (__NR_SVR4 + 132) | ||
| 154 | #define __NR_SVR4_putpmsg (__NR_SVR4 + 133) | ||
| 155 | #define __NR_SVR4_rename (__NR_SVR4 + 134) | ||
| 156 | #define __NR_SVR4_nuname (__NR_SVR4 + 135) | ||
| 157 | #define __NR_SVR4_setegid (__NR_SVR4 + 136) | ||
| 158 | #define __NR_SVR4_sysconf (__NR_SVR4 + 137) | ||
| 159 | #define __NR_SVR4_adjtime (__NR_SVR4 + 138) | ||
| 160 | #define __NR_SVR4_sysinfo (__NR_SVR4 + 139) | ||
| 161 | #define __NR_SVR4_reserved8 (__NR_SVR4 + 140) | ||
| 162 | #define __NR_SVR4_seteuid (__NR_SVR4 + 141) | ||
| 163 | #define __NR_SVR4_PYRAMID_statis (__NR_SVR4 + 142) | ||
| 164 | #define __NR_SVR4_PYRAMID_tuning (__NR_SVR4 + 143) | ||
| 165 | #define __NR_SVR4_PYRAMID_forcerr (__NR_SVR4 + 144) | ||
| 166 | #define __NR_SVR4_PYRAMID_mpcntl (__NR_SVR4 + 145) | ||
| 167 | #define __NR_SVR4_reserved9 (__NR_SVR4 + 146) | ||
| 168 | #define __NR_SVR4_reserved10 (__NR_SVR4 + 147) | ||
| 169 | #define __NR_SVR4_reserved11 (__NR_SVR4 + 148) | ||
| 170 | #define __NR_SVR4_reserved12 (__NR_SVR4 + 149) | ||
| 171 | #define __NR_SVR4_reserved13 (__NR_SVR4 + 150) | ||
| 172 | #define __NR_SVR4_reserved14 (__NR_SVR4 + 151) | ||
| 173 | #define __NR_SVR4_reserved15 (__NR_SVR4 + 152) | ||
| 174 | #define __NR_SVR4_reserved16 (__NR_SVR4 + 153) | ||
| 175 | #define __NR_SVR4_reserved17 (__NR_SVR4 + 154) | ||
| 176 | #define __NR_SVR4_reserved18 (__NR_SVR4 + 155) | ||
| 177 | #define __NR_SVR4_reserved19 (__NR_SVR4 + 156) | ||
| 178 | #define __NR_SVR4_reserved20 (__NR_SVR4 + 157) | ||
| 179 | #define __NR_SVR4_reserved21 (__NR_SVR4 + 158) | ||
| 180 | #define __NR_SVR4_reserved22 (__NR_SVR4 + 159) | ||
| 181 | #define __NR_SVR4_reserved23 (__NR_SVR4 + 160) | ||
| 182 | #define __NR_SVR4_reserved24 (__NR_SVR4 + 161) | ||
| 183 | #define __NR_SVR4_reserved25 (__NR_SVR4 + 162) | ||
| 184 | #define __NR_SVR4_reserved26 (__NR_SVR4 + 163) | ||
| 185 | #define __NR_SVR4_reserved27 (__NR_SVR4 + 164) | ||
| 186 | #define __NR_SVR4_reserved28 (__NR_SVR4 + 165) | ||
| 187 | #define __NR_SVR4_reserved29 (__NR_SVR4 + 166) | ||
| 188 | #define __NR_SVR4_reserved30 (__NR_SVR4 + 167) | ||
| 189 | #define __NR_SVR4_reserved31 (__NR_SVR4 + 168) | ||
| 190 | #define __NR_SVR4_reserved32 (__NR_SVR4 + 169) | ||
| 191 | #define __NR_SVR4_reserved33 (__NR_SVR4 + 170) | ||
| 192 | #define __NR_SVR4_reserved34 (__NR_SVR4 + 171) | ||
| 193 | #define __NR_SVR4_reserved35 (__NR_SVR4 + 172) | ||
| 194 | #define __NR_SVR4_reserved36 (__NR_SVR4 + 173) | ||
| 195 | #define __NR_SVR4_reserved37 (__NR_SVR4 + 174) | ||
| 196 | #define __NR_SVR4_reserved38 (__NR_SVR4 + 175) | ||
| 197 | #define __NR_SVR4_reserved39 (__NR_SVR4 + 176) | ||
| 198 | #define __NR_SVR4_reserved40 (__NR_SVR4 + 177) | ||
| 199 | #define __NR_SVR4_reserved41 (__NR_SVR4 + 178) | ||
| 200 | #define __NR_SVR4_reserved42 (__NR_SVR4 + 179) | ||
| 201 | #define __NR_SVR4_reserved43 (__NR_SVR4 + 180) | ||
| 202 | #define __NR_SVR4_reserved44 (__NR_SVR4 + 181) | ||
| 203 | #define __NR_SVR4_reserved45 (__NR_SVR4 + 182) | ||
| 204 | #define __NR_SVR4_reserved46 (__NR_SVR4 + 183) | ||
| 205 | #define __NR_SVR4_reserved47 (__NR_SVR4 + 184) | ||
| 206 | #define __NR_SVR4_reserved48 (__NR_SVR4 + 185) | ||
| 207 | #define __NR_SVR4_reserved49 (__NR_SVR4 + 186) | ||
| 208 | #define __NR_SVR4_reserved50 (__NR_SVR4 + 187) | ||
| 209 | #define __NR_SVR4_reserved51 (__NR_SVR4 + 188) | ||
| 210 | #define __NR_SVR4_reserved52 (__NR_SVR4 + 189) | ||
| 211 | #define __NR_SVR4_reserved53 (__NR_SVR4 + 190) | ||
| 212 | #define __NR_SVR4_reserved54 (__NR_SVR4 + 191) | ||
| 213 | #define __NR_SVR4_reserved55 (__NR_SVR4 + 192) | ||
| 214 | #define __NR_SVR4_reserved56 (__NR_SVR4 + 193) | ||
| 215 | #define __NR_SVR4_reserved57 (__NR_SVR4 + 194) | ||
| 216 | #define __NR_SVR4_reserved58 (__NR_SVR4 + 195) | ||
| 217 | #define __NR_SVR4_reserved59 (__NR_SVR4 + 196) | ||
| 218 | #define __NR_SVR4_reserved60 (__NR_SVR4 + 197) | ||
| 219 | #define __NR_SVR4_reserved61 (__NR_SVR4 + 198) | ||
| 220 | #define __NR_SVR4_reserved62 (__NR_SVR4 + 199) | ||
| 221 | #define __NR_SVR4_reserved63 (__NR_SVR4 + 200) | ||
| 222 | #define __NR_SVR4_aread (__NR_SVR4 + 201) | ||
| 223 | #define __NR_SVR4_awrite (__NR_SVR4 + 202) | ||
| 224 | #define __NR_SVR4_listio (__NR_SVR4 + 203) | ||
| 225 | #define __NR_SVR4_mips_acancel (__NR_SVR4 + 204) | ||
| 226 | #define __NR_SVR4_astatus (__NR_SVR4 + 205) | ||
| 227 | #define __NR_SVR4_await (__NR_SVR4 + 206) | ||
| 228 | #define __NR_SVR4_areadv (__NR_SVR4 + 207) | ||
| 229 | #define __NR_SVR4_awritev (__NR_SVR4 + 208) | ||
| 230 | #define __NR_SVR4_MIPS_reserved1 (__NR_SVR4 + 209) | ||
| 231 | #define __NR_SVR4_MIPS_reserved2 (__NR_SVR4 + 210) | ||
| 232 | #define __NR_SVR4_MIPS_reserved3 (__NR_SVR4 + 211) | ||
| 233 | #define __NR_SVR4_MIPS_reserved4 (__NR_SVR4 + 212) | ||
| 234 | #define __NR_SVR4_MIPS_reserved5 (__NR_SVR4 + 213) | ||
| 235 | #define __NR_SVR4_MIPS_reserved6 (__NR_SVR4 + 214) | ||
| 236 | #define __NR_SVR4_MIPS_reserved7 (__NR_SVR4 + 215) | ||
| 237 | #define __NR_SVR4_MIPS_reserved8 (__NR_SVR4 + 216) | ||
| 238 | #define __NR_SVR4_MIPS_reserved9 (__NR_SVR4 + 217) | ||
| 239 | #define __NR_SVR4_MIPS_reserved10 (__NR_SVR4 + 218) | ||
| 240 | #define __NR_SVR4_MIPS_reserved11 (__NR_SVR4 + 219) | ||
| 241 | #define __NR_SVR4_MIPS_reserved12 (__NR_SVR4 + 220) | ||
| 242 | #define __NR_SVR4_CDC_reserved1 (__NR_SVR4 + 221) | ||
| 243 | #define __NR_SVR4_CDC_reserved2 (__NR_SVR4 + 222) | ||
| 244 | #define __NR_SVR4_CDC_reserved3 (__NR_SVR4 + 223) | ||
| 245 | #define __NR_SVR4_CDC_reserved4 (__NR_SVR4 + 224) | ||
| 246 | #define __NR_SVR4_CDC_reserved5 (__NR_SVR4 + 225) | ||
| 247 | #define __NR_SVR4_CDC_reserved6 (__NR_SVR4 + 226) | ||
| 248 | #define __NR_SVR4_CDC_reserved7 (__NR_SVR4 + 227) | ||
| 249 | #define __NR_SVR4_CDC_reserved8 (__NR_SVR4 + 228) | ||
| 250 | #define __NR_SVR4_CDC_reserved9 (__NR_SVR4 + 229) | ||
| 251 | #define __NR_SVR4_CDC_reserved10 (__NR_SVR4 + 230) | ||
| 252 | #define __NR_SVR4_CDC_reserved11 (__NR_SVR4 + 231) | ||
| 253 | #define __NR_SVR4_CDC_reserved12 (__NR_SVR4 + 232) | ||
| 254 | #define __NR_SVR4_CDC_reserved13 (__NR_SVR4 + 233) | ||
| 255 | #define __NR_SVR4_CDC_reserved14 (__NR_SVR4 + 234) | ||
| 256 | #define __NR_SVR4_CDC_reserved15 (__NR_SVR4 + 235) | ||
| 257 | #define __NR_SVR4_CDC_reserved16 (__NR_SVR4 + 236) | ||
| 258 | #define __NR_SVR4_CDC_reserved17 (__NR_SVR4 + 237) | ||
| 259 | #define __NR_SVR4_CDC_reserved18 (__NR_SVR4 + 238) | ||
| 260 | #define __NR_SVR4_CDC_reserved19 (__NR_SVR4 + 239) | ||
| 261 | #define __NR_SVR4_CDC_reserved20 (__NR_SVR4 + 240) | ||
| 262 | |||
| 263 | /* | ||
| 264 | * SYS V syscalls are in the range from 1000 to 1999 | ||
| 265 | */ | ||
| 266 | #define __NR_SYSV 1000 | ||
| 267 | #define __NR_SYSV_syscall (__NR_SYSV + 0) | ||
| 268 | #define __NR_SYSV_exit (__NR_SYSV + 1) | ||
| 269 | #define __NR_SYSV_fork (__NR_SYSV + 2) | ||
| 270 | #define __NR_SYSV_read (__NR_SYSV + 3) | ||
| 271 | #define __NR_SYSV_write (__NR_SYSV + 4) | ||
| 272 | #define __NR_SYSV_open (__NR_SYSV + 5) | ||
| 273 | #define __NR_SYSV_close (__NR_SYSV + 6) | ||
| 274 | #define __NR_SYSV_wait (__NR_SYSV + 7) | ||
| 275 | #define __NR_SYSV_creat (__NR_SYSV + 8) | ||
| 276 | #define __NR_SYSV_link (__NR_SYSV + 9) | ||
| 277 | #define __NR_SYSV_unlink (__NR_SYSV + 10) | ||
| 278 | #define __NR_SYSV_execv (__NR_SYSV + 11) | ||
| 279 | #define __NR_SYSV_chdir (__NR_SYSV + 12) | ||
| 280 | #define __NR_SYSV_time (__NR_SYSV + 13) | ||
| 281 | #define __NR_SYSV_mknod (__NR_SYSV + 14) | ||
| 282 | #define __NR_SYSV_chmod (__NR_SYSV + 15) | ||
| 283 | #define __NR_SYSV_chown (__NR_SYSV + 16) | ||
| 284 | #define __NR_SYSV_brk (__NR_SYSV + 17) | ||
| 285 | #define __NR_SYSV_stat (__NR_SYSV + 18) | ||
| 286 | #define __NR_SYSV_lseek (__NR_SYSV + 19) | ||
| 287 | #define __NR_SYSV_getpid (__NR_SYSV + 20) | ||
| 288 | #define __NR_SYSV_mount (__NR_SYSV + 21) | ||
| 289 | #define __NR_SYSV_umount (__NR_SYSV + 22) | ||
| 290 | #define __NR_SYSV_setuid (__NR_SYSV + 23) | ||
| 291 | #define __NR_SYSV_getuid (__NR_SYSV + 24) | ||
| 292 | #define __NR_SYSV_stime (__NR_SYSV + 25) | ||
| 293 | #define __NR_SYSV_ptrace (__NR_SYSV + 26) | ||
| 294 | #define __NR_SYSV_alarm (__NR_SYSV + 27) | ||
| 295 | #define __NR_SYSV_fstat (__NR_SYSV + 28) | ||
| 296 | #define __NR_SYSV_pause (__NR_SYSV + 29) | ||
| 297 | #define __NR_SYSV_utime (__NR_SYSV + 30) | ||
| 298 | #define __NR_SYSV_stty (__NR_SYSV + 31) | ||
| 299 | #define __NR_SYSV_gtty (__NR_SYSV + 32) | ||
| 300 | #define __NR_SYSV_access (__NR_SYSV + 33) | ||
| 301 | #define __NR_SYSV_nice (__NR_SYSV + 34) | ||
| 302 | #define __NR_SYSV_statfs (__NR_SYSV + 35) | ||
| 303 | #define __NR_SYSV_sync (__NR_SYSV + 36) | ||
| 304 | #define __NR_SYSV_kill (__NR_SYSV + 37) | ||
| 305 | #define __NR_SYSV_fstatfs (__NR_SYSV + 38) | ||
| 306 | #define __NR_SYSV_setpgrp (__NR_SYSV + 39) | ||
| 307 | #define __NR_SYSV_syssgi (__NR_SYSV + 40) | ||
| 308 | #define __NR_SYSV_dup (__NR_SYSV + 41) | ||
| 309 | #define __NR_SYSV_pipe (__NR_SYSV + 42) | ||
| 310 | #define __NR_SYSV_times (__NR_SYSV + 43) | ||
| 311 | #define __NR_SYSV_profil (__NR_SYSV + 44) | ||
| 312 | #define __NR_SYSV_plock (__NR_SYSV + 45) | ||
| 313 | #define __NR_SYSV_setgid (__NR_SYSV + 46) | ||
| 314 | #define __NR_SYSV_getgid (__NR_SYSV + 47) | ||
| 315 | #define __NR_SYSV_sig (__NR_SYSV + 48) | ||
| 316 | #define __NR_SYSV_msgsys (__NR_SYSV + 49) | ||
| 317 | #define __NR_SYSV_sysmips (__NR_SYSV + 50) | ||
| 318 | #define __NR_SYSV_acct (__NR_SYSV + 51) | ||
| 319 | #define __NR_SYSV_shmsys (__NR_SYSV + 52) | ||
| 320 | #define __NR_SYSV_semsys (__NR_SYSV + 53) | ||
| 321 | #define __NR_SYSV_ioctl (__NR_SYSV + 54) | ||
| 322 | #define __NR_SYSV_uadmin (__NR_SYSV + 55) | ||
| 323 | #define __NR_SYSV_sysmp (__NR_SYSV + 56) | ||
| 324 | #define __NR_SYSV_utssys (__NR_SYSV + 57) | ||
| 325 | #define __NR_SYSV_USG_reserved1 (__NR_SYSV + 58) | ||
| 326 | #define __NR_SYSV_execve (__NR_SYSV + 59) | ||
| 327 | #define __NR_SYSV_umask (__NR_SYSV + 60) | ||
| 328 | #define __NR_SYSV_chroot (__NR_SYSV + 61) | ||
| 329 | #define __NR_SYSV_fcntl (__NR_SYSV + 62) | ||
| 330 | #define __NR_SYSV_ulimit (__NR_SYSV + 63) | ||
| 331 | #define __NR_SYSV_SAFARI4_reserved1 (__NR_SYSV + 64) | ||
| 332 | #define __NR_SYSV_SAFARI4_reserved2 (__NR_SYSV + 65) | ||
| 333 | #define __NR_SYSV_SAFARI4_reserved3 (__NR_SYSV + 66) | ||
| 334 | #define __NR_SYSV_SAFARI4_reserved4 (__NR_SYSV + 67) | ||
| 335 | #define __NR_SYSV_SAFARI4_reserved5 (__NR_SYSV + 68) | ||
| 336 | #define __NR_SYSV_SAFARI4_reserved6 (__NR_SYSV + 69) | ||
| 337 | #define __NR_SYSV_advfs (__NR_SYSV + 70) | ||
| 338 | #define __NR_SYSV_unadvfs (__NR_SYSV + 71) | ||
| 339 | #define __NR_SYSV_rmount (__NR_SYSV + 72) | ||
| 340 | #define __NR_SYSV_rumount (__NR_SYSV + 73) | ||
| 341 | #define __NR_SYSV_rfstart (__NR_SYSV + 74) | ||
| 342 | #define __NR_SYSV_getrlimit64 (__NR_SYSV + 75) | ||
| 343 | #define __NR_SYSV_setrlimit64 (__NR_SYSV + 76) | ||
| 344 | #define __NR_SYSV_nanosleep (__NR_SYSV + 77) | ||
| 345 | #define __NR_SYSV_lseek64 (__NR_SYSV + 78) | ||
| 346 | #define __NR_SYSV_rmdir (__NR_SYSV + 79) | ||
| 347 | #define __NR_SYSV_mkdir (__NR_SYSV + 80) | ||
| 348 | #define __NR_SYSV_getdents (__NR_SYSV + 81) | ||
| 349 | #define __NR_SYSV_sginap (__NR_SYSV + 82) | ||
| 350 | #define __NR_SYSV_sgikopt (__NR_SYSV + 83) | ||
| 351 | #define __NR_SYSV_sysfs (__NR_SYSV + 84) | ||
| 352 | #define __NR_SYSV_getmsg (__NR_SYSV + 85) | ||
| 353 | #define __NR_SYSV_putmsg (__NR_SYSV + 86) | ||
| 354 | #define __NR_SYSV_poll (__NR_SYSV + 87) | ||
| 355 | #define __NR_SYSV_sigreturn (__NR_SYSV + 88) | ||
| 356 | #define __NR_SYSV_accept (__NR_SYSV + 89) | ||
| 357 | #define __NR_SYSV_bind (__NR_SYSV + 90) | ||
| 358 | #define __NR_SYSV_connect (__NR_SYSV + 91) | ||
| 359 | #define __NR_SYSV_gethostid (__NR_SYSV + 92) | ||
| 360 | #define __NR_SYSV_getpeername (__NR_SYSV + 93) | ||
| 361 | #define __NR_SYSV_getsockname (__NR_SYSV + 94) | ||
| 362 | #define __NR_SYSV_getsockopt (__NR_SYSV + 95) | ||
| 363 | #define __NR_SYSV_listen (__NR_SYSV + 96) | ||
| 364 | #define __NR_SYSV_recv (__NR_SYSV + 97) | ||
| 365 | #define __NR_SYSV_recvfrom (__NR_SYSV + 98) | ||
| 366 | #define __NR_SYSV_recvmsg (__NR_SYSV + 99) | ||
| 367 | #define __NR_SYSV_select (__NR_SYSV + 100) | ||
| 368 | #define __NR_SYSV_send (__NR_SYSV + 101) | ||
| 369 | #define __NR_SYSV_sendmsg (__NR_SYSV + 102) | ||
| 370 | #define __NR_SYSV_sendto (__NR_SYSV + 103) | ||
| 371 | #define __NR_SYSV_sethostid (__NR_SYSV + 104) | ||
| 372 | #define __NR_SYSV_setsockopt (__NR_SYSV + 105) | ||
| 373 | #define __NR_SYSV_shutdown (__NR_SYSV + 106) | ||
| 374 | #define __NR_SYSV_socket (__NR_SYSV + 107) | ||
| 375 | #define __NR_SYSV_gethostname (__NR_SYSV + 108) | ||
| 376 | #define __NR_SYSV_sethostname (__NR_SYSV + 109) | ||
| 377 | #define __NR_SYSV_getdomainname (__NR_SYSV + 110) | ||
| 378 | #define __NR_SYSV_setdomainname (__NR_SYSV + 111) | ||
| 379 | #define __NR_SYSV_truncate (__NR_SYSV + 112) | ||
| 380 | #define __NR_SYSV_ftruncate (__NR_SYSV + 113) | ||
| 381 | #define __NR_SYSV_rename (__NR_SYSV + 114) | ||
| 382 | #define __NR_SYSV_symlink (__NR_SYSV + 115) | ||
| 383 | #define __NR_SYSV_readlink (__NR_SYSV + 116) | ||
| 384 | #define __NR_SYSV_lstat (__NR_SYSV + 117) | ||
| 385 | #define __NR_SYSV_nfsmount (__NR_SYSV + 118) | ||
| 386 | #define __NR_SYSV_nfssvc (__NR_SYSV + 119) | ||
| 387 | #define __NR_SYSV_getfh (__NR_SYSV + 120) | ||
| 388 | #define __NR_SYSV_async_daemon (__NR_SYSV + 121) | ||
| 389 | #define __NR_SYSV_exportfs (__NR_SYSV + 122) | ||
| 390 | #define __NR_SYSV_setregid (__NR_SYSV + 123) | ||
| 391 | #define __NR_SYSV_setreuid (__NR_SYSV + 124) | ||
| 392 | #define __NR_SYSV_getitimer (__NR_SYSV + 125) | ||
| 393 | #define __NR_SYSV_setitimer (__NR_SYSV + 126) | ||
| 394 | #define __NR_SYSV_adjtime (__NR_SYSV + 127) | ||
| 395 | #define __NR_SYSV_BSD_getime (__NR_SYSV + 128) | ||
| 396 | #define __NR_SYSV_sproc (__NR_SYSV + 129) | ||
| 397 | #define __NR_SYSV_prctl (__NR_SYSV + 130) | ||
| 398 | #define __NR_SYSV_procblk (__NR_SYSV + 131) | ||
| 399 | #define __NR_SYSV_sprocsp (__NR_SYSV + 132) | ||
| 400 | #define __NR_SYSV_sgigsc (__NR_SYSV + 133) | ||
| 401 | #define __NR_SYSV_mmap (__NR_SYSV + 134) | ||
| 402 | #define __NR_SYSV_munmap (__NR_SYSV + 135) | ||
| 403 | #define __NR_SYSV_mprotect (__NR_SYSV + 136) | ||
| 404 | #define __NR_SYSV_msync (__NR_SYSV + 137) | ||
| 405 | #define __NR_SYSV_madvise (__NR_SYSV + 138) | ||
| 406 | #define __NR_SYSV_pagelock (__NR_SYSV + 139) | ||
| 407 | #define __NR_SYSV_getpagesize (__NR_SYSV + 140) | ||
| 408 | #define __NR_SYSV_quotactl (__NR_SYSV + 141) | ||
| 409 | #define __NR_SYSV_libdetach (__NR_SYSV + 142) | ||
| 410 | #define __NR_SYSV_BSDgetpgrp (__NR_SYSV + 143) | ||
| 411 | #define __NR_SYSV_BSDsetpgrp (__NR_SYSV + 144) | ||
| 412 | #define __NR_SYSV_vhangup (__NR_SYSV + 145) | ||
| 413 | #define __NR_SYSV_fsync (__NR_SYSV + 146) | ||
| 414 | #define __NR_SYSV_fchdir (__NR_SYSV + 147) | ||
| 415 | #define __NR_SYSV_getrlimit (__NR_SYSV + 148) | ||
| 416 | #define __NR_SYSV_setrlimit (__NR_SYSV + 149) | ||
| 417 | #define __NR_SYSV_cacheflush (__NR_SYSV + 150) | ||
| 418 | #define __NR_SYSV_cachectl (__NR_SYSV + 151) | ||
| 419 | #define __NR_SYSV_fchown (__NR_SYSV + 152) | ||
| 420 | #define __NR_SYSV_fchmod (__NR_SYSV + 153) | ||
| 421 | #define __NR_SYSV_wait3 (__NR_SYSV + 154) | ||
| 422 | #define __NR_SYSV_socketpair (__NR_SYSV + 155) | ||
| 423 | #define __NR_SYSV_sysinfo (__NR_SYSV + 156) | ||
| 424 | #define __NR_SYSV_nuname (__NR_SYSV + 157) | ||
| 425 | #define __NR_SYSV_xstat (__NR_SYSV + 158) | ||
| 426 | #define __NR_SYSV_lxstat (__NR_SYSV + 159) | ||
| 427 | #define __NR_SYSV_fxstat (__NR_SYSV + 160) | ||
| 428 | #define __NR_SYSV_xmknod (__NR_SYSV + 161) | ||
| 429 | #define __NR_SYSV_ksigaction (__NR_SYSV + 162) | ||
| 430 | #define __NR_SYSV_sigpending (__NR_SYSV + 163) | ||
| 431 | #define __NR_SYSV_sigprocmask (__NR_SYSV + 164) | ||
| 432 | #define __NR_SYSV_sigsuspend (__NR_SYSV + 165) | ||
| 433 | #define __NR_SYSV_sigpoll (__NR_SYSV + 166) | ||
| 434 | #define __NR_SYSV_swapctl (__NR_SYSV + 167) | ||
| 435 | #define __NR_SYSV_getcontext (__NR_SYSV + 168) | ||
| 436 | #define __NR_SYSV_setcontext (__NR_SYSV + 169) | ||
| 437 | #define __NR_SYSV_waitsys (__NR_SYSV + 170) | ||
| 438 | #define __NR_SYSV_sigstack (__NR_SYSV + 171) | ||
| 439 | #define __NR_SYSV_sigaltstack (__NR_SYSV + 172) | ||
| 440 | #define __NR_SYSV_sigsendset (__NR_SYSV + 173) | ||
| 441 | #define __NR_SYSV_statvfs (__NR_SYSV + 174) | ||
| 442 | #define __NR_SYSV_fstatvfs (__NR_SYSV + 175) | ||
| 443 | #define __NR_SYSV_getpmsg (__NR_SYSV + 176) | ||
| 444 | #define __NR_SYSV_putpmsg (__NR_SYSV + 177) | ||
| 445 | #define __NR_SYSV_lchown (__NR_SYSV + 178) | ||
| 446 | #define __NR_SYSV_priocntl (__NR_SYSV + 179) | ||
| 447 | #define __NR_SYSV_ksigqueue (__NR_SYSV + 180) | ||
| 448 | #define __NR_SYSV_readv (__NR_SYSV + 181) | ||
| 449 | #define __NR_SYSV_writev (__NR_SYSV + 182) | ||
| 450 | #define __NR_SYSV_truncate64 (__NR_SYSV + 183) | ||
| 451 | #define __NR_SYSV_ftruncate64 (__NR_SYSV + 184) | ||
| 452 | #define __NR_SYSV_mmap64 (__NR_SYSV + 185) | ||
| 453 | #define __NR_SYSV_dmi (__NR_SYSV + 186) | ||
| 454 | #define __NR_SYSV_pread (__NR_SYSV + 187) | ||
| 455 | #define __NR_SYSV_pwrite (__NR_SYSV + 188) | ||
| 456 | |||
| 457 | /* | ||
| 458 | * BSD 4.3 syscalls are in the range from 2000 to 2999 | ||
| 459 | */ | ||
| 460 | #define __NR_BSD43 2000 | ||
| 461 | #define __NR_BSD43_syscall (__NR_BSD43 + 0) | ||
| 462 | #define __NR_BSD43_exit (__NR_BSD43 + 1) | ||
| 463 | #define __NR_BSD43_fork (__NR_BSD43 + 2) | ||
| 464 | #define __NR_BSD43_read (__NR_BSD43 + 3) | ||
| 465 | #define __NR_BSD43_write (__NR_BSD43 + 4) | ||
| 466 | #define __NR_BSD43_open (__NR_BSD43 + 5) | ||
| 467 | #define __NR_BSD43_close (__NR_BSD43 + 6) | ||
| 468 | #define __NR_BSD43_wait (__NR_BSD43 + 7) | ||
| 469 | #define __NR_BSD43_creat (__NR_BSD43 + 8) | ||
| 470 | #define __NR_BSD43_link (__NR_BSD43 + 9) | ||
| 471 | #define __NR_BSD43_unlink (__NR_BSD43 + 10) | ||
| 472 | #define __NR_BSD43_exec (__NR_BSD43 + 11) | ||
| 473 | #define __NR_BSD43_chdir (__NR_BSD43 + 12) | ||
| 474 | #define __NR_BSD43_time (__NR_BSD43 + 13) | ||
| 475 | #define __NR_BSD43_mknod (__NR_BSD43 + 14) | ||
| 476 | #define __NR_BSD43_chmod (__NR_BSD43 + 15) | ||
| 477 | #define __NR_BSD43_chown (__NR_BSD43 + 16) | ||
| 478 | #define __NR_BSD43_sbreak (__NR_BSD43 + 17) | ||
| 479 | #define __NR_BSD43_oldstat (__NR_BSD43 + 18) | ||
| 480 | #define __NR_BSD43_lseek (__NR_BSD43 + 19) | ||
| 481 | #define __NR_BSD43_getpid (__NR_BSD43 + 20) | ||
| 482 | #define __NR_BSD43_oldmount (__NR_BSD43 + 21) | ||
| 483 | #define __NR_BSD43_umount (__NR_BSD43 + 22) | ||
| 484 | #define __NR_BSD43_setuid (__NR_BSD43 + 23) | ||
| 485 | #define __NR_BSD43_getuid (__NR_BSD43 + 24) | ||
| 486 | #define __NR_BSD43_stime (__NR_BSD43 + 25) | ||
| 487 | #define __NR_BSD43_ptrace (__NR_BSD43 + 26) | ||
| 488 | #define __NR_BSD43_alarm (__NR_BSD43 + 27) | ||
| 489 | #define __NR_BSD43_oldfstat (__NR_BSD43 + 28) | ||
| 490 | #define __NR_BSD43_pause (__NR_BSD43 + 29) | ||
| 491 | #define __NR_BSD43_utime (__NR_BSD43 + 30) | ||
| 492 | #define __NR_BSD43_stty (__NR_BSD43 + 31) | ||
| 493 | #define __NR_BSD43_gtty (__NR_BSD43 + 32) | ||
| 494 | #define __NR_BSD43_access (__NR_BSD43 + 33) | ||
| 495 | #define __NR_BSD43_nice (__NR_BSD43 + 34) | ||
| 496 | #define __NR_BSD43_ftime (__NR_BSD43 + 35) | ||
| 497 | #define __NR_BSD43_sync (__NR_BSD43 + 36) | ||
| 498 | #define __NR_BSD43_kill (__NR_BSD43 + 37) | ||
| 499 | #define __NR_BSD43_stat (__NR_BSD43 + 38) | ||
| 500 | #define __NR_BSD43_oldsetpgrp (__NR_BSD43 + 39) | ||
| 501 | #define __NR_BSD43_lstat (__NR_BSD43 + 40) | ||
| 502 | #define __NR_BSD43_dup (__NR_BSD43 + 41) | ||
| 503 | #define __NR_BSD43_pipe (__NR_BSD43 + 42) | ||
| 504 | #define __NR_BSD43_times (__NR_BSD43 + 43) | ||
| 505 | #define __NR_BSD43_profil (__NR_BSD43 + 44) | ||
| 506 | #define __NR_BSD43_msgsys (__NR_BSD43 + 45) | ||
| 507 | #define __NR_BSD43_setgid (__NR_BSD43 + 46) | ||
| 508 | #define __NR_BSD43_getgid (__NR_BSD43 + 47) | ||
| 509 | #define __NR_BSD43_ssig (__NR_BSD43 + 48) | ||
| 510 | #define __NR_BSD43_reserved1 (__NR_BSD43 + 49) | ||
| 511 | #define __NR_BSD43_reserved2 (__NR_BSD43 + 50) | ||
| 512 | #define __NR_BSD43_sysacct (__NR_BSD43 + 51) | ||
| 513 | #define __NR_BSD43_phys (__NR_BSD43 + 52) | ||
| 514 | #define __NR_BSD43_lock (__NR_BSD43 + 53) | ||
| 515 | #define __NR_BSD43_ioctl (__NR_BSD43 + 54) | ||
| 516 | #define __NR_BSD43_reboot (__NR_BSD43 + 55) | ||
| 517 | #define __NR_BSD43_mpxchan (__NR_BSD43 + 56) | ||
| 518 | #define __NR_BSD43_symlink (__NR_BSD43 + 57) | ||
| 519 | #define __NR_BSD43_readlink (__NR_BSD43 + 58) | ||
| 520 | #define __NR_BSD43_execve (__NR_BSD43 + 59) | ||
| 521 | #define __NR_BSD43_umask (__NR_BSD43 + 60) | ||
| 522 | #define __NR_BSD43_chroot (__NR_BSD43 + 61) | ||
| 523 | #define __NR_BSD43_fstat (__NR_BSD43 + 62) | ||
| 524 | #define __NR_BSD43_reserved3 (__NR_BSD43 + 63) | ||
| 525 | #define __NR_BSD43_getpagesize (__NR_BSD43 + 64) | ||
| 526 | #define __NR_BSD43_mremap (__NR_BSD43 + 65) | ||
| 527 | #define __NR_BSD43_vfork (__NR_BSD43 + 66) | ||
| 528 | #define __NR_BSD43_vread (__NR_BSD43 + 67) | ||
| 529 | #define __NR_BSD43_vwrite (__NR_BSD43 + 68) | ||
| 530 | #define __NR_BSD43_sbrk (__NR_BSD43 + 69) | ||
| 531 | #define __NR_BSD43_sstk (__NR_BSD43 + 70) | ||
| 532 | #define __NR_BSD43_mmap (__NR_BSD43 + 71) | ||
| 533 | #define __NR_BSD43_vadvise (__NR_BSD43 + 72) | ||
| 534 | #define __NR_BSD43_munmap (__NR_BSD43 + 73) | ||
| 535 | #define __NR_BSD43_mprotect (__NR_BSD43 + 74) | ||
| 536 | #define __NR_BSD43_madvise (__NR_BSD43 + 75) | ||
| 537 | #define __NR_BSD43_vhangup (__NR_BSD43 + 76) | ||
| 538 | #define __NR_BSD43_vlimit (__NR_BSD43 + 77) | ||
| 539 | #define __NR_BSD43_mincore (__NR_BSD43 + 78) | ||
| 540 | #define __NR_BSD43_getgroups (__NR_BSD43 + 79) | ||
| 541 | #define __NR_BSD43_setgroups (__NR_BSD43 + 80) | ||
| 542 | #define __NR_BSD43_getpgrp (__NR_BSD43 + 81) | ||
| 543 | #define __NR_BSD43_setpgrp (__NR_BSD43 + 82) | ||
| 544 | #define __NR_BSD43_setitimer (__NR_BSD43 + 83) | ||
| 545 | #define __NR_BSD43_wait3 (__NR_BSD43 + 84) | ||
| 546 | #define __NR_BSD43_swapon (__NR_BSD43 + 85) | ||
| 547 | #define __NR_BSD43_getitimer (__NR_BSD43 + 86) | ||
| 548 | #define __NR_BSD43_gethostname (__NR_BSD43 + 87) | ||
| 549 | #define __NR_BSD43_sethostname (__NR_BSD43 + 88) | ||
| 550 | #define __NR_BSD43_getdtablesize (__NR_BSD43 + 89) | ||
| 551 | #define __NR_BSD43_dup2 (__NR_BSD43 + 90) | ||
| 552 | #define __NR_BSD43_getdopt (__NR_BSD43 + 91) | ||
| 553 | #define __NR_BSD43_fcntl (__NR_BSD43 + 92) | ||
| 554 | #define __NR_BSD43_select (__NR_BSD43 + 93) | ||
| 555 | #define __NR_BSD43_setdopt (__NR_BSD43 + 94) | ||
| 556 | #define __NR_BSD43_fsync (__NR_BSD43 + 95) | ||
| 557 | #define __NR_BSD43_setpriority (__NR_BSD43 + 96) | ||
| 558 | #define __NR_BSD43_socket (__NR_BSD43 + 97) | ||
| 559 | #define __NR_BSD43_connect (__NR_BSD43 + 98) | ||
| 560 | #define __NR_BSD43_oldaccept (__NR_BSD43 + 99) | ||
| 561 | #define __NR_BSD43_getpriority (__NR_BSD43 + 100) | ||
| 562 | #define __NR_BSD43_send (__NR_BSD43 + 101) | ||
| 563 | #define __NR_BSD43_recv (__NR_BSD43 + 102) | ||
| 564 | #define __NR_BSD43_sigreturn (__NR_BSD43 + 103) | ||
| 565 | #define __NR_BSD43_bind (__NR_BSD43 + 104) | ||
| 566 | #define __NR_BSD43_setsockopt (__NR_BSD43 + 105) | ||
| 567 | #define __NR_BSD43_listen (__NR_BSD43 + 106) | ||
| 568 | #define __NR_BSD43_vtimes (__NR_BSD43 + 107) | ||
| 569 | #define __NR_BSD43_sigvec (__NR_BSD43 + 108) | ||
| 570 | #define __NR_BSD43_sigblock (__NR_BSD43 + 109) | ||
| 571 | #define __NR_BSD43_sigsetmask (__NR_BSD43 + 110) | ||
| 572 | #define __NR_BSD43_sigpause (__NR_BSD43 + 111) | ||
| 573 | #define __NR_BSD43_sigstack (__NR_BSD43 + 112) | ||
| 574 | #define __NR_BSD43_oldrecvmsg (__NR_BSD43 + 113) | ||
| 575 | #define __NR_BSD43_oldsendmsg (__NR_BSD43 + 114) | ||
| 576 | #define __NR_BSD43_vtrace (__NR_BSD43 + 115) | ||
| 577 | #define __NR_BSD43_gettimeofday (__NR_BSD43 + 116) | ||
| 578 | #define __NR_BSD43_getrusage (__NR_BSD43 + 117) | ||
| 579 | #define __NR_BSD43_getsockopt (__NR_BSD43 + 118) | ||
| 580 | #define __NR_BSD43_reserved4 (__NR_BSD43 + 119) | ||
| 581 | #define __NR_BSD43_readv (__NR_BSD43 + 120) | ||
| 582 | #define __NR_BSD43_writev (__NR_BSD43 + 121) | ||
| 583 | #define __NR_BSD43_settimeofday (__NR_BSD43 + 122) | ||
| 584 | #define __NR_BSD43_fchown (__NR_BSD43 + 123) | ||
| 585 | #define __NR_BSD43_fchmod (__NR_BSD43 + 124) | ||
| 586 | #define __NR_BSD43_oldrecvfrom (__NR_BSD43 + 125) | ||
| 587 | #define __NR_BSD43_setreuid (__NR_BSD43 + 126) | ||
| 588 | #define __NR_BSD43_setregid (__NR_BSD43 + 127) | ||
| 589 | #define __NR_BSD43_rename (__NR_BSD43 + 128) | ||
| 590 | #define __NR_BSD43_truncate (__NR_BSD43 + 129) | ||
| 591 | #define __NR_BSD43_ftruncate (__NR_BSD43 + 130) | ||
| 592 | #define __NR_BSD43_flock (__NR_BSD43 + 131) | ||
| 593 | #define __NR_BSD43_semsys (__NR_BSD43 + 132) | ||
| 594 | #define __NR_BSD43_sendto (__NR_BSD43 + 133) | ||
| 595 | #define __NR_BSD43_shutdown (__NR_BSD43 + 134) | ||
| 596 | #define __NR_BSD43_socketpair (__NR_BSD43 + 135) | ||
| 597 | #define __NR_BSD43_mkdir (__NR_BSD43 + 136) | ||
| 598 | #define __NR_BSD43_rmdir (__NR_BSD43 + 137) | ||
| 599 | #define __NR_BSD43_utimes (__NR_BSD43 + 138) | ||
| 600 | #define __NR_BSD43_sigcleanup (__NR_BSD43 + 139) | ||
| 601 | #define __NR_BSD43_adjtime (__NR_BSD43 + 140) | ||
| 602 | #define __NR_BSD43_oldgetpeername (__NR_BSD43 + 141) | ||
| 603 | #define __NR_BSD43_gethostid (__NR_BSD43 + 142) | ||
| 604 | #define __NR_BSD43_sethostid (__NR_BSD43 + 143) | ||
| 605 | #define __NR_BSD43_getrlimit (__NR_BSD43 + 144) | ||
| 606 | #define __NR_BSD43_setrlimit (__NR_BSD43 + 145) | ||
| 607 | #define __NR_BSD43_killpg (__NR_BSD43 + 146) | ||
| 608 | #define __NR_BSD43_shmsys (__NR_BSD43 + 147) | ||
| 609 | #define __NR_BSD43_quota (__NR_BSD43 + 148) | ||
| 610 | #define __NR_BSD43_qquota (__NR_BSD43 + 149) | ||
| 611 | #define __NR_BSD43_oldgetsockname (__NR_BSD43 + 150) | ||
| 612 | #define __NR_BSD43_sysmips (__NR_BSD43 + 151) | ||
| 613 | #define __NR_BSD43_cacheflush (__NR_BSD43 + 152) | ||
| 614 | #define __NR_BSD43_cachectl (__NR_BSD43 + 153) | ||
| 615 | #define __NR_BSD43_debug (__NR_BSD43 + 154) | ||
| 616 | #define __NR_BSD43_reserved5 (__NR_BSD43 + 155) | ||
| 617 | #define __NR_BSD43_reserved6 (__NR_BSD43 + 156) | ||
| 618 | #define __NR_BSD43_nfs_mount (__NR_BSD43 + 157) | ||
| 619 | #define __NR_BSD43_nfs_svc (__NR_BSD43 + 158) | ||
| 620 | #define __NR_BSD43_getdirentries (__NR_BSD43 + 159) | ||
| 621 | #define __NR_BSD43_statfs (__NR_BSD43 + 160) | ||
| 622 | #define __NR_BSD43_fstatfs (__NR_BSD43 + 161) | ||
| 623 | #define __NR_BSD43_unmount (__NR_BSD43 + 162) | ||
| 624 | #define __NR_BSD43_async_daemon (__NR_BSD43 + 163) | ||
| 625 | #define __NR_BSD43_nfs_getfh (__NR_BSD43 + 164) | ||
| 626 | #define __NR_BSD43_getdomainname (__NR_BSD43 + 165) | ||
| 627 | #define __NR_BSD43_setdomainname (__NR_BSD43 + 166) | ||
| 628 | #define __NR_BSD43_pcfs_mount (__NR_BSD43 + 167) | ||
| 629 | #define __NR_BSD43_quotactl (__NR_BSD43 + 168) | ||
| 630 | #define __NR_BSD43_oldexportfs (__NR_BSD43 + 169) | ||
| 631 | #define __NR_BSD43_smount (__NR_BSD43 + 170) | ||
| 632 | #define __NR_BSD43_mipshwconf (__NR_BSD43 + 171) | ||
| 633 | #define __NR_BSD43_exportfs (__NR_BSD43 + 172) | ||
| 634 | #define __NR_BSD43_nfsfh_open (__NR_BSD43 + 173) | ||
| 635 | #define __NR_BSD43_libattach (__NR_BSD43 + 174) | ||
| 636 | #define __NR_BSD43_libdetach (__NR_BSD43 + 175) | ||
| 637 | #define __NR_BSD43_accept (__NR_BSD43 + 176) | ||
| 638 | #define __NR_BSD43_reserved7 (__NR_BSD43 + 177) | ||
| 639 | #define __NR_BSD43_reserved8 (__NR_BSD43 + 178) | ||
| 640 | #define __NR_BSD43_recvmsg (__NR_BSD43 + 179) | ||
| 641 | #define __NR_BSD43_recvfrom (__NR_BSD43 + 180) | ||
| 642 | #define __NR_BSD43_sendmsg (__NR_BSD43 + 181) | ||
| 643 | #define __NR_BSD43_getpeername (__NR_BSD43 + 182) | ||
| 644 | #define __NR_BSD43_getsockname (__NR_BSD43 + 183) | ||
| 645 | #define __NR_BSD43_aread (__NR_BSD43 + 184) | ||
| 646 | #define __NR_BSD43_awrite (__NR_BSD43 + 185) | ||
| 647 | #define __NR_BSD43_listio (__NR_BSD43 + 186) | ||
| 648 | #define __NR_BSD43_acancel (__NR_BSD43 + 187) | ||
| 649 | #define __NR_BSD43_astatus (__NR_BSD43 + 188) | ||
| 650 | #define __NR_BSD43_await (__NR_BSD43 + 189) | ||
| 651 | #define __NR_BSD43_areadv (__NR_BSD43 + 190) | ||
| 652 | #define __NR_BSD43_awritev (__NR_BSD43 + 191) | ||
| 653 | |||
| 654 | /* | ||
| 655 | * POSIX syscalls are in the range from 3000 to 3999 | ||
| 656 | */ | ||
| 657 | #define __NR_POSIX 3000 | ||
| 658 | #define __NR_POSIX_syscall (__NR_POSIX + 0) | ||
| 659 | #define __NR_POSIX_exit (__NR_POSIX + 1) | ||
| 660 | #define __NR_POSIX_fork (__NR_POSIX + 2) | ||
| 661 | #define __NR_POSIX_read (__NR_POSIX + 3) | ||
| 662 | #define __NR_POSIX_write (__NR_POSIX + 4) | ||
| 663 | #define __NR_POSIX_open (__NR_POSIX + 5) | ||
| 664 | #define __NR_POSIX_close (__NR_POSIX + 6) | ||
| 665 | #define __NR_POSIX_wait (__NR_POSIX + 7) | ||
| 666 | #define __NR_POSIX_creat (__NR_POSIX + 8) | ||
| 667 | #define __NR_POSIX_link (__NR_POSIX + 9) | ||
| 668 | #define __NR_POSIX_unlink (__NR_POSIX + 10) | ||
| 669 | #define __NR_POSIX_exec (__NR_POSIX + 11) | ||
| 670 | #define __NR_POSIX_chdir (__NR_POSIX + 12) | ||
| 671 | #define __NR_POSIX_gtime (__NR_POSIX + 13) | ||
| 672 | #define __NR_POSIX_mknod (__NR_POSIX + 14) | ||
| 673 | #define __NR_POSIX_chmod (__NR_POSIX + 15) | ||
| 674 | #define __NR_POSIX_chown (__NR_POSIX + 16) | ||
| 675 | #define __NR_POSIX_sbreak (__NR_POSIX + 17) | ||
| 676 | #define __NR_POSIX_stat (__NR_POSIX + 18) | ||
| 677 | #define __NR_POSIX_lseek (__NR_POSIX + 19) | ||
| 678 | #define __NR_POSIX_getpid (__NR_POSIX + 20) | ||
| 679 | #define __NR_POSIX_mount (__NR_POSIX + 21) | ||
| 680 | #define __NR_POSIX_umount (__NR_POSIX + 22) | ||
| 681 | #define __NR_POSIX_setuid (__NR_POSIX + 23) | ||
| 682 | #define __NR_POSIX_getuid (__NR_POSIX + 24) | ||
| 683 | #define __NR_POSIX_stime (__NR_POSIX + 25) | ||
| 684 | #define __NR_POSIX_ptrace (__NR_POSIX + 26) | ||
| 685 | #define __NR_POSIX_alarm (__NR_POSIX + 27) | ||
| 686 | #define __NR_POSIX_fstat (__NR_POSIX + 28) | ||
| 687 | #define __NR_POSIX_pause (__NR_POSIX + 29) | ||
| 688 | #define __NR_POSIX_utime (__NR_POSIX + 30) | ||
| 689 | #define __NR_POSIX_stty (__NR_POSIX + 31) | ||
| 690 | #define __NR_POSIX_gtty (__NR_POSIX + 32) | ||
| 691 | #define __NR_POSIX_access (__NR_POSIX + 33) | ||
| 692 | #define __NR_POSIX_nice (__NR_POSIX + 34) | ||
| 693 | #define __NR_POSIX_statfs (__NR_POSIX + 35) | ||
| 694 | #define __NR_POSIX_sync (__NR_POSIX + 36) | ||
| 695 | #define __NR_POSIX_kill (__NR_POSIX + 37) | ||
| 696 | #define __NR_POSIX_fstatfs (__NR_POSIX + 38) | ||
| 697 | #define __NR_POSIX_getpgrp (__NR_POSIX + 39) | ||
| 698 | #define __NR_POSIX_syssgi (__NR_POSIX + 40) | ||
| 699 | #define __NR_POSIX_dup (__NR_POSIX + 41) | ||
| 700 | #define __NR_POSIX_pipe (__NR_POSIX + 42) | ||
| 701 | #define __NR_POSIX_times (__NR_POSIX + 43) | ||
| 702 | #define __NR_POSIX_profil (__NR_POSIX + 44) | ||
| 703 | #define __NR_POSIX_lock (__NR_POSIX + 45) | ||
| 704 | #define __NR_POSIX_setgid (__NR_POSIX + 46) | ||
| 705 | #define __NR_POSIX_getgid (__NR_POSIX + 47) | ||
| 706 | #define __NR_POSIX_sig (__NR_POSIX + 48) | ||
| 707 | #define __NR_POSIX_msgsys (__NR_POSIX + 49) | ||
| 708 | #define __NR_POSIX_sysmips (__NR_POSIX + 50) | ||
| 709 | #define __NR_POSIX_sysacct (__NR_POSIX + 51) | ||
| 710 | #define __NR_POSIX_shmsys (__NR_POSIX + 52) | ||
| 711 | #define __NR_POSIX_semsys (__NR_POSIX + 53) | ||
| 712 | #define __NR_POSIX_ioctl (__NR_POSIX + 54) | ||
| 713 | #define __NR_POSIX_uadmin (__NR_POSIX + 55) | ||
| 714 | #define __NR_POSIX_exch (__NR_POSIX + 56) | ||
| 715 | #define __NR_POSIX_utssys (__NR_POSIX + 57) | ||
| 716 | #define __NR_POSIX_USG_reserved1 (__NR_POSIX + 58) | ||
| 717 | #define __NR_POSIX_exece (__NR_POSIX + 59) | ||
| 718 | #define __NR_POSIX_umask (__NR_POSIX + 60) | ||
| 719 | #define __NR_POSIX_chroot (__NR_POSIX + 61) | ||
| 720 | #define __NR_POSIX_fcntl (__NR_POSIX + 62) | ||
| 721 | #define __NR_POSIX_ulimit (__NR_POSIX + 63) | ||
| 722 | #define __NR_POSIX_SAFARI4_reserved1 (__NR_POSIX + 64) | ||
| 723 | #define __NR_POSIX_SAFARI4_reserved2 (__NR_POSIX + 65) | ||
| 724 | #define __NR_POSIX_SAFARI4_reserved3 (__NR_POSIX + 66) | ||
| 725 | #define __NR_POSIX_SAFARI4_reserved4 (__NR_POSIX + 67) | ||
| 726 | #define __NR_POSIX_SAFARI4_reserved5 (__NR_POSIX + 68) | ||
| 727 | #define __NR_POSIX_SAFARI4_reserved6 (__NR_POSIX + 69) | ||
| 728 | #define __NR_POSIX_advfs (__NR_POSIX + 70) | ||
| 729 | #define __NR_POSIX_unadvfs (__NR_POSIX + 71) | ||
| 730 | #define __NR_POSIX_rmount (__NR_POSIX + 72) | ||
| 731 | #define __NR_POSIX_rumount (__NR_POSIX + 73) | ||
| 732 | #define __NR_POSIX_rfstart (__NR_POSIX + 74) | ||
| 733 | #define __NR_POSIX_reserved1 (__NR_POSIX + 75) | ||
| 734 | #define __NR_POSIX_rdebug (__NR_POSIX + 76) | ||
| 735 | #define __NR_POSIX_rfstop (__NR_POSIX + 77) | ||
| 736 | #define __NR_POSIX_rfsys (__NR_POSIX + 78) | ||
| 737 | #define __NR_POSIX_rmdir (__NR_POSIX + 79) | ||
| 738 | #define __NR_POSIX_mkdir (__NR_POSIX + 80) | ||
| 739 | #define __NR_POSIX_getdents (__NR_POSIX + 81) | ||
| 740 | #define __NR_POSIX_sginap (__NR_POSIX + 82) | ||
| 741 | #define __NR_POSIX_sgikopt (__NR_POSIX + 83) | ||
| 742 | #define __NR_POSIX_sysfs (__NR_POSIX + 84) | ||
| 743 | #define __NR_POSIX_getmsg (__NR_POSIX + 85) | ||
| 744 | #define __NR_POSIX_putmsg (__NR_POSIX + 86) | ||
| 745 | #define __NR_POSIX_poll (__NR_POSIX + 87) | ||
| 746 | #define __NR_POSIX_sigreturn (__NR_POSIX + 88) | ||
| 747 | #define __NR_POSIX_accept (__NR_POSIX + 89) | ||
| 748 | #define __NR_POSIX_bind (__NR_POSIX + 90) | ||
| 749 | #define __NR_POSIX_connect (__NR_POSIX + 91) | ||
| 750 | #define __NR_POSIX_gethostid (__NR_POSIX + 92) | ||
| 751 | #define __NR_POSIX_getpeername (__NR_POSIX + 93) | ||
| 752 | #define __NR_POSIX_getsockname (__NR_POSIX + 94) | ||
| 753 | #define __NR_POSIX_getsockopt (__NR_POSIX + 95) | ||
| 754 | #define __NR_POSIX_listen (__NR_POSIX + 96) | ||
| 755 | #define __NR_POSIX_recv (__NR_POSIX + 97) | ||
| 756 | #define __NR_POSIX_recvfrom (__NR_POSIX + 98) | ||
| 757 | #define __NR_POSIX_recvmsg (__NR_POSIX + 99) | ||
| 758 | #define __NR_POSIX_select (__NR_POSIX + 100) | ||
| 759 | #define __NR_POSIX_send (__NR_POSIX + 101) | ||
| 760 | #define __NR_POSIX_sendmsg (__NR_POSIX + 102) | ||
| 761 | #define __NR_POSIX_sendto (__NR_POSIX + 103) | ||
| 762 | #define __NR_POSIX_sethostid (__NR_POSIX + 104) | ||
| 763 | #define __NR_POSIX_setsockopt (__NR_POSIX + 105) | ||
| 764 | #define __NR_POSIX_shutdown (__NR_POSIX + 106) | ||
| 765 | #define __NR_POSIX_socket (__NR_POSIX + 107) | ||
| 766 | #define __NR_POSIX_gethostname (__NR_POSIX + 108) | ||
| 767 | #define __NR_POSIX_sethostname (__NR_POSIX + 109) | ||
| 768 | #define __NR_POSIX_getdomainname (__NR_POSIX + 110) | ||
| 769 | #define __NR_POSIX_setdomainname (__NR_POSIX + 111) | ||
| 770 | #define __NR_POSIX_truncate (__NR_POSIX + 112) | ||
| 771 | #define __NR_POSIX_ftruncate (__NR_POSIX + 113) | ||
| 772 | #define __NR_POSIX_rename (__NR_POSIX + 114) | ||
| 773 | #define __NR_POSIX_symlink (__NR_POSIX + 115) | ||
| 774 | #define __NR_POSIX_readlink (__NR_POSIX + 116) | ||
| 775 | #define __NR_POSIX_lstat (__NR_POSIX + 117) | ||
| 776 | #define __NR_POSIX_nfs_mount (__NR_POSIX + 118) | ||
| 777 | #define __NR_POSIX_nfs_svc (__NR_POSIX + 119) | ||
| 778 | #define __NR_POSIX_nfs_getfh (__NR_POSIX + 120) | ||
| 779 | #define __NR_POSIX_async_daemon (__NR_POSIX + 121) | ||
| 780 | #define __NR_POSIX_exportfs (__NR_POSIX + 122) | ||
| 781 | #define __NR_POSIX_SGI_setregid (__NR_POSIX + 123) | ||
| 782 | #define __NR_POSIX_SGI_setreuid (__NR_POSIX + 124) | ||
| 783 | #define __NR_POSIX_getitimer (__NR_POSIX + 125) | ||
| 784 | #define __NR_POSIX_setitimer (__NR_POSIX + 126) | ||
| 785 | #define __NR_POSIX_adjtime (__NR_POSIX + 127) | ||
| 786 | #define __NR_POSIX_SGI_bsdgettime (__NR_POSIX + 128) | ||
| 787 | #define __NR_POSIX_SGI_sproc (__NR_POSIX + 129) | ||
| 788 | #define __NR_POSIX_SGI_prctl (__NR_POSIX + 130) | ||
| 789 | #define __NR_POSIX_SGI_blkproc (__NR_POSIX + 131) | ||
| 790 | #define __NR_POSIX_SGI_reserved1 (__NR_POSIX + 132) | ||
| 791 | #define __NR_POSIX_SGI_sgigsc (__NR_POSIX + 133) | ||
| 792 | #define __NR_POSIX_SGI_mmap (__NR_POSIX + 134) | ||
| 793 | #define __NR_POSIX_SGI_munmap (__NR_POSIX + 135) | ||
| 794 | #define __NR_POSIX_SGI_mprotect (__NR_POSIX + 136) | ||
| 795 | #define __NR_POSIX_SGI_msync (__NR_POSIX + 137) | ||
| 796 | #define __NR_POSIX_SGI_madvise (__NR_POSIX + 138) | ||
| 797 | #define __NR_POSIX_SGI_mpin (__NR_POSIX + 139) | ||
| 798 | #define __NR_POSIX_SGI_getpagesize (__NR_POSIX + 140) | ||
| 799 | #define __NR_POSIX_SGI_libattach (__NR_POSIX + 141) | ||
| 800 | #define __NR_POSIX_SGI_libdetach (__NR_POSIX + 142) | ||
| 801 | #define __NR_POSIX_SGI_getpgrp (__NR_POSIX + 143) | ||
| 802 | #define __NR_POSIX_SGI_setpgrp (__NR_POSIX + 144) | ||
| 803 | #define __NR_POSIX_SGI_reserved2 (__NR_POSIX + 145) | ||
| 804 | #define __NR_POSIX_SGI_reserved3 (__NR_POSIX + 146) | ||
| 805 | #define __NR_POSIX_SGI_reserved4 (__NR_POSIX + 147) | ||
| 806 | #define __NR_POSIX_SGI_reserved5 (__NR_POSIX + 148) | ||
| 807 | #define __NR_POSIX_SGI_reserved6 (__NR_POSIX + 149) | ||
| 808 | #define __NR_POSIX_cacheflush (__NR_POSIX + 150) | ||
| 809 | #define __NR_POSIX_cachectl (__NR_POSIX + 151) | ||
| 810 | #define __NR_POSIX_fchown (__NR_POSIX + 152) | ||
| 811 | #define __NR_POSIX_fchmod (__NR_POSIX + 153) | ||
| 812 | #define __NR_POSIX_wait3 (__NR_POSIX + 154) | ||
| 813 | #define __NR_POSIX_mmap (__NR_POSIX + 155) | ||
| 814 | #define __NR_POSIX_munmap (__NR_POSIX + 156) | ||
| 815 | #define __NR_POSIX_madvise (__NR_POSIX + 157) | ||
| 816 | #define __NR_POSIX_BSD_getpagesize (__NR_POSIX + 158) | ||
| 817 | #define __NR_POSIX_setreuid (__NR_POSIX + 159) | ||
| 818 | #define __NR_POSIX_setregid (__NR_POSIX + 160) | ||
| 819 | #define __NR_POSIX_setpgid (__NR_POSIX + 161) | ||
| 820 | #define __NR_POSIX_getgroups (__NR_POSIX + 162) | ||
| 821 | #define __NR_POSIX_setgroups (__NR_POSIX + 163) | ||
| 822 | #define __NR_POSIX_gettimeofday (__NR_POSIX + 164) | ||
| 823 | #define __NR_POSIX_getrusage (__NR_POSIX + 165) | ||
| 824 | #define __NR_POSIX_getrlimit (__NR_POSIX + 166) | ||
| 825 | #define __NR_POSIX_setrlimit (__NR_POSIX + 167) | ||
| 826 | #define __NR_POSIX_waitpid (__NR_POSIX + 168) | ||
| 827 | #define __NR_POSIX_dup2 (__NR_POSIX + 169) | ||
| 828 | #define __NR_POSIX_reserved2 (__NR_POSIX + 170) | ||
| 829 | #define __NR_POSIX_reserved3 (__NR_POSIX + 171) | ||
| 830 | #define __NR_POSIX_reserved4 (__NR_POSIX + 172) | ||
| 831 | #define __NR_POSIX_reserved5 (__NR_POSIX + 173) | ||
| 832 | #define __NR_POSIX_reserved6 (__NR_POSIX + 174) | ||
| 833 | #define __NR_POSIX_reserved7 (__NR_POSIX + 175) | ||
| 834 | #define __NR_POSIX_reserved8 (__NR_POSIX + 176) | ||
| 835 | #define __NR_POSIX_reserved9 (__NR_POSIX + 177) | ||
| 836 | #define __NR_POSIX_reserved10 (__NR_POSIX + 178) | ||
| 837 | #define __NR_POSIX_reserved11 (__NR_POSIX + 179) | ||
| 838 | #define __NR_POSIX_reserved12 (__NR_POSIX + 180) | ||
| 839 | #define __NR_POSIX_reserved13 (__NR_POSIX + 181) | ||
| 840 | #define __NR_POSIX_reserved14 (__NR_POSIX + 182) | ||
| 841 | #define __NR_POSIX_reserved15 (__NR_POSIX + 183) | ||
| 842 | #define __NR_POSIX_reserved16 (__NR_POSIX + 184) | ||
| 843 | #define __NR_POSIX_reserved17 (__NR_POSIX + 185) | ||
| 844 | #define __NR_POSIX_reserved18 (__NR_POSIX + 186) | ||
| 845 | #define __NR_POSIX_reserved19 (__NR_POSIX + 187) | ||
| 846 | #define __NR_POSIX_reserved20 (__NR_POSIX + 188) | ||
| 847 | #define __NR_POSIX_reserved21 (__NR_POSIX + 189) | ||
| 848 | #define __NR_POSIX_reserved22 (__NR_POSIX + 190) | ||
| 849 | #define __NR_POSIX_reserved23 (__NR_POSIX + 191) | ||
| 850 | #define __NR_POSIX_reserved24 (__NR_POSIX + 192) | ||
| 851 | #define __NR_POSIX_reserved25 (__NR_POSIX + 193) | ||
| 852 | #define __NR_POSIX_reserved26 (__NR_POSIX + 194) | ||
| 853 | #define __NR_POSIX_reserved27 (__NR_POSIX + 195) | ||
| 854 | #define __NR_POSIX_reserved28 (__NR_POSIX + 196) | ||
| 855 | #define __NR_POSIX_reserved29 (__NR_POSIX + 197) | ||
| 856 | #define __NR_POSIX_reserved30 (__NR_POSIX + 198) | ||
| 857 | #define __NR_POSIX_reserved31 (__NR_POSIX + 199) | ||
| 858 | #define __NR_POSIX_reserved32 (__NR_POSIX + 200) | ||
| 859 | #define __NR_POSIX_reserved33 (__NR_POSIX + 201) | ||
| 860 | #define __NR_POSIX_reserved34 (__NR_POSIX + 202) | ||
| 861 | #define __NR_POSIX_reserved35 (__NR_POSIX + 203) | ||
| 862 | #define __NR_POSIX_reserved36 (__NR_POSIX + 204) | ||
| 863 | #define __NR_POSIX_reserved37 (__NR_POSIX + 205) | ||
| 864 | #define __NR_POSIX_reserved38 (__NR_POSIX + 206) | ||
| 865 | #define __NR_POSIX_reserved39 (__NR_POSIX + 207) | ||
| 866 | #define __NR_POSIX_reserved40 (__NR_POSIX + 208) | ||
| 867 | #define __NR_POSIX_reserved41 (__NR_POSIX + 209) | ||
| 868 | #define __NR_POSIX_reserved42 (__NR_POSIX + 210) | ||
| 869 | #define __NR_POSIX_reserved43 (__NR_POSIX + 211) | ||
| 870 | #define __NR_POSIX_reserved44 (__NR_POSIX + 212) | ||
| 871 | #define __NR_POSIX_reserved45 (__NR_POSIX + 213) | ||
| 872 | #define __NR_POSIX_reserved46 (__NR_POSIX + 214) | ||
| 873 | #define __NR_POSIX_reserved47 (__NR_POSIX + 215) | ||
| 874 | #define __NR_POSIX_reserved48 (__NR_POSIX + 216) | ||
| 875 | #define __NR_POSIX_reserved49 (__NR_POSIX + 217) | ||
| 876 | #define __NR_POSIX_reserved50 (__NR_POSIX + 218) | ||
| 877 | #define __NR_POSIX_reserved51 (__NR_POSIX + 219) | ||
| 878 | #define __NR_POSIX_reserved52 (__NR_POSIX + 220) | ||
| 879 | #define __NR_POSIX_reserved53 (__NR_POSIX + 221) | ||
| 880 | #define __NR_POSIX_reserved54 (__NR_POSIX + 222) | ||
| 881 | #define __NR_POSIX_reserved55 (__NR_POSIX + 223) | ||
| 882 | #define __NR_POSIX_reserved56 (__NR_POSIX + 224) | ||
| 883 | #define __NR_POSIX_reserved57 (__NR_POSIX + 225) | ||
| 884 | #define __NR_POSIX_reserved58 (__NR_POSIX + 226) | ||
| 885 | #define __NR_POSIX_reserved59 (__NR_POSIX + 227) | ||
| 886 | #define __NR_POSIX_reserved60 (__NR_POSIX + 228) | ||
| 887 | #define __NR_POSIX_reserved61 (__NR_POSIX + 229) | ||
| 888 | #define __NR_POSIX_reserved62 (__NR_POSIX + 230) | ||
| 889 | #define __NR_POSIX_reserved63 (__NR_POSIX + 231) | ||
| 890 | #define __NR_POSIX_reserved64 (__NR_POSIX + 232) | ||
| 891 | #define __NR_POSIX_reserved65 (__NR_POSIX + 233) | ||
| 892 | #define __NR_POSIX_reserved66 (__NR_POSIX + 234) | ||
| 893 | #define __NR_POSIX_reserved67 (__NR_POSIX + 235) | ||
| 894 | #define __NR_POSIX_reserved68 (__NR_POSIX + 236) | ||
| 895 | #define __NR_POSIX_reserved69 (__NR_POSIX + 237) | ||
| 896 | #define __NR_POSIX_reserved70 (__NR_POSIX + 238) | ||
| 897 | #define __NR_POSIX_reserved71 (__NR_POSIX + 239) | ||
| 898 | #define __NR_POSIX_reserved72 (__NR_POSIX + 240) | ||
| 899 | #define __NR_POSIX_reserved73 (__NR_POSIX + 241) | ||
| 900 | #define __NR_POSIX_reserved74 (__NR_POSIX + 242) | ||
| 901 | #define __NR_POSIX_reserved75 (__NR_POSIX + 243) | ||
| 902 | #define __NR_POSIX_reserved76 (__NR_POSIX + 244) | ||
| 903 | #define __NR_POSIX_reserved77 (__NR_POSIX + 245) | ||
| 904 | #define __NR_POSIX_reserved78 (__NR_POSIX + 246) | ||
| 905 | #define __NR_POSIX_reserved79 (__NR_POSIX + 247) | ||
| 906 | #define __NR_POSIX_reserved80 (__NR_POSIX + 248) | ||
| 907 | #define __NR_POSIX_reserved81 (__NR_POSIX + 249) | ||
| 908 | #define __NR_POSIX_reserved82 (__NR_POSIX + 250) | ||
| 909 | #define __NR_POSIX_reserved83 (__NR_POSIX + 251) | ||
| 910 | #define __NR_POSIX_reserved84 (__NR_POSIX + 252) | ||
| 911 | #define __NR_POSIX_reserved85 (__NR_POSIX + 253) | ||
| 912 | #define __NR_POSIX_reserved86 (__NR_POSIX + 254) | ||
| 913 | #define __NR_POSIX_reserved87 (__NR_POSIX + 255) | ||
| 914 | #define __NR_POSIX_reserved88 (__NR_POSIX + 256) | ||
| 915 | #define __NR_POSIX_reserved89 (__NR_POSIX + 257) | ||
| 916 | #define __NR_POSIX_reserved90 (__NR_POSIX + 258) | ||
| 917 | #define __NR_POSIX_reserved91 (__NR_POSIX + 259) | ||
| 918 | #define __NR_POSIX_netboot (__NR_POSIX + 260) | ||
| 919 | #define __NR_POSIX_netunboot (__NR_POSIX + 261) | ||
| 920 | #define __NR_POSIX_rdump (__NR_POSIX + 262) | ||
| 921 | #define __NR_POSIX_setsid (__NR_POSIX + 263) | ||
| 922 | #define __NR_POSIX_getmaxsig (__NR_POSIX + 264) | ||
| 923 | #define __NR_POSIX_sigpending (__NR_POSIX + 265) | ||
| 924 | #define __NR_POSIX_sigprocmask (__NR_POSIX + 266) | ||
| 925 | #define __NR_POSIX_sigsuspend (__NR_POSIX + 267) | ||
| 926 | #define __NR_POSIX_sigaction (__NR_POSIX + 268) | ||
| 927 | #define __NR_POSIX_MIPS_reserved1 (__NR_POSIX + 269) | ||
| 928 | #define __NR_POSIX_MIPS_reserved2 (__NR_POSIX + 270) | ||
| 929 | #define __NR_POSIX_MIPS_reserved3 (__NR_POSIX + 271) | ||
| 930 | #define __NR_POSIX_MIPS_reserved4 (__NR_POSIX + 272) | ||
| 931 | #define __NR_POSIX_MIPS_reserved5 (__NR_POSIX + 273) | ||
| 932 | #define __NR_POSIX_MIPS_reserved6 (__NR_POSIX + 274) | ||
| 933 | #define __NR_POSIX_MIPS_reserved7 (__NR_POSIX + 275) | ||
| 934 | #define __NR_POSIX_MIPS_reserved8 (__NR_POSIX + 276) | ||
| 935 | #define __NR_POSIX_MIPS_reserved9 (__NR_POSIX + 277) | ||
| 936 | #define __NR_POSIX_MIPS_reserved10 (__NR_POSIX + 278) | ||
| 937 | #define __NR_POSIX_MIPS_reserved11 (__NR_POSIX + 279) | ||
| 938 | #define __NR_POSIX_TANDEM_reserved1 (__NR_POSIX + 280) | ||
| 939 | #define __NR_POSIX_TANDEM_reserved2 (__NR_POSIX + 281) | ||
| 940 | #define __NR_POSIX_TANDEM_reserved3 (__NR_POSIX + 282) | ||
| 941 | #define __NR_POSIX_TANDEM_reserved4 (__NR_POSIX + 283) | ||
| 942 | #define __NR_POSIX_TANDEM_reserved5 (__NR_POSIX + 284) | ||
| 943 | #define __NR_POSIX_TANDEM_reserved6 (__NR_POSIX + 285) | ||
| 944 | #define __NR_POSIX_TANDEM_reserved7 (__NR_POSIX + 286) | ||
| 945 | #define __NR_POSIX_TANDEM_reserved8 (__NR_POSIX + 287) | ||
| 946 | #define __NR_POSIX_TANDEM_reserved9 (__NR_POSIX + 288) | ||
| 947 | #define __NR_POSIX_TANDEM_reserved10 (__NR_POSIX + 289) | ||
| 948 | #define __NR_POSIX_TANDEM_reserved11 (__NR_POSIX + 290) | ||
| 949 | #define __NR_POSIX_TANDEM_reserved12 (__NR_POSIX + 291) | ||
| 950 | #define __NR_POSIX_TANDEM_reserved13 (__NR_POSIX + 292) | ||
| 951 | #define __NR_POSIX_TANDEM_reserved14 (__NR_POSIX + 293) | ||
| 952 | #define __NR_POSIX_TANDEM_reserved15 (__NR_POSIX + 294) | ||
| 953 | #define __NR_POSIX_TANDEM_reserved16 (__NR_POSIX + 295) | ||
| 954 | #define __NR_POSIX_TANDEM_reserved17 (__NR_POSIX + 296) | ||
| 955 | #define __NR_POSIX_TANDEM_reserved18 (__NR_POSIX + 297) | ||
| 956 | #define __NR_POSIX_TANDEM_reserved19 (__NR_POSIX + 298) | ||
| 957 | #define __NR_POSIX_TANDEM_reserved20 (__NR_POSIX + 299) | ||
| 958 | #define __NR_POSIX_SGI_reserved7 (__NR_POSIX + 300) | ||
| 959 | #define __NR_POSIX_SGI_reserved8 (__NR_POSIX + 301) | ||
| 960 | #define __NR_POSIX_SGI_reserved9 (__NR_POSIX + 302) | ||
| 961 | #define __NR_POSIX_SGI_reserved10 (__NR_POSIX + 303) | ||
| 962 | #define __NR_POSIX_SGI_reserved11 (__NR_POSIX + 304) | ||
| 963 | #define __NR_POSIX_SGI_reserved12 (__NR_POSIX + 305) | ||
| 964 | #define __NR_POSIX_SGI_reserved13 (__NR_POSIX + 306) | ||
| 965 | #define __NR_POSIX_SGI_reserved14 (__NR_POSIX + 307) | ||
| 966 | #define __NR_POSIX_SGI_reserved15 (__NR_POSIX + 308) | ||
| 967 | #define __NR_POSIX_SGI_reserved16 (__NR_POSIX + 309) | ||
| 968 | #define __NR_POSIX_SGI_reserved17 (__NR_POSIX + 310) | ||
| 969 | #define __NR_POSIX_SGI_reserved18 (__NR_POSIX + 311) | ||
| 970 | #define __NR_POSIX_SGI_reserved19 (__NR_POSIX + 312) | ||
| 971 | #define __NR_POSIX_SGI_reserved20 (__NR_POSIX + 313) | ||
| 972 | #define __NR_POSIX_SGI_reserved21 (__NR_POSIX + 314) | ||
| 973 | #define __NR_POSIX_SGI_reserved22 (__NR_POSIX + 315) | ||
| 974 | #define __NR_POSIX_SGI_reserved23 (__NR_POSIX + 316) | ||
| 975 | #define __NR_POSIX_SGI_reserved24 (__NR_POSIX + 317) | ||
| 976 | #define __NR_POSIX_SGI_reserved25 (__NR_POSIX + 318) | ||
| 977 | #define __NR_POSIX_SGI_reserved26 (__NR_POSIX + 319) | ||
| 978 | |||
| 979 | #endif /* _ASM_RISCOS_SYSCALL_H */ | ||
diff --git a/include/asm-mips/system.h b/include/asm-mips/system.h index 330c4e497af3..e8e5d4143377 100644 --- a/include/asm-mips/system.h +++ b/include/asm-mips/system.h | |||
| @@ -159,11 +159,21 @@ struct task_struct; | |||
| 159 | do { \ | 159 | do { \ |
| 160 | if (cpu_has_dsp) \ | 160 | if (cpu_has_dsp) \ |
| 161 | __save_dsp(prev); \ | 161 | __save_dsp(prev); \ |
| 162 | (last) = resume(prev, next, next->thread_info); \ | 162 | (last) = resume(prev, next, task_thread_info(next)); \ |
| 163 | if (cpu_has_dsp) \ | 163 | if (cpu_has_dsp) \ |
| 164 | __restore_dsp(current); \ | 164 | __restore_dsp(current); \ |
| 165 | } while(0) | 165 | } while(0) |
| 166 | 166 | ||
| 167 | /* | ||
| 168 | * On SMP systems, when the scheduler does migration-cost autodetection, | ||
| 169 | * it needs a way to flush as much of the CPU's caches as possible. | ||
| 170 | * | ||
| 171 | * TODO: fill this in! | ||
| 172 | */ | ||
| 173 | static inline void sched_cacheflush(void) | ||
| 174 | { | ||
| 175 | } | ||
| 176 | |||
| 167 | static inline unsigned long __xchg_u32(volatile int * m, unsigned int val) | 177 | static inline unsigned long __xchg_u32(volatile int * m, unsigned int val) |
| 168 | { | 178 | { |
| 169 | __u32 retval; | 179 | __u32 retval; |
diff --git a/include/asm-mips/thread_info.h b/include/asm-mips/thread_info.h index e6c24472e03f..1612b3fe1080 100644 --- a/include/asm-mips/thread_info.h +++ b/include/asm-mips/thread_info.h | |||
| @@ -97,8 +97,6 @@ register struct thread_info *__current_thread_info __asm__("$28"); | |||
| 97 | #endif | 97 | #endif |
| 98 | 98 | ||
| 99 | #define free_thread_info(info) kfree(info) | 99 | #define free_thread_info(info) kfree(info) |
| 100 | #define get_thread_info(ti) get_task_struct((ti)->task) | ||
| 101 | #define put_thread_info(ti) put_task_struct((ti)->task) | ||
| 102 | 100 | ||
| 103 | #endif /* !__ASSEMBLY__ */ | 101 | #endif /* !__ASSEMBLY__ */ |
| 104 | 102 | ||
diff --git a/include/asm-mips/vr41xx/capcella.h b/include/asm-mips/vr41xx/capcella.h index 5b55083c5281..d10ffda50de7 100644 --- a/include/asm-mips/vr41xx/capcella.h +++ b/include/asm-mips/vr41xx/capcella.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * capcella.h, Include file for ZAO Networks Capcella. | 2 | * capcella.h, Include file for ZAO Networks Capcella. |
| 3 | * | 3 | * |
| 4 | * Copyright (C) 2002-2004 Yoichi Yuasa <yuasa@hh.iij4u.or.jp> | 4 | * Copyright (C) 2002-2004 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> |
| 5 | * | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by | 7 | * it under the terms of the GNU General Public License as published by |
diff --git a/include/asm-mips/vr41xx/e55.h b/include/asm-mips/vr41xx/e55.h index ea37b56fc66d..558f2269bf37 100644 --- a/include/asm-mips/vr41xx/e55.h +++ b/include/asm-mips/vr41xx/e55.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * e55.h, Include file for CASIO CASSIOPEIA E-10/15/55/65. | 2 | * e55.h, Include file for CASIO CASSIOPEIA E-10/15/55/65. |
| 3 | * | 3 | * |
| 4 | * Copyright (C) 2002-2004 Yoichi Yuasa <yuasa@hh.iij4u.or.jp> | 4 | * Copyright (C) 2002-2004 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> |
| 5 | * | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by | 7 | * it under the terms of the GNU General Public License as published by |
diff --git a/include/asm-mips/vr41xx/giu.h b/include/asm-mips/vr41xx/giu.h index 8590885a7638..8109cda557dc 100644 --- a/include/asm-mips/vr41xx/giu.h +++ b/include/asm-mips/vr41xx/giu.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Include file for NEC VR4100 series General-purpose I/O Unit. | 2 | * Include file for NEC VR4100 series General-purpose I/O Unit. |
| 3 | * | 3 | * |
| 4 | * Copyright (C) 2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp> | 4 | * Copyright (C) 2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> |
| 5 | * | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by | 7 | * it under the terms of the GNU General Public License as published by |
diff --git a/include/asm-mips/vr41xx/mpc30x.h b/include/asm-mips/vr41xx/mpc30x.h index e6ac3c8e8bae..a6cbe4da6667 100644 --- a/include/asm-mips/vr41xx/mpc30x.h +++ b/include/asm-mips/vr41xx/mpc30x.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * mpc30x.h, Include file for Victor MP-C303/304. | 2 | * mpc30x.h, Include file for Victor MP-C303/304. |
| 3 | * | 3 | * |
| 4 | * Copyright (C) 2002-2004 Yoichi Yuasa <yuasa@hh.iij4u.or.jp> | 4 | * Copyright (C) 2002-2004 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> |
| 5 | * | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by | 7 | * it under the terms of the GNU General Public License as published by |
diff --git a/include/asm-mips/vr41xx/pci.h b/include/asm-mips/vr41xx/pci.h index c473aa78d1d4..6fc01ce19777 100644 --- a/include/asm-mips/vr41xx/pci.h +++ b/include/asm-mips/vr41xx/pci.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Include file for NEC VR4100 series PCI Control Unit. | 2 | * Include file for NEC VR4100 series PCI Control Unit. |
| 3 | * | 3 | * |
| 4 | * Copyright (C) 2004-2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp> | 4 | * Copyright (C) 2004-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> |
| 5 | * | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by | 7 | * it under the terms of the GNU General Public License as published by |
diff --git a/include/asm-mips/vr41xx/siu.h b/include/asm-mips/vr41xx/siu.h index 865cc07ddd7f..1fcf6e8082b4 100644 --- a/include/asm-mips/vr41xx/siu.h +++ b/include/asm-mips/vr41xx/siu.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Include file for NEC VR4100 series Serial Interface Unit. | 2 | * Include file for NEC VR4100 series Serial Interface Unit. |
| 3 | * | 3 | * |
| 4 | * Copyright (C) 2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp> | 4 | * Copyright (C) 2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> |
| 5 | * | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by | 7 | * it under the terms of the GNU General Public License as published by |
diff --git a/include/asm-mips/vr41xx/tb0219.h b/include/asm-mips/vr41xx/tb0219.h index 273c6392688f..b318b9612a83 100644 --- a/include/asm-mips/vr41xx/tb0219.h +++ b/include/asm-mips/vr41xx/tb0219.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * tb0219.h, Include file for TANBAC TB0219. | 2 | * tb0219.h, Include file for TANBAC TB0219. |
| 3 | * | 3 | * |
| 4 | * Copyright (C) 2002-2004 Yoichi Yuasa <yuasa@hh.iij4u.or.jp> | 4 | * Copyright (C) 2002-2004 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> |
| 5 | * | 5 | * |
| 6 | * Modified for TANBAC TB0219: | 6 | * Modified for TANBAC TB0219: |
| 7 | * Copyright (C) 2003 Megasolution Inc. <matsu@megasolution.jp> | 7 | * Copyright (C) 2003 Megasolution Inc. <matsu@megasolution.jp> |
diff --git a/include/asm-mips/vr41xx/tb0226.h b/include/asm-mips/vr41xx/tb0226.h index 0ff9a60ecacc..2513f450e2d6 100644 --- a/include/asm-mips/vr41xx/tb0226.h +++ b/include/asm-mips/vr41xx/tb0226.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * tb0226.h, Include file for TANBAC TB0226. | 2 | * tb0226.h, Include file for TANBAC TB0226. |
| 3 | * | 3 | * |
| 4 | * Copyright (C) 2002-2004 Yoichi Yuasa <yuasa@hh.iij4u.or.jp> | 4 | * Copyright (C) 2002-2004 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> |
| 5 | * | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by | 7 | * it under the terms of the GNU General Public License as published by |
diff --git a/include/asm-mips/vr41xx/vr41xx.h b/include/asm-mips/vr41xx/vr41xx.h index bd2723c30901..70828d5fae9c 100644 --- a/include/asm-mips/vr41xx/vr41xx.h +++ b/include/asm-mips/vr41xx/vr41xx.h | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | * Copyright (C) 2001, 2002 Paul Mundt | 7 | * Copyright (C) 2001, 2002 Paul Mundt |
| 8 | * Copyright (C) 2002 MontaVista Software, Inc. | 8 | * Copyright (C) 2002 MontaVista Software, Inc. |
| 9 | * Copyright (C) 2002 TimeSys Corp. | 9 | * Copyright (C) 2002 TimeSys Corp. |
| 10 | * Copyright (C) 2003-2005 Yoichi Yuasa <yuasa@hh.iij4u.or.jp> | 10 | * Copyright (C) 2003-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> |
| 11 | * | 11 | * |
| 12 | * This program is free software; you can redistribute it and/or modify it | 12 | * This program is free software; you can redistribute it and/or modify it |
| 13 | * under the terms of the GNU General Public License as published by the | 13 | * under the terms of the GNU General Public License as published by the |
diff --git a/include/asm-mips/vr41xx/vrc4173.h b/include/asm-mips/vr41xx/vrc4173.h index bb7a85c186e4..4d41a9c091d4 100644 --- a/include/asm-mips/vr41xx/vrc4173.h +++ b/include/asm-mips/vr41xx/vrc4173.h | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | * Copyright (C) 2000 Michael R. McDonald | 4 | * Copyright (C) 2000 Michael R. McDonald |
| 5 | * Copyright (C) 2001-2003 Montavista Software Inc. | 5 | * Copyright (C) 2001-2003 Montavista Software Inc. |
| 6 | * Author: Yoichi Yuasa <yyuasa@mvista.com, or source@mvista.com> | 6 | * Author: Yoichi Yuasa <yyuasa@mvista.com, or source@mvista.com> |
| 7 | * Copyright (C) 2004 Yoichi Yuasa <yuasa@hh.iij4u.or.jp> | 7 | * Copyright (C) 2004 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> |
| 8 | * Copyright (C) 2005 Ralf Baechle (ralf@linux-mips.org) | 8 | * Copyright (C) 2005 Ralf Baechle (ralf@linux-mips.org) |
| 9 | * | 9 | * |
| 10 | * This program is free software; you can redistribute it and/or modify | 10 | * This program is free software; you can redistribute it and/or modify |
diff --git a/include/asm-mips/vr41xx/workpad.h b/include/asm-mips/vr41xx/workpad.h index dfe01b43fb79..6bfa9c009a9b 100644 --- a/include/asm-mips/vr41xx/workpad.h +++ b/include/asm-mips/vr41xx/workpad.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * workpad.h, Include file for IBM WorkPad z50. | 2 | * workpad.h, Include file for IBM WorkPad z50. |
| 3 | * | 3 | * |
| 4 | * Copyright (C) 2002-2004 Yoichi Yuasa <yuasa@hh.iij4u.or.jp> | 4 | * Copyright (C) 2002-2004 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> |
| 5 | * | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by | 7 | * it under the terms of the GNU General Public License as published by |
