···11-/*22- * OpenRISC sys_or32.c33- *44- * Linux architectural port borrowing liberally from similar works of55- * others. All original copyrights apply as per the original source66- * declaration.77- *88- * Modifications for the OpenRISC architecture:99- * Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com>1010- * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>1111- *1212- * This program is free software; you can redistribute it and/or1313- * modify it under the terms of the GNU General Public License1414- * as published by the Free Software Foundation; either version1515- * 2 of the License, or (at your option) any later version.1616- *1717- * This file contains various random system calls that1818- * have a non-standard calling sequence on some platforms.1919- * Since we don't have to do any backwards compatibility, our2020- * versions are done in the most "normal" way possible.2121- */2222-2323-#include <linux/errno.h>2424-#include <linux/syscalls.h>2525-#include <linux/mm.h>2626-2727-#include <asm/syscalls.h>2828-2929-/* These are secondary entry points as the primary entry points are defined in3030- * entry.S where we add the 'regs' parameter value3131- */3232-3333-asmlinkage long _sys_clone(unsigned long clone_flags, unsigned long newsp,3434- int __user *parent_tid, int __user *child_tid,3535- struct pt_regs *regs)3636-{3737- long ret;3838-3939- /* FIXME: Is alignment necessary? */4040- /* newsp = ALIGN(newsp, 4); */4141-4242- if (!newsp)4343- newsp = regs->sp;4444-4545- ret = do_fork(clone_flags, newsp, regs, 0, parent_tid, child_tid);4646-4747- return ret;4848-}4949-5050-asmlinkage int _sys_fork(struct pt_regs *regs)5151-{5252-#ifdef CONFIG_MMU5353- return do_fork(SIGCHLD, regs->sp, regs, 0, NULL, NULL);5454-#else5555- return -EINVAL;5656-#endif5757-}