From e1ac9629398027186ef4c2a66772aeff2b4c6792 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Wed, 3 Sep 2014 07:42:21 -0400 Subject: arch: Cleanup unused ISA traits constants This patch prunes unused values, and also unifies how the values are defined (not using an enum for ALPHA), aligning the use of int vs Addr etc. The patch also removes the duplication of PageBytes/PageShift and VMPageSize/LogVMPageSize. For all ISAs the two pairs had identical values and the latter has been removed. --- src/kern/tru64/tru64.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/kern') diff --git a/src/kern/tru64/tru64.hh b/src/kern/tru64/tru64.hh index 5cb1b92ec..d2261eaa0 100644 --- a/src/kern/tru64/tru64.hh +++ b/src/kern/tru64/tru64.hh @@ -548,8 +548,8 @@ class Tru64 : public OperatingSystem process->next_thread_stack_base -= stack_size; } - Addr rounded_stack_base = roundDown(stack_base, VMPageSize); - Addr rounded_stack_size = roundUp(stack_size, VMPageSize); + Addr rounded_stack_base = roundDown(stack_base, PageBytes); + Addr rounded_stack_size = roundUp(stack_size, PageBytes); DPRINTF(SyscallVerbose, "stack_create: allocating stack @ %#x size %#x " @@ -675,9 +675,9 @@ class Tru64 : public OperatingSystem *configptr_ptr = htog(config_addr); // Register this as a valid address range with the process - base_addr = roundDown(base_addr, VMPageSize); + base_addr = roundDown(base_addr, PageBytes); int size = cur_addr - base_addr; - process->allocateMem(base_addr, roundUp(size, VMPageSize)); + process->allocateMem(base_addr, roundUp(size, PageBytes)); config.copyOut(tc->getMemProxy()); slot_state.copyOut(tc->getMemProxy()); -- cgit v1.2.3