Implemented the PPC specific RTC support. We search for an "rtc"

device in the Open Firmware implementation of boot loader and
pass its path to the kernel, where it's opened and used for
getting/setting the real time. The expensive atomic_*64() on PPC
32-bit make things a bit more complicated. Moreover, missing
64 bit multiplication and division instructions won't really
allow system_time() to be anywhere near as fast as on x86. :-/


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15837 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2006-01-04 04:55:04 +00:00
parent 850f611735
commit e55e1a0e66
18 changed files with 288 additions and 15 deletions
@@ -18,6 +18,7 @@
typedef struct {
void *openfirmware_entry;
char rtc_path[128];
} platform_kernel_args;
#endif /* KERNEL_BOOT_PLATFORM_OPENFIRMWARE_KERNEL_ARGS_H */