comparison contextSwitch.s @ 157:8cc3d3812c8a

smaller Hists for malloc, free and plugin
author Merten Sach <msach@mailbox.tu-berlin.de>
date Thu, 06 Oct 2011 15:58:34 +0200
parents dbfc8382d546
children
comparison
equal deleted inserted replaced
4:043fc655dfc8 5:2a6ab2131695
92 .globl asmTerminateCoreLoop 92 .globl asmTerminateCoreLoop
93 asmTerminateCoreLoop: 93 asmTerminateCoreLoop:
94 #VirtProcr in %rdi 94 #VirtProcr in %rdi
95 movq 0x38(%rdi), %rsp #restore stack pointer 95 movq 0x38(%rdi), %rsp #restore stack pointer
96 movq 0x30(%rdi), %rbp #restore frame pointer 96 movq 0x30(%rdi), %rbp #restore frame pointer
97 movq $_VMSMasterEnv, %rcx
98 movq (%rcx) , %rcx
99 movl $0x0 , 0x44(%rcx) #release lock
97 movq $terminateCoreLoop, %rax 100 movq $terminateCoreLoop, %rax
98 jmp *%rax #jmp to CoreLoop 101 jmp *%rax #jmp to CoreLoop
99 102
100 103
101 /* 104 /*
106 asmTerminateCoreLoopSeq: 109 asmTerminateCoreLoopSeq:
107 #VirtProcr in %rdi 110 #VirtProcr in %rdi
108 movq 0x38(%rdi), %rsp #restore stack pointer 111 movq 0x38(%rdi), %rsp #restore stack pointer
109 movq 0x30(%rdi), %rbp #restore frame pointer 112 movq 0x30(%rdi), %rbp #restore frame pointer
110 #argument is in %rdi 113 #argument is in %rdi
111 call VMS__dissipate_procr
112 movq %rbp , %rsp #goto the coreLoops stack 114 movq %rbp , %rsp #goto the coreLoops stack
113 pop %rbp #restore the old framepointer 115 pop %rbp #restore the old framepointer
114 ret #return from core loop 116 ret #return from core loop
115 117