diff options
author | gingold | 2006-10-02 04:20:41 +0000 |
---|---|---|
committer | gingold | 2006-10-02 04:20:41 +0000 |
commit | b7ac1316494d84b7218c6a25fb5a15c2ff595c1b (patch) | |
tree | 5806bdabc2c7f9fa0af0cc76809d337220347eb2 /translate/grt/config | |
parent | 4562a047d324729789ba826c77e92c14dcb5d781 (diff) | |
download | ghdl-b7ac1316494d84b7218c6a25fb5a15c2ff595c1b.tar.gz ghdl-b7ac1316494d84b7218c6a25fb5a15c2ff595c1b.tar.bz2 ghdl-b7ac1316494d84b7218c6a25fb5a15c2ff595c1b.zip |
chkstk for linux
Diffstat (limited to 'translate/grt/config')
-rw-r--r-- | translate/grt/config/chkstk.S | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/translate/grt/config/chkstk.S b/translate/grt/config/chkstk.S new file mode 100644 index 0000000..1f29245 --- /dev/null +++ b/translate/grt/config/chkstk.S @@ -0,0 +1,20 @@ + .file "chkstk.S" + .version "01.01" + + .text + + /* Function called to loop on the process. */ + .align 4 + .type _chkstk,@function + .global _chkstk +_chkstk: + testl %eax,%eax + je _chkstk_zero + subl $4,%eax /* 4 bytes already used by call. */ + subl %eax,%esp + jmp *(%esp,%eax) +_chkstk_zero: + ret + .size _chkstk, . - _chkstk + + .ident "Written by T.Gingold" |