patch-2.1.115 linux/arch/ppc/kernel/prep_time.c
Next file: linux/arch/ppc/kernel/process.c
Previous file: linux/arch/ppc/kernel/prep_setup.c
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
Tue Aug 4 16:06:36 1998
- Orig file:
v2.1.114/linux/arch/ppc/kernel/prep_time.c
- Orig date:
Thu May 14 19:47:38 1998
diff -u --recursive --new-file v2.1.114/linux/arch/ppc/kernel/prep_time.c linux/arch/ppc/kernel/prep_time.c
@@ -44,7 +44,7 @@
/*
* translate from mc146818 to m48t18 addresses
*/
-unsigned int clock_transl[] = { MOTO_RTC_SECONDS,0 /* alarm */,
+unsigned int clock_transl[] __prepdata = { MOTO_RTC_SECONDS,0 /* alarm */,
MOTO_RTC_MINUTES,0 /* alarm */,
MOTO_RTC_HOURS,0 /* alarm */, /* 4,5 */
MOTO_RTC_DAY_OF_WEEK,
@@ -54,6 +54,7 @@
MOTO_RTC_CONTROLA, MOTO_RTC_CONTROLB /* 10,11 */
};
+__prep
int prep_cmos_clock_read(int addr)
{
if ( _prep_type == _PREP_IBM )
@@ -69,6 +70,7 @@
return -1;
}
+__prep
void prep_cmos_clock_write(unsigned long val, int addr)
{
if ( _prep_type == _PREP_IBM )
@@ -89,6 +91,7 @@
/*
* Set the hardware clock. -- Cort
*/
+__prep
int prep_set_rtc_time(unsigned long nowtime)
{
unsigned char save_control, save_freq_select;
@@ -135,6 +138,7 @@
return 0;
}
+__prep
unsigned long prep_get_rtc_time(void)
{
unsigned int year, mon, day, hour, min, sec;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov