1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 34 unchanged lines hidden (view full) --- 43using namespace SparcISA; 44 45 46/// Target uname() handler. 47static SyscallReturn 48unameFunc(SyscallDesc *desc, int callnum, LiveProcess *process, 49 ThreadContext *tc) 50{ |
51 int index = 0; 52 TypedBufferArg<Solaris::utsname> name(process->getSyscallArg(tc, index)); |
53 54 strcpy(name->sysname, "SunOS"); 55 strcpy(name->nodename, "m5.eecs.umich.edu"); 56 strcpy(name->release, "5.9"); //?? do we want this or something newer? 57 strcpy(name->version, "Generic_118558-21"); 58 strcpy(name->machine, "sun4u"); 59 60 name.copyOut(tc->getMemPort()); --- 283 unchanged lines hidden --- |