diff --git a/sys/amd64/amd64/support.S b/sys/amd64/amd64/support.S index ab45e56a05f2..d3522ec52e0b 100644 --- a/sys/amd64/amd64/support.S +++ b/sys/amd64/amd64/support.S @@ -699,25 +699,6 @@ ENTRY(longjmp) ret END(longjmp) -/* - * 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 - /* * Support for reading MSRs in the safe manner. */ diff --git a/sys/i386/i386/support.s b/sys/i386/i386/support.s index 29f1f407fbe8..0c55f6f6b733 100644 --- a/sys/i386/i386/support.s +++ b/sys/i386/i386/support.s @@ -789,26 +789,6 @@ ENTRY(longjmp) ret END(longjmp) -/* - * Support for BB-profiling (gcc -a). The kernbb program will extract - * the data from the kernel. - */ - - .data - ALIGN_DATA - .globl bbhead -bbhead: - .long 0 - - .text -NON_GPROF_ENTRY(__bb_init_func) - movl 4(%esp),%eax - movl $1,(%eax) - movl bbhead,%edx - movl %edx,16(%eax) - movl %eax,bbhead - NON_GPROF_RET - /* * Support for reading MSRs in the safe manner. */