diff options
author | dietmar.hahn@fujitsu-siemens.com <dietmar.hahn@fujitsu-siemens.com> | 2008-11-18 10:55:51 +0100 |
---|---|---|
committer | dietmar.hahn@fujitsu-siemens.com <dietmar.hahn@fujitsu-siemens.com> | 2008-11-18 10:55:51 +0100 |
commit | 6e3fe157f023a9163a3fb33930a5d9ccc8b7d6ac (patch) | |
tree | 1e67711ee02cdc30a0bb9eedc029aa35c6b3ca53 /extras/mini-os/arch/ia64/time.c | |
parent | 21b91e54b15e7bc37cf0581e2e43d6d32bf8d662 (diff) | |
download | xen-6e3fe157f023a9163a3fb33930a5d9ccc8b7d6ac.tar.gz xen-6e3fe157f023a9163a3fb33930a5d9ccc8b7d6ac.tar.bz2 xen-6e3fe157f023a9163a3fb33930a5d9ccc8b7d6ac.zip |
[IA64] Remove the useless big endian stuff.
This patch removes all the useless big endian stuff from the mini-os.
Before there was an effort to support big endian for PV-guest.
But the big endian support was never gotten into the common parts of
the mini-os so it makes no sense to have this only in the ia64
specific sources. And as there is no open source big endian os and
porting our BS2000 os to ia64 was stopped, nobody wants that stuff
in the common minos.
So this looks ugly then and remove the big endian stuff.
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
Diffstat (limited to 'extras/mini-os/arch/ia64/time.c')
-rw-r--r-- | extras/mini-os/arch/ia64/time.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/extras/mini-os/arch/ia64/time.c b/extras/mini-os/arch/ia64/time.c index baf9096330..6da27fb4d7 100644 --- a/extras/mini-os/arch/ia64/time.c +++ b/extras/mini-os/arch/ia64/time.c @@ -197,15 +197,6 @@ calculate_frequencies(void) struct ia64_pal_result pal_res; pal_res = ia64_call_pal_static(PAL_FREQ_RATIOS, 0, 0, 0); - //sal_res = ia64_sal_call(SAL_FREQ_BASE, 0, 0, 0, 0, 0, 0, 0); -#if defined(BIG_ENDIAN) -//#warning calculate_frequencies TODO - /* - * I have to do an own function with switching psr.be! - * Currently it's running because it's a break into the hypervisor - * behind the call.! - */ -#endif sal_res = ia64_sal_entry(SAL_FREQ_BASE, 0, 0, 0, 0, 0, 0, 0); if (sal_res.sal_status == 0 && pal_res.pal_status == 0) { @@ -260,9 +251,8 @@ init_time(void) if (efi_get_time(&tm)) { printk(" EFI-Time: %d.%d.%d %d:%d:%d\n", tm.Day, tm.Month, tm.Year, tm.Hour, tm.Minute, tm.Second); - os_time.tv_sec = _mktime(SWAP(tm.Year), SWAP(tm.Month), - SWAP(tm.Day), SWAP(tm.Hour), - SWAP(tm.Minute), SWAP(tm.Second)); + os_time.tv_sec = _mktime(tm.Year, tm.Month, + tm.Day, tm.Hour, tm.Minute, tm.Second); os_time.tv_nsec = tm.Nanosecond; } else printk("efi_get_time() failed\n"); |