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 TypedBufferArg<Solaris::utsname> name(process->getSyscallArg(tc, 0));
52
53 strcpy(name->sysname, "SunOS");
54 strcpy(name->nodename, "m5.eecs.umich.edu");
55 strcpy(name->release, "5.9"); //?? do we want this or something newer?
56 strcpy(name->version, "Generic_118558-21");
57 strcpy(name->machine, "sun4u");
58
59 name.copyOut(tc->getMemPort());
--- 283 unchanged lines hidden ---
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 TypedBufferArg<Solaris::utsname> name(process->getSyscallArg(tc, 0));
52
53 strcpy(name->sysname, "SunOS");
54 strcpy(name->nodename, "m5.eecs.umich.edu");
55 strcpy(name->release, "5.9"); //?? do we want this or something newer?
56 strcpy(name->version, "Generic_118558-21");
57 strcpy(name->machine, "sun4u");
58
59 name.copyOut(tc->getMemPort());
--- 283 unchanged lines hidden ---