summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/aim/locore64.S
diff options
context:
space:
mode:
authorandreast <andreast@FreeBSD.org>2012-01-20 22:34:19 +0000
committerandreast <andreast@FreeBSD.org>2012-01-20 22:34:19 +0000
commitcec8421d4715d2e43f8630ea6ad39766eeb4d0b6 (patch)
tree76275af2450ac7e58277331e71af5cce366f1f7d /sys/powerpc/aim/locore64.S
parentd22191faaa1982f92120c293792798a829424159 (diff)
downloadFreeBSD-src-cec8421d4715d2e43f8630ea6ad39766eeb4d0b6.zip
FreeBSD-src-cec8421d4715d2e43f8630ea6ad39766eeb4d0b6.tar.gz
This commit adds profiling support for powerpc64. Now we can do application
profiling and kernel profiling. To enable kernel profiling one has to build kgmon(8). I will enable the build once I managed to build and test powerpc (32-bit) kernels with profiling support. - add a powerpc64 PROF_PROLOGUE for _mcount. - add macros to avoid adding the PROF_PROLOGUE in certain assembly entries. - apply these macros where needed. - add size information to the MCOUNT function. MFC after: 3 weeks, together with r230291
Diffstat (limited to 'sys/powerpc/aim/locore64.S')
-rw-r--r--sys/powerpc/aim/locore64.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/powerpc/aim/locore64.S b/sys/powerpc/aim/locore64.S
index 64e4e62..83d9048 100644
--- a/sys/powerpc/aim/locore64.S
+++ b/sys/powerpc/aim/locore64.S
@@ -115,7 +115,7 @@ kernel_text:
* segment!
*/
.text
-ASENTRY(__start)
+ASENTRY_NOPROF(__start)
li 8,0
li 9,0x100
mtctr 9
@@ -202,7 +202,7 @@ tocbase:
* or the (currently used) C code optimized, so it doesn't use any non-volatile
* registers.
*/
-ASENTRY(setfault)
+ASENTRY_NOPROF(setfault)
mflr 0
mfcr 12
mfsprg 4,0
OpenPOWER on IntegriCloud