1
###############################################################################
3
# Fast profiling interrupt handler
5
# Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
6
# Written by David Howells (dhowells@redhat.com)
8
# This program is free software; you can redistribute it and/or
9
# modify it under the terms of the GNU General Public Licence
10
# as published by the Free Software Foundation; either version
11
# 2 of the Licence, or (at your option) any later version.
13
###############################################################################
14
#include <linux/sys.h>
15
#include <linux/linkage.h>
16
#include <asm/segment.h>
18
#include <asm/intctl-regs.h>
19
#include <asm/timer-regs.h>
27
###############################################################################
29
# Profiling interrupt entry point
30
# - intended to run at interrupt priority 1
32
###############################################################################
33
ENTRY(profile_handler)
41
# do nothing if there's no buffer
47
# calculate relative position in text segment
56
# increment the appropriate profile bucket
64
movbu d2,(TM11ICR) # ACK the interrupt