diff options
author | Hirokazu Takata <takata@linux-m32r.org> | 2007-08-19 20:12:46 -0400 |
---|---|---|
committer | Hirokazu Takata <takata@linux-m32r.org> | 2007-09-02 22:30:19 -0400 |
commit | 9990b48a403fa465b4ff600cd8a7b5108d1bc135 (patch) | |
tree | 052986aad67ccb5d31cecaf528e4f00ca3be794e /arch/m32r/kernel/entry.S | |
parent | de2232edb8d82aca938570eb6f136e2d70a26418 (diff) |
m32r: Separate syscall table from entry.S
- Separate sys_call_table from arch/m32r/kernel/entry.S and
move it to arch/m32r/kernel/system_call.S.
- Change sys_call_table section from .data to .rodata.
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Diffstat (limited to 'arch/m32r/kernel/entry.S')
-rw-r--r-- | arch/m32r/kernel/entry.S | 291 |
1 files changed, 4 insertions, 287 deletions
diff --git a/arch/m32r/kernel/entry.S b/arch/m32r/kernel/entry.S index 450b106ee613..c46cfaa763c3 100644 --- a/arch/m32r/kernel/entry.S +++ b/arch/m32r/kernel/entry.S | |||
@@ -109,6 +109,8 @@ | |||
109 | #define SP(reg) @(0x68,reg) | 109 | #define SP(reg) @(0x68,reg) |
110 | #define ORIG_R0(reg) @(0x6C,reg) | 110 | #define ORIG_R0(reg) @(0x6C,reg) |
111 | 111 | ||
112 | #define nr_syscalls ((syscall_table_size)/4) | ||
113 | |||
112 | #ifdef CONFIG_PREEMPT | 114 | #ifdef CONFIG_PREEMPT |
113 | #define preempt_stop(x) CLI(x) | 115 | #define preempt_stop(x) CLI(x) |
114 | #else | 116 | #else |
@@ -534,292 +536,7 @@ ENTRY(cache_flushing_handler) | |||
534 | pop r0 | 536 | pop r0 |
535 | rte | 537 | rte |
536 | 538 | ||
537 | .data | 539 | .section .rodata,"a" |
538 | ENTRY(sys_call_table) | 540 | #include "syscall_table.S" |
539 | .long sys_restart_syscall /* 0 - old "setup()" system call*/ | ||
540 | .long sys_exit | ||
541 | .long sys_fork | ||
542 | .long sys_read | ||
543 | .long sys_write | ||
544 | .long sys_open /* 5 */ | ||
545 | .long sys_close | ||
546 | .long sys_waitpid | ||
547 | .long sys_creat | ||
548 | .long sys_link | ||
549 | .long sys_unlink /* 10 */ | ||
550 | .long sys_execve | ||
551 | .long sys_chdir | ||
552 | .long sys_time | ||
553 | .long sys_mknod | ||
554 | .long sys_chmod /* 15 */ | ||
555 | .long sys_ni_syscall /* lchown16 syscall holder */ | ||
556 | .long sys_ni_syscall /* old break syscall holder */ | ||
557 | .long sys_ni_syscall /* old stat syscall holder */ | ||
558 | .long sys_lseek | ||
559 | .long sys_getpid /* 20 */ | ||
560 | .long sys_mount | ||
561 | .long sys_oldumount | ||
562 | .long sys_ni_syscall /* setuid16 syscall holder */ | ||
563 | .long sys_ni_syscall /* getuid16 syscall holder */ | ||
564 | .long sys_stime /* 25 */ | ||
565 | .long sys_ptrace | ||
566 | .long sys_alarm | ||
567 | .long sys_ni_syscall /* old fstat syscall holder */ | ||
568 | .long sys_pause | ||
569 | .long sys_utime /* 30 */ | ||
570 | .long sys_ni_syscall /* old stty syscall holder */ | ||
571 | .long sys_cachectl /* for M32R */ /* old gtty syscall holder */ | ||
572 | .long sys_access | ||
573 | .long sys_ni_syscall /* nice syscall holder */ | ||
574 | .long sys_ni_syscall /* 35 - old ftime syscall holder */ | ||
575 | .long sys_sync | ||
576 | .long sys_kill | ||
577 | .long sys_rename | ||
578 | .long sys_mkdir | ||
579 | .long sys_rmdir /* 40 */ | ||
580 | .long sys_dup | ||
581 | .long sys_pipe | ||
582 | .long sys_times | ||
583 | .long sys_ni_syscall /* old prof syscall holder */ | ||
584 | .long sys_brk /* 45 */ | ||
585 | .long sys_ni_syscall /* setgid16 syscall holder */ | ||
586 | .long sys_getgid /* will be unused */ | ||
587 | .long sys_ni_syscall /* signal syscall holder */ | ||
588 | .long sys_ni_syscall /* geteuid16 syscall holder */ | ||
589 | .long sys_ni_syscall /* 50 - getegid16 syscall holder */ | ||
590 | .long sys_acct | ||
591 | .long sys_umount /* recycled never used phys() */ | ||
592 | .long sys_ni_syscall /* old lock syscall holder */ | ||
593 | .long sys_ioctl | ||
594 | .long sys_fcntl /* 55 - will be unused */ | ||
595 | .long sys_ni_syscall /* mpx syscall holder */ | ||
596 | .long sys_setpgid | ||
597 | .long sys_ni_syscall /* old ulimit syscall holder */ | ||
598 | .long sys_ni_syscall /* sys_olduname */ | ||
599 | .long sys_umask /* 60 */ | ||
600 | .long sys_chroot | ||
601 | .long sys_ustat | ||
602 | .long sys_dup2 | ||
603 | .long sys_getppid | ||
604 | .long sys_getpgrp /* 65 */ | ||
605 | .long sys_setsid | ||
606 | .long sys_ni_syscall /* sigaction syscall holder */ | ||
607 | .long sys_ni_syscall /* sgetmask syscall holder */ | ||
608 | .long sys_ni_syscall /* ssetmask syscall holder */ | ||
609 | .long sys_ni_syscall /* 70 - setreuid16 syscall holder */ | ||
610 | .long sys_ni_syscall /* setregid16 syscall holder */ | ||
611 | .long sys_ni_syscall /* sigsuspend syscall holder */ | ||
612 | .long sys_ni_syscall /* sigpending syscall holder */ | ||
613 | .long sys_sethostname | ||
614 | .long sys_setrlimit /* 75 */ | ||
615 | .long sys_getrlimit/*will be unused*/ | ||
616 | .long sys_getrusage | ||
617 | .long sys_gettimeofday | ||
618 | .long sys_settimeofday | ||
619 | .long sys_ni_syscall /* 80 - getgroups16 syscall holder */ | ||
620 | .long sys_ni_syscall /* setgroups16 syscall holder */ | ||
621 | .long sys_ni_syscall /* sys_oldselect */ | ||
622 | .long sys_symlink | ||
623 | .long sys_ni_syscall /* old lstat syscall holder */ | ||
624 | .long sys_readlink /* 85 */ | ||
625 | .long sys_uselib | ||
626 | .long sys_swapon | ||
627 | .long sys_reboot | ||
628 | .long sys_ni_syscall /* readdir syscall holder */ | ||
629 | .long sys_ni_syscall /* 90 - old_mmap syscall holder */ | ||
630 | .long sys_munmap | ||
631 | .long sys_truncate | ||
632 | .long sys_ftruncate | ||
633 | .long sys_fchmod | ||
634 | .long sys_ni_syscall /* 95 - fchwon16 syscall holder */ | ||
635 | .long sys_getpriority | ||
636 | .long sys_setpriority | ||
637 | .long sys_ni_syscall /* old profil syscall holder */ | ||
638 | .long sys_statfs | ||
639 | .long sys_fstatfs /* 100 */ | ||
640 | .long sys_ni_syscall /* ioperm syscall holder */ | ||
641 | .long sys_socketcall | ||
642 | .long sys_syslog | ||
643 | .long sys_setitimer | ||
644 | .long sys_getitimer /* 105 */ | ||
645 | .long sys_newstat | ||
646 | .long sys_newlstat | ||
647 | .long sys_newfstat | ||
648 | .long sys_ni_syscall /* old uname syscall holder */ | ||
649 | .long sys_ni_syscall /* 110 - iopl syscall holder */ | ||
650 | .long sys_vhangup | ||
651 | .long sys_ni_syscall /* idle syscall holder */ | ||
652 | .long sys_ni_syscall /* vm86old syscall holder */ | ||
653 | .long sys_wait4 | ||
654 | .long sys_swapoff /* 115 */ | ||
655 | .long sys_sysinfo | ||
656 | .long sys_ipc | ||
657 | .long sys_fsync | ||
658 | .long sys_ni_syscall /* sigreturn syscall holder */ | ||
659 | .long sys_clone /* 120 */ | ||
660 | .long sys_setdomainname | ||
661 | .long sys_newuname | ||
662 | .long sys_ni_syscall /* modify_ldt syscall holder */ | ||
663 | .long sys_adjtimex | ||
664 | .long sys_mprotect /* 125 */ | ||
665 | .long sys_ni_syscall /* sigprocmask syscall holder */ | ||
666 | .long sys_ni_syscall /* create_module syscall holder */ | ||
667 | .long sys_init_module | ||
668 | .long sys_delete_module | ||
669 | .long sys_ni_syscall /* 130 - get_kernel_syms */ | ||
670 | .long sys_quotactl | ||
671 | .long sys_getpgid | ||
672 | .long sys_fchdir | ||
673 | .long sys_bdflush | ||
674 | .long sys_sysfs /* 135 */ | ||
675 | .long sys_personality | ||
676 | .long sys_ni_syscall /* afs_syscall syscall holder */ | ||
677 | .long sys_ni_syscall /* setfsuid16 syscall holder */ | ||
678 | .long sys_ni_syscall /* setfsgid16 syscall holder */ | ||
679 | .long sys_llseek /* 140 */ | ||
680 | .long sys_getdents | ||
681 | .long sys_select | ||
682 | .long sys_flock | ||
683 | .long sys_msync | ||
684 | .long sys_readv /* 145 */ | ||
685 | .long sys_writev | ||
686 | .long sys_getsid | ||
687 | .long sys_fdatasync | ||
688 | .long sys_sysctl | ||
689 | .long sys_mlock /* 150 */ | ||
690 | .long sys_munlock | ||
691 | .long sys_mlockall | ||
692 | .long sys_munlockall | ||
693 | .long sys_sched_setparam | ||
694 | .long sys_sched_getparam /* 155 */ | ||
695 | .long sys_sched_setscheduler | ||
696 | .long sys_sched_getscheduler | ||
697 | .long sys_sched_yield | ||
698 | .long sys_sched_get_priority_max | ||
699 | .long sys_sched_get_priority_min /* 160 */ | ||
700 | .long sys_sched_rr_get_interval | ||
701 | .long sys_nanosleep | ||
702 | .long sys_mremap | ||
703 | .long sys_ni_syscall /* setresuid16 syscall holder */ | ||
704 | .long sys_ni_syscall /* 165 - getresuid16 syscall holder */ | ||
705 | .long sys_tas /* vm86 syscall holder */ | ||
706 | .long sys_ni_syscall /* query_module syscall holder */ | ||
707 | .long sys_poll | ||
708 | .long sys_nfsservctl | ||
709 | .long sys_setresgid /* 170 */ | ||
710 | .long sys_getresgid | ||
711 | .long sys_prctl | ||
712 | .long sys_rt_sigreturn | ||
713 | .long sys_rt_sigaction | ||
714 | .long sys_rt_sigprocmask /* 175 */ | ||
715 | .long sys_rt_sigpending | ||
716 | .long sys_rt_sigtimedwait | ||
717 | .long sys_rt_sigqueueinfo | ||
718 | .long sys_rt_sigsuspend | ||
719 | .long sys_pread64 /* 180 */ | ||
720 | .long sys_pwrite64 | ||
721 | .long sys_ni_syscall /* chown16 syscall holder */ | ||
722 | .long sys_getcwd | ||
723 | .long sys_capget | ||
724 | .long sys_capset /* 185 */ | ||
725 | .long sys_sigaltstack | ||
726 | .long sys_sendfile | ||
727 | .long sys_ni_syscall /* streams1 */ | ||
728 | .long sys_ni_syscall /* streams2 */ | ||
729 | .long sys_vfork /* 190 */ | ||
730 | .long sys_getrlimit | ||
731 | .long sys_mmap2 | ||
732 | .long sys_truncate64 | ||
733 | .long sys_ftruncate64 | ||
734 | .long sys_stat64 /* 195 */ | ||
735 | .long sys_lstat64 | ||
736 | .long sys_fstat64 | ||
737 | .long sys_lchown | ||
738 | .long sys_getuid | ||
739 | .long sys_getgid /* 200 */ | ||
740 | .long sys_geteuid | ||
741 | .long sys_getegid | ||
742 | .long sys_setreuid | ||
743 | .long sys_setregid | ||
744 | .long sys_getgroups /* 205 */ | ||
745 | .long sys_setgroups | ||
746 | .long sys_fchown | ||
747 | .long sys_setresuid | ||
748 | .long sys_getresuid | ||
749 | .long sys_setresgid /* 210 */ | ||
750 | .long sys_getresgid | ||
751 | .long sys_chown | ||
752 | .long sys_setuid | ||
753 | .long sys_setgid | ||
754 | .long sys_setfsuid /* 215 */ | ||
755 | .long sys_setfsgid | ||
756 | .long sys_pivot_root | ||
757 | .long sys_mincore | ||
758 | .long sys_madvise | ||
759 | .long sys_getdents64 /* 220 */ | ||
760 | .long sys_fcntl64 | ||
761 | .long sys_ni_syscall /* reserved for TUX */ | ||
762 | .long sys_ni_syscall /* Reserved for Security */ | ||
763 | .long sys_gettid | ||
764 | .long sys_readahead /* 225 */ | ||
765 | .long sys_setxattr | ||
766 | .long sys_lsetxattr | ||
767 | .long sys_fsetxattr | ||
768 | .long sys_getxattr | ||
769 | .long sys_lgetxattr /* 230 */ | ||
770 | .long sys_fgetxattr | ||
771 | .long sys_listxattr | ||
772 | .long sys_llistxattr | ||
773 | .long sys_flistxattr | ||
774 | .long sys_removexattr /* 235 */ | ||
775 | .long sys_lremovexattr | ||
776 | .long sys_fremovexattr | ||
777 | .long sys_tkill | ||
778 | .long sys_sendfile64 | ||
779 | .long sys_futex /* 240 */ | ||
780 | .long sys_sched_setaffinity | ||
781 | .long sys_sched_getaffinity | ||
782 | .long sys_ni_syscall /* reserved for "set_thread_area" system call */ | ||
783 | .long sys_ni_syscall /* reserved for "get_thread_area" system call */ | ||
784 | .long sys_io_setup /* 245 */ | ||
785 | .long sys_io_destroy | ||
786 | .long sys_io_getevents | ||
787 | .long sys_io_submit | ||
788 | .long sys_io_cancel | ||
789 | .long sys_fadvise64 /* 250 */ | ||
790 | .long sys_ni_syscall | ||
791 | .long sys_exit_group | ||
792 | .long sys_lookup_dcookie | ||
793 | .long sys_epoll_create | ||
794 | .long sys_epoll_ctl /* 255 */ | ||
795 | .long sys_epoll_wait | ||
796 | .long sys_remap_file_pages | ||
797 | .long sys_set_tid_address | ||
798 | .long sys_timer_create | ||
799 | .long sys_timer_settime /* 260 */ | ||
800 | .long sys_timer_gettime | ||
801 | .long sys_timer_getoverrun | ||
802 | .long sys_timer_delete | ||
803 | .long sys_clock_settime | ||
804 | .long sys_clock_gettime /* 265 */ | ||
805 | .long sys_clock_getres | ||
806 | .long sys_clock_nanosleep | ||
807 | .long sys_statfs64 | ||
808 | .long sys_fstatfs64 | ||
809 | .long sys_tgkill /* 270 */ | ||
810 | .long sys_utimes | ||
811 | .long sys_fadvise64_64 | ||
812 | .long sys_ni_syscall /* Reserved for sys_vserver */ | ||
813 | .long sys_ni_syscall /* Reserved for sys_mbind */ | ||
814 | .long sys_ni_syscall /* Reserved for sys_get_mempolicy */ | ||
815 | .long sys_ni_syscall /* Reserved for sys_set_mempolicy */ | ||
816 | .long sys_mq_open | ||
817 | .long sys_mq_unlink | ||
818 | .long sys_mq_timedsend | ||
819 | .long sys_mq_timedreceive /* 280 */ | ||
820 | .long sys_mq_notify | ||
821 | .long sys_mq_getsetattr | ||
822 | .long sys_ni_syscall /* reserved for kexec */ | ||
823 | .long sys_waitid | ||
824 | 541 | ||
825 | syscall_table_size=(.-sys_call_table) | 542 | syscall_table_size=(.-sys_call_table) |