Subversion Repositories Kolibri OS

Rev

Rev 4874 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4874 Rev 6536
Line 1... Line 1...
1
.section .init
1
.section .init
Line 2... Line 2...
2
 
2
 
Line 3... Line 3...
3
.global __start
3
.global __crt_start
4
 
4
 
5
#tls:0  pid process id
5
#tls:0  pid process id
6
#tls:4  tid reserved for thread slot
6
#tls:4  tid reserved for thread slot
7
#tls:8  thread's stack low limit
7
#tls:8  thread's stack low limit
Line 8... Line 8...
8
#tls:12 thread's stack high limit
8
#tls:12 thread's stack high limit
9
#tls:16 reseved for libc
9
#tls:16 reseved for libc
10
 
10
 
11
.align 4
11
.align 4
12
__start:
12
__crt_start:
13
           movl  $68, %eax
13
           movl  $68, %eax
14
           movl  $12, %ebx
14
           movl  $12, %ebx
Line 36... Line 36...
36
           movl %eax, %fs:0        #save pid
36
           movl %eax, %fs:0        #save pid
37
 
37
 
Line 38... Line 38...
38
           addl $1024, %esp
38
           addl $1024, %esp
Line 39... Line 39...
39
 
39
 
40
           jmp  ___crt_startup
40
           jmp  ___libc_init
41
1:
41
1:
Line 42... Line 42...
42
           int3                    #trap to debugger
42
           int3                    #trap to debugger