system.hh (7733:08d6a773d1b6) system.hh (7770:6286bb50127e)
1/*
2 * Copyright (c) 2002-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;

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

132 * handled. Some OSes are compiled for a virtual address and need to be
133 * loaded into physical memory that starts at address 0, while other
134 * bare metal tools generate images that start at address 0.
135 */
136 Addr loadAddrMask;
137
138#else
139
1/*
2 * Copyright (c) 2002-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;

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

132 * handled. Some OSes are compiled for a virtual address and need to be
133 * loaded into physical memory that starts at address 0, while other
134 * bare metal tools generate images that start at address 0.
135 */
136 Addr loadAddrMask;
137
138#else
139
140 int page_ptr;
140 Addr pagePtr;
141
142 protected:
141
142 protected:
143 uint64_t next_PID;
143 uint64_t nextPID;
144
145 public:
146 uint64_t allocatePID()
147 {
144
145 public:
146 uint64_t allocatePID()
147 {
148 return next_PID++;
148 return nextPID++;
149 }
150
151 /** Amount of physical memory that is still free */
152 Addr freeMemSize();
153
154 /** Amount of physical memory that exists */
155 Addr memSize();
156

--- 107 unchanged lines hidden ---
149 }
150
151 /** Amount of physical memory that is still free */
152 Addr freeMemSize();
153
154 /** Amount of physical memory that exists */
155 Addr memSize();
156

--- 107 unchanged lines hidden ---