/* in-kernel program execution1*2* Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.3* Written by David Howells ([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 License7* as published by the Free Software Foundation; either version8* 2 of the License, or (at your option) any later version.9*/1011#include <linux/linkage.h>12#include <asm/unistd.h>1314###############################################################################15#16# Do a system call from kernel instead of calling sys_execve so we end up with17# proper pt_regs.18#19# int kernel_execve(const char *filename, char *const argv[], char *const envp[])20#21# On entry: GR8/GR9/GR10: arguments to function22# On return: GR8: syscall return.23#24###############################################################################25.globl kernel_execve26.type kernel_execve,@function27kernel_execve:28setlos __NR_execve,gr729tira gr0,#030bralr3132.size kernel_execve,.-kernel_execve333435