diff options
author | Ori Bernstein <ori@eigenstate.org> | 2015-06-28 14:26:16 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2015-06-28 14:26:16 -0700 |
commit | b05bd318302a3b5043a56479d20261d81bc27012 (patch) | |
tree | e6a6532e0fd6255321fd6335464e8e57c28548cf /rt | |
parent | d17587d89ed49739392eb6d768d583c7f5955d2c (diff) | |
download | mc-b05bd318302a3b5043a56479d20261d81bc27012.tar.gz |
Implement '__init__' functions.
Diffstat (limited to 'rt')
-rw-r--r-- | rt/_myrrt-plan9.s | 1 | ||||
-rw-r--r-- | rt/start-linux.s | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/rt/_myrrt-plan9.s b/rt/_myrrt-plan9.s index 7fd14a3..4f21b9c 100644 --- a/rt/_myrrt-plan9.s +++ b/rt/_myrrt-plan9.s @@ -57,6 +57,7 @@ TEXT _main(SB), 1, $(2*8+NPRIVATES*8) PUSHQ R13 PUSHQ DX + CALL __init__(SB) CALL main(SB) POPQ DX POPQ R13 diff --git a/rt/start-linux.s b/rt/start-linux.s index 7583466..963d21b 100644 --- a/rt/start-linux.s +++ b/rt/start-linux.s @@ -67,6 +67,8 @@ _start: pushq %rdx /* enter the main program */ + call __init__ + /* enter the main program */ call main /* exit(0) */ xorq %rdi,%rdi |