Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / compat / osf1 / README.mach-traps
blob94452a2b617722c4ce3e488f708e08f57b381a0f
1 $NetBSD: README.mach-traps,v 1.2 1999/03/23 09:19:25 itohy Exp $
3 Some Alpha AXP OSF/1 binaries directly use the facilities provided by
4 the Mach kernel that is the basis for OSF/1.  These include (but are
5 surely not limited to) 'dd', 'ps', and 'w'.
7 Invariably, the symptom that these binaries display is that they crash
8 with an "unimplemented system call" trap (SIGSYS signal) for a syscall
9 that has a negative number.  In general, binaries that use the Mach
10 syscalls appear to invoke task_self() as their first syscall.
12 Note that system call numbers are now range-bounded by masking off the
13 high bits, so negative system call numbers will appear in the high
14 end of the system call number range, thanks to the wonders of two's
15 compliment arithmetic. System call -10, for example, will appear as
16 "CALL  [502]" in kdump output.
18 The name, number, and number of arguments for each Mach syscall is
19 given below; this information was gleaned by looking through the OSF/1
20 libmach.a's object files with dbx, then double-checked against the
21 contents of OSF/1's <mach/syscall_sw.h>.
23 These calls would be very difficult to implement properly in the
24 OSF/1 emulation code; by its very nature, NetBSD is not Mach, and we
25 don't and can't provide the underlying facilities that it does.
27 -- cgd
29 trap name                       number  nargs   notes
30 ---- ----                       ------  -----   -----
31 task_self                       -10     0
32 thread_reply                    -11     0
33 task_notify                     -12     0
34 thread_self                     -13     0
35 msg_send_old                    -14     3
36 msg_receive_old                 -15     3
37 msg_rpc_old                     -16     5
38 msg_send_trap                   -20     4
39 msg_receive_trap                -21     5
40 msg_rpc_trap                    -22     6
41 lw_wire                         -30     3
42 lw_unwire                       -31     1
43 nxm_task_init                   -33     2
44 nxm_sched_thread                -34     1
45 nxm_idle                        -35     1
46 nxm_wakeup_idle                 -36     1
47 nxm_set_pthid                   -37     2
48 nxm_thread_kill                 -38     2
49 nxm_thread_block                -39     1
50 nxm_thread_wakeup               -40     1
51 inode_swap_preference           -40     3       old call?
52 init_process                    -41     0
53 map_fd                          -43     5
54 nxm_resched                     -44     2
55 htg_unix_syscall                -52     3
56 host_self                       -55     1
57 host_priv_self                  -56     1
58 swtch_pri                       -59     1
59 swtch                           -60     0
60 thread_switch                   -61     3
61 semop_fast                      -62     4
62 mach_sctimes_0                  -70     0       only if MACH_SCTIMES defined
63 mach_sctimes_1                  -71     1       only if MACH_SCTIMES defined
64 mach_sctimes_2                  -72     2       only if MACH_SCTIMES defined
65 mach_sctimes_3                  -73     3       only if MACH_SCTIMES defined
66 mach_sctimes_4                  -74     4       only if MACH_SCTIMES defined
67 mach_sctimes_5                  -75     5       only if MACH_SCTIMES defined
68 mach_sctimes_6                  -76     6       only if MACH_SCTIMES defined
69 mach_sctimes_7                  -77     0       only if MACH_SCTIMES defined
70 mach_sctimes_8                  -78     6       only if MACH_SCTIMES defined
71 mach_sctimes_9                  -79     1       only if MACH_SCTIMES defined
72 mach_sctimes_10                 -80     2       only if MACH_SCTIMES defined
73 mach_sctimes_11                 -81     2       only if MACH_SCTIMES defined
74 mach_sctimes_port_alloc_dealloc -82     1       only if MACH_SCTIMES defined