/* MN10300 Kernel thread trampoline function1*2* Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.3* Written by Mark Salter ([email protected])4*5* This program is free software; you can redistribute it and/or6* modify it under the terms of the GNU General Public Licence7* as published by the Free Software Foundation; either version8* 2 of the Licence, or (at your option) any later version.9*/10.text1112###############################################################################13#14# kernel_thread_helper - trampoline for kernel_thread()15#16# On entry:17# A2 = address of function to call18# D2 = function argument19#20###############################################################################21.globl kernel_thread_helper22.type kernel_thread_helper,@function23kernel_thread_helper:24mov do_exit,d125mov d1,(sp)26mov d1,mdr27mov d2,d028jmp (a2)2930.size kernel_thread_helper,.-kernel_thread_helper313233