Changeset 25f9823 in mainline for libc/arch/ia32/src/entry.s


Ignore:
Timestamp:
2006-05-17T21:52:56Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2b399cc
Parents:
04552a80
Message:

create special entry point for drivers (don't initialize I/O)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libc/arch/ia32/src/entry.s

    r04552a80 r25f9823  
    3232
    3333.globl __entry
     34.globl __entry_driver
    3435
    3536## User-space task entry point
     
    4344        # Do not set %gs, it contains descriptor that can see TLS
    4445       
    45         call __main     
     46        call __main
     47        call __io_init
    4648        call main
    4749        call __exit
    4850       
    49 .end __entry
     51__entry_driver:
     52        mov %ss, %ax
     53        mov %ax, %ds
     54        mov %ax, %es
     55        mov %ax, %fs
     56        # Do not set %gs, it contains descriptor that can see TLS
     57       
     58        call __main
     59        call main
     60        call __exit
Note: See TracChangeset for help on using the changeset viewer.