git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kernel/arch - Fix common division macro to handle numerators around datatype max
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
arch
/
x86_64
/
include
/
arch.h
diff --git
a/KernelLand/Kernel/arch/x86_64/include/arch.h
b/KernelLand/Kernel/arch/x86_64/include/arch.h
index
bde7abd
..
ec7444c
100644
(file)
--- a/
KernelLand/Kernel/arch/x86_64/include/arch.h
+++ b/
KernelLand/Kernel/arch/x86_64/include/arch.h
@@
-11,6
+11,10
@@
#define BITS 64
#define PAGE_SIZE 0x1000
#define BITS 64
#define PAGE_SIZE 0x1000
+#ifndef MAX_CPUS
+# define MAX_CPUS 8
+#endif
+
#define STACKED_LOCKS 2 // 0: No, 1: Per-CPU, 2: Per-Thread
#define LOCK_DISABLE_INTS 0
#define STACKED_LOCKS 2 // 0: No, 1: Per-CPU, 2: Per-Thread
#define LOCK_DISABLE_INTS 0
@@
-39,7
+43,6
@@
typedef Uint64 Uint;
typedef Uint64 tPAddr;
typedef Uint64 tVAddr;
typedef Uint64 tPAddr;
typedef Uint64 tVAddr;
-typedef Uint64 size_t;
typedef char BOOL;
#define __ASM__ __asm__ __volatile__
typedef char BOOL;
#define __ASM__ __asm__ __volatile__
@@
-102,8
+105,5
@@
extern void SHORTREL(struct sShortSpinlock *Lock);
extern void Debug_PutCharDebug(char ch);
extern void Debug_PutStringDebug(const char *Str);
extern void Debug_PutCharDebug(char ch);
extern void Debug_PutStringDebug(const char *Str);
-// TODO: Move this to acess.h
-extern tPAddr MM_AllocateZero(tVAddr VAddr);
-
#endif
#endif
UCC
git Repository :: git.ucc.asn.au