Changes in uspace/lib/libc/arch/ia32/src/entry.s [47246f4:c98e6ee] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/arch/ia32/src/entry.s
r47246f4 rc98e6ee 27 27 # 28 28 29 INTEL_CPUID_STANDARD = 130 INTEL_SEP = 1131 32 29 .section .init, "ax" 33 30 … … 38 35 ## User-space task entry point 39 36 # 40 # %e dicontains the PCB pointer37 # %ebx contains the PCB pointer 41 38 # 42 39 __entry: … … 47 44 # Do not set %gs, it contains descriptor that can see TLS 48 45 49 # Detect the mechanism used for making syscalls50 movl $(INTEL_CPUID_STANDARD), %eax51 cpuid52 bt $(INTEL_SEP), %edx53 jnc 0f54 leal __syscall_fast_func, %eax55 movl $__syscall_fast, (%eax)56 0:57 #58 # Create the first stack frame.59 #60 pushl $061 movl %esp, %ebp62 63 46 # Pass the PCB pointer to __main as the first argument 64 pushl %e di47 pushl %ebx 65 48 call __main 66 49
Note:
See TracChangeset
for help on using the changeset viewer.