section .text
global enter_section

enter_section:
        enter 0, 0         ; 0 bytes of local stack space
        mov   ebx,[ebp+8]     ; first parameter to function

spin:   lock bts dword [ebx], 0
        jc spin

        leave                   ; mov esp,ebp / pop ebp
        ret     

