summaryrefslogtreecommitdiff
path: root/kern/freebsd/freebsd_system.cc
diff options
context:
space:
mode:
authorBenjamin Nash <benash@umich.edu>2005-08-16 16:08:42 -0400
committerBenjamin Nash <benash@umich.edu>2005-08-16 16:08:42 -0400
commit568868d38ff141f5e7a009316ae3d36c60a33a0d (patch)
tree73024d9c5c52055b6c8d814c6f7a65f3f784e2d3 /kern/freebsd/freebsd_system.cc
parent979d609656c8ab5e8345e21c401fa542e0138168 (diff)
downloadgem5-568868d38ff141f5e7a009316ae3d36c60a33a0d.tar.xz
Clean up freebsd_system.cc.
kern/freebsd/freebsd_system.cc: Use htog instead of htoa. --HG-- extra : convert_revision : 09224d60ce5bb3827c9f046127ff6fc72fa008d6
Diffstat (limited to 'kern/freebsd/freebsd_system.cc')
-rw-r--r--kern/freebsd/freebsd_system.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/kern/freebsd/freebsd_system.cc b/kern/freebsd/freebsd_system.cc
index 35ac14330..5e0ce113b 100644
--- a/kern/freebsd/freebsd_system.cc
+++ b/kern/freebsd/freebsd_system.cc
@@ -41,6 +41,8 @@
#include "sim/builder.hh"
#include "targetarch/vtophys.hh"
+#define TIMER_FREQUENCY 1193180
+
using namespace std;
FreebsdSystem::FreebsdSystem(Params *p)
@@ -85,8 +87,8 @@ FreebsdSystem::doCalibrateClocks(ExecContext *xc)
uint8_t *ppc = physmem->dma_addr(ppc_paddr, sizeof(uint32_t));
uint8_t *timer = physmem->dma_addr(timer_paddr, sizeof(uint32_t));
- *(uint32_t *)ppc = htoa((uint32_t)2000000000);
- *(uint32_t *)timer = htoa((uint32_t)1193180);
+ *(uint32_t *)ppc = htog((uint32_t)Clock::Frequency);
+ *(uint32_t *)timer = htog((uint32_t)TIMER_FREQUENCY);
}