5 More Discussions You Might Find Interesting
1. Solaris
Hello,
I have a Sun V880 and a raptor gfx -8p today i installed a lsi card and had to use the pci slot that the gfx was using as it needed a 5v rail,
after doing so i did a reconfigure boot with boot -r and now i no longer have a functioning display
Im probably missing something simple,... (3 Replies)
Discussion started by: xccxcc
3 Replies
2. Red Hat
I'm trying to install a linux system on a IBM PowerPC 275 system. I noticed that fedora 12 supports PowerPC. Does anyone have experience with this? I don't want to pay the fee for an enterprise licence for red hat or suse. (3 Replies)
Discussion started by: rein
3 Replies
3. Ubuntu
I just did a fresh install of Ubuntu 7.04 with a Gnome desktop.
Following some instructions on the ATI site I think I just managed to install 8.36.5 of the drivers for my Radeon 9500, I'm getting a "Proprietary Drivers in use" warning icon at the top right of the screen, which I activated with... (0 Replies)
Discussion started by: Mark Ward
0 Replies
4. Linux
hi guys,
i have just installed Redhat Linux 8 on my home computer and it doesn't have the valid driver for my Radeon 9800 xt have looked about for it and can't find the driver.
My computer works fine in a way, i can use it, but it would just be nice to have it set up fully correct so i can... (0 Replies)
Discussion started by: SemperFi
0 Replies
5. UNIX for Dummies Questions & Answers
Hello, i need to Rogue RPm for PPC, anybody knows where i can get it?
Thanks. i am new to Unix, thats why ia m postin here. Thank you! (3 Replies)
Discussion started by: Ro'Taygahn
3 Replies
LEARN ABOUT LINUX
__ppc_get_timebase
__PPC_GET_TIMEBASE(3) Linux Programmer'sManual __PPC_GET_TIMEBASE(3)
NAME
__ppc_get_timebase, __ppc_get_timebase_freq - get the current value
of the Time Base Register on Power architecture and its frequency.
SYNOPSIS
#include <sys/platform/ppc.h>
uint64_t __ppc_get_timebase(void)
uint64_t __ppc_get_timebase_freq(void);
DESCRIPTION
__ppc_get_timebase() reads the current value of the Time Base Register and returns its value, while __ppc_get_timebase_freq() returns the
frequency in which the Time Base Register is updated.
The Time Base Register is a 64-bit register provided by Power Architecture processors. It stores a monotonically incremented value that is
updated at a system-dependent frequency that may be different from the processor frequency.
RETURN VALUE
__ppc_get_timebase() returns a 64-bit unsigned integer that represents the current value of the Time Base Register.
__ppc_get_timebase_freq() returns a 64-bit unsigned integer that represents the frequency at which the Time Base Register is updated.
VERSIONS
GNU C Library support for __ppc_get_timebase() has been provided since version 2.16 and __ppc_get_timebase_freq() has been available since
version 2.17.
CONFORMING TO
Both functions are nonstandard GNU extensions.
EXAMPLE
The following program will calculate the time, in microseconds, spent between two calls to __ppc_get_timebase().
Program source
#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/platform/ppc.h>
/* Maximum value of the Time Base Register: 2^60 - 1.
Source: POWER ISA. */
#define MAX_TB 0xFFFFFFFFFFFFFFF
int
main(void)
{
uint64_t tb1, tb2, diff;
uint64_t freq = __ppc_get_timebase_freq();
printf("Time Base frequency = %"PRIu64" Hz
", freq);
tb1 = __ppc_get_timebase();
// Do some stuff...
tb2 = __ppc_get_timebase();
if (tb2 > tb1) {
diff = tb2 - tb1;
} else {
/* Treat Time Base Register overflow. */
diff = (MAX_TB - tb2) + tb1;
}
printf("Elapsed time = %1.2f usecs
",
(double) diff * 1000000 / freq );
exit(EXIT_SUCCESS);
}
SEE ALSO
time(2), usleep(3)
GNU C Library 2019-03-06 __PPC_GET_TIMEBASE(3)