1/* 2 * Copyright (c) 2006 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 __ARCH_RISCV_LINUX_LINUX_HH__ 32#define __ARCH_RISCV_LINUX_LINUX_HH__ 33 |
34#include "arch/riscv/utility.hh" |
35#include "kern/linux/linux.hh" 36 37class RiscvLinux : public Linux 38{ 39 public: 40 static const int TGT_SIGHUP = 1; 41 static const int TGT_SIGINT = 2; 42 static const int TGT_SIGQUIT = 3; --- 140 unchanged lines hidden (view full) --- 183 uint64_t totalswap; 184 uint64_t freeswap; 185 uint16_t procs; 186 uint16_t pad; 187 uint64_t totalhigh; 188 uint64_t freehigh; 189 uint32_t mem_unit; 190 } tgt_sysinfo; |
191 192 static void 193 archClone(uint64_t flags, 194 Process *pp, Process *cp, 195 ThreadContext *ptc, ThreadContext *ctc, 196 uint64_t stack, uint64_t tls) 197 { 198 RiscvISA::copyRegs(ptc, ctc); 199 if (stack) 200 ctc->setIntReg(RiscvISA::StackPointerReg, stack); 201 } |
202}; 203 204#endif |