misc_32.c (6206aa8b2b9a45b4cf3ee31b7209b014be349fd9) misc_32.c (6943f3da3e64edd95ee2d33abc0a642357746ba6)
1/*
2 * misc.c: Miscellaneous prom functions that don't belong
3 * anywhere else.
4 *
5 * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
6 */
7
8#include <linux/types.h>
9#include <linux/kernel.h>
10#include <linux/sched.h>
1/*
2 * misc.c: Miscellaneous prom functions that don't belong
3 * anywhere else.
4 *
5 * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
6 */
7
8#include <linux/types.h>
9#include <linux/kernel.h>
10#include <linux/sched.h>
11#include <linux/module.h>
12
11#include <asm/openprom.h>
12#include <asm/oplib.h>
13#include <asm/auxio.h>
14#include <asm/system.h>
15
16extern void restore_current(void);
17
18DEFINE_SPINLOCK(prom_lock);

--- 20 unchanged lines hidden (view full) ---

39 spin_lock_irqsave(&prom_lock, flags);
40 if(prom_vers == PROM_V0)
41 (*(romvec->pv_fortheval.v0_eval))(strlen(fstring), fstring);
42 else
43 (*(romvec->pv_fortheval.v2_eval))(fstring);
44 restore_current();
45 spin_unlock_irqrestore(&prom_lock, flags);
46}
13#include <asm/openprom.h>
14#include <asm/oplib.h>
15#include <asm/auxio.h>
16#include <asm/system.h>
17
18extern void restore_current(void);
19
20DEFINE_SPINLOCK(prom_lock);

--- 20 unchanged lines hidden (view full) ---

41 spin_lock_irqsave(&prom_lock, flags);
42 if(prom_vers == PROM_V0)
43 (*(romvec->pv_fortheval.v0_eval))(strlen(fstring), fstring);
44 else
45 (*(romvec->pv_fortheval.v2_eval))(fstring);
46 restore_current();
47 spin_unlock_irqrestore(&prom_lock, flags);
48}
49EXPORT_SYMBOL(prom_feval);
47
48/* Drop into the prom, with the chance to continue with the 'go'
49 * prom command.
50 */
51void
52prom_cmdline(void)
53{
54 extern void install_obp_ticker(void);

--- 75 unchanged lines hidden ---
50
51/* Drop into the prom, with the chance to continue with the 'go'
52 * prom command.
53 */
54void
55prom_cmdline(void)
56{
57 extern void install_obp_ticker(void);

--- 75 unchanged lines hidden ---