source:
trunk/enter.asm@
16
| Last change on this file since 16 was 2, checked in by , 15 years ago | |
|---|---|
| File size: 293 bytes | |
| Rev | Line | |
|---|---|---|
| [2] | 1 | section .text |
| 2 | global enter_section | |
| 3 | ||
| 4 | enter_section: | |
| 5 | enter 0, 0 ; 0 bytes of local stack space | |
| 6 | mov ebx,[ebp+8] ; first parameter to function | |
| 7 | ||
| 8 | spin: lock bts dword [ebx], 0 | |
| 9 | jc spin | |
| 10 | ||
| 11 | leave ; mov esp,ebp / pop ebp | |
| 12 | ret | |
| 13 |
Note:
See TracBrowser
for help on using the repository browser.