linux.hh (11414:cfad34a15729) linux.hh (13536:77e19417e723)
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;

--- 17 unchanged lines hidden (view full) ---

26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Korey Sewell
29 */
30
31#ifndef __ALPHA_ALPHA_LINUX_LINUX_HH__
32#define __ALPHA_ALPHA_LINUX_LINUX_HH__
33
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;

--- 17 unchanged lines hidden (view full) ---

26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Korey Sewell
29 */
30
31#ifndef __ALPHA_ALPHA_LINUX_LINUX_HH__
32#define __ALPHA_ALPHA_LINUX_LINUX_HH__
33
34#include "arch/alpha/utility.hh"
34#include "kern/linux/linux.hh"
35
36/* AlphaLinux class contains static constants/definitions/misc.
37 * structures which are specific to the Linux OS AND the Alpha
38 * architecture
39 */
40class AlphaLinux : public Linux
41{

--- 149 unchanged lines hidden (view full) ---

191 uint64_t totalhigh; /* Total high memory size */
192 uint64_t freehigh; /* Available high memory size */
193 uint64_t mem_unit; /* Memory unit size in bytes */
194 } tgt_sysinfo;
195
196 // For futex system call
197 static const unsigned TGT_EAGAIN = 35;
198 static const unsigned TGT_EWOULDBLOCK = TGT_EAGAIN;
35#include "kern/linux/linux.hh"
36
37/* AlphaLinux class contains static constants/definitions/misc.
38 * structures which are specific to the Linux OS AND the Alpha
39 * architecture
40 */
41class AlphaLinux : public Linux
42{

--- 149 unchanged lines hidden (view full) ---

192 uint64_t totalhigh; /* Total high memory size */
193 uint64_t freehigh; /* Available high memory size */
194 uint64_t mem_unit; /* Memory unit size in bytes */
195 } tgt_sysinfo;
196
197 // For futex system call
198 static const unsigned TGT_EAGAIN = 35;
199 static const unsigned TGT_EWOULDBLOCK = TGT_EAGAIN;
200
201 static void
202 archClone(uint64_t flags,
203 Process *pp, Process *cp,
204 ThreadContext *ptc, ThreadContext *ctc,
205 uint64_t stack, uint64_t tls)
206 {
207 AlphaISA::copyMiscRegs(ptc, ctc);
208 if (stack)
209 ctc->setIntReg(AlphaISA::StackPointerReg, stack);
210 }
199};
200
201#endif // __ALPHA_ALPHA_LINUX_LINUX_HH__
211};
212
213#endif // __ALPHA_ALPHA_LINUX_LINUX_HH__