Changeset 8476a8d in mainline


Ignore:
Timestamp:
2008-03-15T11:17:50Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
308cdd1
Parents:
1dbfe98
Message:

Fix jmp_buf vs. context structure in comment.

Location:
uspace/lib/libc/arch/ia32/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/arch/ia32/src/fibril.S

    r1dbfe98 r8476a8d  
    4444        movl 4(%esp),%edx       # address of the context variable to save context to
    4545
    46                 # save registers to given structure
     46                # save registers to the context structure
    4747        CONTEXT_SAVE_ARCH_CORE %edx %eax
    4848
     
    6464        movl 4(%esp),%eax       # address of the context variable to restore context from
    6565
    66                 # restore registers from jmp_buf
     66                # restore registers from the context structure
    6767        CONTEXT_RESTORE_ARCH_CORE %eax %edx
    6868
  • uspace/lib/libc/arch/ia32/src/setjmp.S

    r1dbfe98 r8476a8d  
    3636setjmp:
    3737        movl 0(%esp),%eax       # save pc value into eax       
    38         movl 4(%esp),%edx       # address of the context variable to save context to
     38        movl 4(%esp),%edx       # address of the jmp_buf structure to save context to
    3939
    40                 # save registers to given structure
     40                # save registers to the jmp_buf structure
    4141        CONTEXT_SAVE_ARCH_CORE %edx %eax
    4242
     
    5050        movl 8(%esp), %eax      # put return value into eax     
    5151
    52                 # restore registers from jmp_buf
     52                # restore registers from the jmp_buf structure
    5353        CONTEXT_RESTORE_ARCH_CORE %ecx %edx
    5454
Note: See TracChangeset for help on using the changeset viewer.