libk  Check-in [164a1a5cfe]

Overview
Comment:specialize signal numbers for MIPS
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 164a1a5cfef1b04fc8fe1e76d13a1b570fe47f4cd1d708bec9be65d557fc2874
User & Date: lexi on 2019-11-19 05:23:56
Other Links: manifest | tags
Context
2019-11-19
05:34
add freebsd signal numbers check-in: de2d78ff77 user: lexi tags: trunk
05:23
specialize signal numbers for MIPS check-in: 164a1a5cfe user: lexi tags: trunk
05:06
add posix signal numbers; continue work on kcli check-in: 8d478e0b3c user: lexi tags: trunk
Changes

Modified arch/posix.h from [093468646d] to [cb05e98dbe].

    41     41   #endif
    42     42   
    43     43   	/* platform flags */
    44     44   	posix_flag_linux_hugetlb = 0x40000
    45     45   };
    46     46   
    47     47   enum posix_signal {
    48         -	/* these numbers appear to be consistent across all
    49         -	 * platforms; we may have to specialize them if this
    50         -	 * assumption turns out to be untrue however. */
    51     48   	posix_signal_hangup = 1,
    52     49   	posix_signal_interrupt = 2,
    53     50   	posix_signal_quit = 3,
    54     51   	posix_signal_illegal = 4,
    55     52   	posix_signal_trap = 5,
    56     53   	posix_signal_abort = 6,
    57         -	posix_signal_bus = 7,
    58     54   	posix_signal_float = 8,
    59     55   	posix_signal_kill = 9,
    60         -	posix_signal_user_a = 10,
    61         -	posix_signal_user_b = 12,
    62     56   	posix_signal_segfault = 11,
    63     57   	posix_signal_pipe = 13,
    64     58   	posix_signal_alarm = 14,
    65     59   	posix_signal_terminate = 15,
    66         -	posix_signal_stack_fault = 16,
           60  +
           61  +#if KVarch == KA_arch_mips
           62  +	/* for some ungodly reason, some signal
           63  +	 * numbers on MIPS differ from most other
           64  +	 * architectures still in contemporary use */
           65  +	posix_signal_bus = 10,
           66  +	posix_signal_user_a = 16,
           67  +	posix_signal_user_b = 17,
           68  +	posix_signal_child = 18,
           69  +	posix_signal_continue = 25,
           70  +	posix_signal_stop = 23,
           71  +	posix_signal_terminal_stop = 24,
           72  +	posix_signal_tty_input = 26,
           73  +	posix_signal_tty_output = 27,
           74  +	posix_signal_io_urgent = 21,
           75  +	posix_signal_limit_cpu = 30,
           76  +	posix_signal_limit_space = 31,
           77  +	posix_signal_vt_alarm = 28,
           78  +	posix_signal_profile = 29,
           79  +	posix_signal_winch = 20,
           80  +	posix_signal_poll = 22,
           81  +	posix_signal_power = 19,
           82  +#else
           83  +	/* x86, ARM, and most others use these
           84  +	 * signal numbers */
           85  +	posix_signal_bus = 7,
           86  +	posix_signal_user_a = 10,
           87  +	posix_signal_user_b = 12,
    67     88   	posix_signal_child = 17,
    68     89   	posix_signal_continue = 18,
           90  +	posix_signal_stack_fault = 16,
    69     91   	posix_signal_stop = 19,
    70     92   	posix_signal_terminal_stop = 20,
    71     93   	posix_signal_tty_input = 21,
    72     94   	posix_signal_tty_output = 22,
    73     95   	posix_signal_io_urgent = 23,
    74     96   	posix_signal_limit_cpu = 24,
    75     97   	posix_signal_limit_space = 25,
    76     98   	posix_signal_vt_alarm = 26,
    77     99   	posix_signal_profile = 27,
    78    100   	posix_signal_winch = 28,
    79    101   	posix_signal_poll = 29,
    80    102   	posix_signal_power = 30,
    81         -	posix_signal_system = 31,
          103  +#endif
    82    104   };
    83    105   
    84    106   #endif
    85    107   #ifdef KFplatform_define_types
    86    108   
    87    109   /* platform types */
    88    110