/*1* Copyright (C) 2004-2006 Atmel Corporation2*3* This program is free software; you can redistribute it and/or modify4* it under the terms of the GNU General Public License version 2 as5* published by the Free Software Foundation.6*/7#include <linux/unistd.h>89int kernel_execve(const char *file,10const char *const *argv,11const char *const *envp)12{13register long scno asm("r8") = __NR_execve;14register long sc1 asm("r12") = (long)file;15register long sc2 asm("r11") = (long)argv;16register long sc3 asm("r10") = (long)envp;1718asm volatile("scall"19: "=r"(sc1)20: "r"(scno), "0"(sc1), "r"(sc2), "r"(sc3)21: "cc", "memory");22return sc1;23}242526