diff options
author | Sverker Eriksson <[email protected]> | 2012-01-18 17:07:35 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2012-02-21 12:22:57 +0100 |
commit | 272a61ce4cfa7e92a037fbf71bc79ec0456f8b2b (patch) | |
tree | 7aa337eccd647b91e8a91bc1dce8c1be29df3631 /erts/emulator/beam/erl_process.c | |
parent | 166032bddf9a14f3ea6252724532039a1113612d (diff) | |
download | otp-272a61ce4cfa7e92a037fbf71bc79ec0456f8b2b.tar.gz otp-272a61ce4cfa7e92a037fbf71bc79ec0456f8b2b.tar.bz2 otp-272a61ce4cfa7e92a037fbf71bc79ec0456f8b2b.zip |
erts: Refactor new helper function erts_init_trap_export
Diffstat (limited to 'erts/emulator/beam/erl_process.c')
-rw-r--r-- | erts/emulator/beam/erl_process.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c index 138acfeb2c..44a99e1f84 100644 --- a/erts/emulator/beam/erl_process.c +++ b/erts/emulator/beam/erl_process.c @@ -9599,13 +9599,8 @@ init_processes_bif(void) + 1); /* processes_trap/2 is a hidden BIF that the processes/0 BIF traps to. */ - sys_memset((void *) &processes_trap_export, 0, sizeof(Export)); - processes_trap_export.address = &processes_trap_export.code[3]; - processes_trap_export.code[0] = am_erlang; - processes_trap_export.code[1] = am_processes_trap; - processes_trap_export.code[2] = 2; - processes_trap_export.code[3] = (BeamInstr) em_apply_bif; - processes_trap_export.code[4] = (BeamInstr) &processes_trap; + erts_init_trap_export(&processes_trap_export, am_erlang, am_processes_trap, 2, + &processes_trap); #if ERTS_PROCESSES_BIF_DEBUGLEVEL >= ERTS_PROCS_DBGLVL_CHK_TERM_PROC_LIST erts_get_emu_time(&debug_tv_start); |