From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <18010.48350.669221.255859@cargo.ozlabs.ibm.com> Date: Mon, 28 May 2007 21:28:30 +1000 From: Paul Mackerras To: "Wang, Baojun" Subject: Re: Is it possible to call a C function in transfer_to_handler(arch/ppc/kernel/entry.S)? In-Reply-To: <380406375.32007@eyou.net> References: <380406375.32007@eyou.net> <200705281730.39257.wangbj@lzu.edu.cn> Cc: ppc-dev , Nicholas McGuire List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Wang, Baojun writes: > I'm sorry to ask this topic in this mailling list. I've spend more than 2 > days try to add a C function call in transfer_to_handler(in > arch/ppc/kernel/entry.S) like this: It's not going to work, because the MMU is off at this point. It will explode as soon as the C code tries to touch any external variable. Paul.