linux.hh (11414:cfad34a15729) | linux.hh (13536:77e19417e723) |
---|---|
1/* 2 * Copyright (c) 2010, 2011-2012, 2015 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 31 unchanged lines hidden (view full) --- 40 * 41 * Authors: Ali Saidi 42 * Stephen Hines 43 */ 44 45#ifndef __ARCH_ARM_LINUX_LINUX_HH__ 46#define __ARCH_ARM_LINUX_LINUX_HH__ 47 | 1/* 2 * Copyright (c) 2010, 2011-2012, 2015 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 31 unchanged lines hidden (view full) --- 40 * 41 * Authors: Ali Saidi 42 * Stephen Hines 43 */ 44 45#ifndef __ARCH_ARM_LINUX_LINUX_HH__ 46#define __ARCH_ARM_LINUX_LINUX_HH__ 47 |
48#include "arch/arm/utility.hh" |
|
48#include "kern/linux/linux.hh" 49 | 49#include "kern/linux/linux.hh" 50 |
50class ArmLinux32 : public Linux | 51class ArmLinux : public Linux |
51{ 52 public: | 52{ 53 public: |
54 static void 55 archClone(uint64_t flags, 56 Process *pp, Process *cp, 57 ThreadContext *ptc, ThreadContext *ctc, 58 uint64_t stack, uint64_t tls) 59 { 60 ArmISA::copyRegs(ptc, ctc); |
|
53 | 61 |
62 if (stack) 63 ctc->setIntReg(TheISA::StackPointerReg, stack); 64 } 65}; 66 67class ArmLinux32 : public ArmLinux 68{ 69 public: 70 |
|
54 static const int TGT_SIGHUP = 0x000001; 55 static const int TGT_SIGINT = 0x000002; 56 static const int TGT_SIGQUIT = 0x000003; 57 static const int TGT_SIGILL = 0x000004; 58 static const int TGT_SIGTRAP = 0x000005; 59 static const int TGT_SIGABRT = 0x000006; 60 static const int TGT_SIGIOT = 0x000006; 61 static const int TGT_SIGBUS = 0x000007; --- 189 unchanged lines hidden (view full) --- 251 struct tms { 252 int32_t tms_utime; //!< user time 253 int32_t tms_stime; //!< system time 254 int32_t tms_cutime; //!< user time of children 255 int32_t tms_cstime; //!< system time of children 256 }; 257}; 258 | 71 static const int TGT_SIGHUP = 0x000001; 72 static const int TGT_SIGINT = 0x000002; 73 static const int TGT_SIGQUIT = 0x000003; 74 static const int TGT_SIGILL = 0x000004; 75 static const int TGT_SIGTRAP = 0x000005; 76 static const int TGT_SIGABRT = 0x000006; 77 static const int TGT_SIGIOT = 0x000006; 78 static const int TGT_SIGBUS = 0x000007; --- 189 unchanged lines hidden (view full) --- 268 struct tms { 269 int32_t tms_utime; //!< user time 270 int32_t tms_stime; //!< system time 271 int32_t tms_cutime; //!< user time of children 272 int32_t tms_cstime; //!< system time of children 273 }; 274}; 275 |
259class ArmLinux64 : public Linux | 276class ArmLinux64 : public ArmLinux |
260{ 261 public: 262 263 static const int TGT_SIGHUP = 0x000001; 264 static const int TGT_SIGINT = 0x000002; 265 static const int TGT_SIGQUIT = 0x000003; 266 static const int TGT_SIGILL = 0x000004; 267 static const int TGT_SIGTRAP = 0x000005; --- 237 unchanged lines hidden --- | 277{ 278 public: 279 280 static const int TGT_SIGHUP = 0x000001; 281 static const int TGT_SIGINT = 0x000002; 282 static const int TGT_SIGQUIT = 0x000003; 283 static const int TGT_SIGILL = 0x000004; 284 static const int TGT_SIGTRAP = 0x000005; --- 237 unchanged lines hidden --- |