gem5  v20.1.0.0
solaris.hh
Go to the documentation of this file.
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;
9  * redistributions in binary form must reproduce the above copyright
10  * notice, this list of conditions and the following disclaimer in the
11  * documentation and/or other materials provided with the distribution;
12  * neither the name of the copyright holders nor the names of its
13  * contributors may be used to endorse or promote products derived from
14  * this software without specific prior written permission.
15  *
16  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  */
28 
29 #ifndef __ARCH_SPARC_SOLARIS_SOLARIS_HH__
30 #define __ARCH_SPARC_SOLARIS_SOLARIS_HH__
31 
32 #include "kern/solaris/solaris.hh"
33 
34 class SparcSolaris : public Solaris
35 {
36  public:
37 
38  static const ByteOrder byteOrder = ByteOrder::big;
39 
41 
42  static const int TGT_O_RDONLY = 0x00000000;
43  static const int TGT_O_WRONLY = 0x00000001;
44  static const int TGT_O_RDWR = 0x00000002;
45  static const int TGT_O_NDELAY = 0x00000004;
46  static const int TGT_O_APPEND = 0x00000008;
47  static const int TGT_O_SYNC = 0x00000010;
48  static const int TGT_O_DSYNC = 0x00000040;
49  static const int TGT_O_RSYNC = 0x00008000;
50  static const int TGT_O_NONBLOCK = 0x00000080;
51  static const int TGT_O_PRIV = 0x00001000; //??
52  static const int TGT_O_LARGEFILE = 0x00002000; //??
53  static const int TGT_O_CREAT = 0x00000100;
54  static const int TGT_O_TRUNC = 0x00000200;
55  static const int TGT_O_EXCL = 0x00000400;
56  static const int TGT_O_NOCTTY = 0x00000800;
57  static const int TGT_O_XATTR = 0x00004000; //??
58 
59  static const int NUM_OPEN_FLAGS;
60 
63 
64  static const unsigned TGT_MAP_SHARED = 0x00001;
65  static const unsigned TGT_MAP_PRIVATE = 0x00002;
66  static const unsigned TGT_MAP_ANON = 0x00020;
67  static const unsigned TGT_MAP_DENYWRITE = 0x00800;
68  static const unsigned TGT_MAP_EXECUTABLE = 0x01000;
69  static const unsigned TGT_MAP_FILE = 0x00000;
70  static const unsigned TGT_MAP_GROWSDOWN = 0x00100;
71  static const unsigned TGT_MAP_HUGETLB = 0x40000;
72  static const unsigned TGT_MAP_LOCKED = 0x02000;
73  static const unsigned TGT_MAP_NONBLOCK = 0x10000;
74  static const unsigned TGT_MAP_NORESERVE = 0x04000;
75  static const unsigned TGT_MAP_POPULATE = 0x08000;
76  static const unsigned TGT_MAP_STACK = 0x20000;
77  static const unsigned TGT_MAP_ANONYMOUS = 0x00020;
78  static const unsigned TGT_MAP_FIXED = 0x00010;
79 
80  static const unsigned NUM_MMAP_FLAGS;
81 };
82 
83 #endif
SparcSolaris::NUM_OPEN_FLAGS
static const int NUM_OPEN_FLAGS
Definition: solaris.hh:59
SparcSolaris::TGT_MAP_FILE
static const unsigned TGT_MAP_FILE
Definition: solaris.hh:69
SparcSolaris::TGT_MAP_ANONYMOUS
static const unsigned TGT_MAP_ANONYMOUS
Definition: solaris.hh:77
SparcSolaris::TGT_O_RSYNC
static const int TGT_O_RSYNC
O_SYNC.
Definition: solaris.hh:49
SparcSolaris::TGT_MAP_NORESERVE
static const unsigned TGT_MAP_NORESERVE
Definition: solaris.hh:74
SparcSolaris::TGT_O_TRUNC
static const int TGT_O_TRUNC
O_TRUNC.
Definition: solaris.hh:54
SparcSolaris::TGT_MAP_NONBLOCK
static const unsigned TGT_MAP_NONBLOCK
Definition: solaris.hh:73
SparcSolaris::TGT_MAP_GROWSDOWN
static const unsigned TGT_MAP_GROWSDOWN
Definition: solaris.hh:70
SparcSolaris
Definition: solaris.hh:34
SparcSolaris::openFlagTable
static SyscallFlagTransTable openFlagTable[]
Definition: solaris.hh:40
SparcSolaris::byteOrder
static const ByteOrder byteOrder
Definition: solaris.hh:38
SparcSolaris::TGT_O_DSYNC
static const int TGT_O_DSYNC
O_SYNC.
Definition: solaris.hh:48
SparcSolaris::TGT_O_CREAT
static const int TGT_O_CREAT
O_CREAT.
Definition: solaris.hh:53
SparcSolaris::TGT_O_SYNC
static const int TGT_O_SYNC
O_SYNC.
Definition: solaris.hh:47
solaris.hh
SparcSolaris::TGT_O_PRIV
static const int TGT_O_PRIV
Definition: solaris.hh:51
SparcSolaris::mmapFlagTable
static SyscallFlagTransTable mmapFlagTable[]
For mmap().
Definition: solaris.hh:62
SparcSolaris::TGT_O_WRONLY
static const int TGT_O_WRONLY
O_WRONLY.
Definition: solaris.hh:43
SparcSolaris::TGT_O_LARGEFILE
static const int TGT_O_LARGEFILE
Definition: solaris.hh:52
SparcSolaris::TGT_O_EXCL
static const int TGT_O_EXCL
O_EXCL.
Definition: solaris.hh:55
SparcSolaris::TGT_MAP_DENYWRITE
static const unsigned TGT_MAP_DENYWRITE
Definition: solaris.hh:67
SparcSolaris::TGT_MAP_LOCKED
static const unsigned TGT_MAP_LOCKED
Definition: solaris.hh:72
SparcSolaris::TGT_O_NDELAY
static const int TGT_O_NDELAY
O_NONBLOCK.
Definition: solaris.hh:45
Solaris
This class encapsulates the types, structures, constants, functions, and syscall-number mappings spec...
Definition: solaris.hh:40
SparcSolaris::TGT_MAP_HUGETLB
static const unsigned TGT_MAP_HUGETLB
Definition: solaris.hh:71
SparcSolaris::TGT_MAP_FIXED
static const unsigned TGT_MAP_FIXED
Definition: solaris.hh:78
SparcSolaris::TGT_MAP_STACK
static const unsigned TGT_MAP_STACK
Definition: solaris.hh:76
SparcSolaris::TGT_O_XATTR
static const int TGT_O_XATTR
Definition: solaris.hh:57
SparcSolaris::TGT_O_RDONLY
static const int TGT_O_RDONLY
O_RDONLY.
Definition: solaris.hh:42
SyscallFlagTransTable
This struct is used to build target-OS-dependent tables that map the target's flags to the host's fla...
Definition: operatingsystem.hh:41
SparcSolaris::TGT_MAP_POPULATE
static const unsigned TGT_MAP_POPULATE
Definition: solaris.hh:75
SparcSolaris::TGT_O_APPEND
static const int TGT_O_APPEND
O_APPEND.
Definition: solaris.hh:46
SparcSolaris::TGT_MAP_ANON
static const unsigned TGT_MAP_ANON
Definition: solaris.hh:66
SparcSolaris::TGT_MAP_PRIVATE
static const unsigned TGT_MAP_PRIVATE
Definition: solaris.hh:65
SparcSolaris::TGT_O_RDWR
static const int TGT_O_RDWR
O_RDWR.
Definition: solaris.hh:44
SparcSolaris::TGT_MAP_EXECUTABLE
static const unsigned TGT_MAP_EXECUTABLE
Definition: solaris.hh:68
SparcSolaris::TGT_MAP_SHARED
static const unsigned TGT_MAP_SHARED
Definition: solaris.hh:64
SparcSolaris::NUM_MMAP_FLAGS
static const unsigned NUM_MMAP_FLAGS
Definition: solaris.hh:80
SparcSolaris::TGT_O_NOCTTY
static const int TGT_O_NOCTTY
O_NOCTTY.
Definition: solaris.hh:56
SparcSolaris::TGT_O_NONBLOCK
static const int TGT_O_NONBLOCK
O_NONBLOCK.
Definition: solaris.hh:50

Generated on Wed Sep 30 2020 14:02:07 for gem5 by doxygen 1.8.17