# This file may be executed from within in dsedb using the source command.
#
# This is the patch required to make the interupt driven profiler stuff work.
# It was generated by the code at _trap_patch: in badma.c To use this, build
# both library and app with -pg -DPG
#
# pload <app>.elf
#
# 0909 version
# sw 80000254 3c1a8000 7f5d10c0 7f5f10d0 7f4110e0 40017000 3c1a2020 1000ffea af41fffc
# sw 80000200 10000014
# sw 80000208 10000012 00000000
# sw 80000200 00000000
#
# 1020 version
#
# sw 80000254 3c1a8000 7f5d1100 7f5f1110 7f411120 40017000 3c1a2020 1000ffea af41fffc
# sw 80000200 10000014
# sw 80000208 10000012 00000000
# sw 80000200 00000000
#
# 1228 & 0125 version
#sw 80000254 3c1a8000 7f5d10c0 7f5f10d0 7f4110e0 40017000 3c1a2020 1000ffea af41fffc
#sw 80000200 10000014
#sw 80000208 10000012 00000000
#sw 80000200 00000000
#
# 1.65 version
#sw 80000254 3c1a8000 7f5d10c0 7f5f10d0 7f4110e0 40017000 3c1a2010 1000ffea af41fffc
#sw 80000200 10000014
#sw 80000208 10000012 00000000
#sw 80000200 00000000
#
# 2.1.4 version
#sw 80000254 3c1a8000 7f5d10c0 7f5f10d0 7f4110e0 40017000 3c1a2010 1000ffea af41fffc
#sw 80000200 10000014
#sw 80000208 10000012 00000000
#sw 80000200 00000000
#
# 2.3.0 version
sw 80000254 3c1a8000 7f5d1140 7f5f1150 7f411160 40017000 3c1a2010 1000ffea af41fffc
sw 80000200 10000014
sw 80000208 10000012 00000000
sw 80000200 00000000

# then run. At normal termination, function usage counts and profile info will
# be printed.
#
# This has only been tested with selected flashes. As it works by patching
# the kernel interupt trap at ffffffff80000200, it may break in future.
