haiku/src/kernel/vm2/page.h
Michael Phipps 8aabdd2043 More improvements. Does not run all tests, though - still have some locking issues
around clone area, I think. Still, much improved...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1048 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-16 03:14:44 +00:00

18 lines
624 B
C++

#ifndef _PAGE_H
#define _PAGE_H
#include "vm.h"
#include "list.h"
class page : public node {
private:
void *cpuSpecific;
void *physicalAddress;
public:
long count; // Yes, this is large. However, the only atomic add that I have in userland works on int32's. In kernel land, we could shrink this
page(void) {cpuSpecific=NULL;physicalAddress=NULL;};
void setup (void *address) {count=0;physicalAddress=address;};
void zero(void);
unsigned long getAddress(void) {return (unsigned long)physicalAddress;}
void dump(void) { error ("page::dump: Page %p, physicalAddress = %lx\n",this,getAddress()); }
};
#endif