linux.hh (12297:fd5f1ffae4aa) linux.hh (13536:77e19417e723)
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
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"
34#include "kern/linux/linux.hh"
35
36class RiscvLinux : public Linux
37{
38 public:
39 static const int TGT_SIGHUP = 1;
40 static const int TGT_SIGINT = 2;
41 static const int TGT_SIGQUIT = 3;

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

182 uint64_t totalswap;
183 uint64_t freeswap;
184 uint16_t procs;
185 uint16_t pad;
186 uint64_t totalhigh;
187 uint64_t freehigh;
188 uint32_t mem_unit;
189 } tgt_sysinfo;
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 }
190};
191
192#endif
202};
203
204#endif