Implement __bb_init_func. This is a fairly straightforward conversion
of the i386 version.
This commit is contained in:
parent
907cb02fe9
commit
402705521a
@ -653,3 +653,22 @@ ENTRY(longjmp)
|
||||
incl %eax
|
||||
ret
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Support for BB-profiling (gcc -a). The kernbb program will extract
|
||||
* the data from the kernel.
|
||||
*/
|
||||
|
||||
.data
|
||||
ALIGN_DATA
|
||||
.globl bbhead
|
||||
bbhead:
|
||||
.quad 0
|
||||
|
||||
.text
|
||||
NON_GPROF_ENTRY(__bb_init_func)
|
||||
movq $1,(%rdi)
|
||||
movq bbhead,%rax
|
||||
movq %rax,32(%rdi)
|
||||
movq %rdi,bbhead
|
||||
NON_GPROF_RET
|
||||
|
Loading…
Reference in New Issue
Block a user