-
Notifications
You must be signed in to change notification settings - Fork 0
/
globals.h
93 lines (77 loc) · 2.21 KB
/
globals.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#ifndef GLOBALS_H
#define GLOBALS_H
#include <stdint.h>
#include "defs.h"
typedef char bool;
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
extern bool rdtsc_is_available;
#define RDTSC_AVAILABLE() (rdtsc_is_available)
extern volatile short start_seq;
extern unsigned long high_test_adr;
extern int slock, lsr;
extern int l1_cache, l2_cache, l3_cache;
extern short serial_tty;
extern short serial_cons;
extern int serial_baud_rate;
extern unsigned char serial_parity;
extern unsigned char serial_bits;
struct barrier_s;
extern int c_iter;
extern int dmi_err_cnts[MAX_DMI_MEMDEVS];
extern int beepmode;
extern short dmi_initialized;
extern struct cpu_ident cpu_id;
extern int test_ticks, nticks;
extern volatile int test;
extern int pass_flag;
extern unsigned num_cpus;
extern volatile int run_cpus;
extern unsigned act_cpus;
extern unsigned found_cpus;
extern volatile short btflag;
extern volatile short cpu_mode;
extern volatile int bail;
extern volatile int window;
extern volatile unsigned long win_next;
extern short restart_flag;
extern int bitf_seq;
extern volatile short cpu_sel;
extern volatile int mstr_cpu;
extern int ltest;
extern short onepass;
extern volatile int segs;
extern short memsz_mode;
extern int maxcpus;
extern char cpu_mask[];
extern volatile unsigned long win0_start; /* Start test address for window 0 */
extern volatile unsigned long win1_end; /* End address for relocation */
extern struct barrier_s *barr;
char toupper(char c);
int isxdigit(char c);
void reboot();
void bzero();
void smp_set_ordinal(int me, int ord);
int smp_my_ord_num(int me);
int smp_ord_to_cpu(int me);
void get_cpuid();
void initialise_cpus();
unsigned long memtest_rand(int cpu);
void rand_seed(unsigned int seed1, unsigned int seed2, int cpu);
unsigned long memspeed(unsigned long src, unsigned long len, int iter);
void cpu_type(void);
int cpuspeed(void);
void get_cache_size();
void cpu_cache_speed();
void get_cpuid();
void set_defaults(void);
void arch_init_early(void);
void arch_init(void);
unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base);
void btrace(int me, int line, char *msg, int wait, long v1, long v2);
void memtest_main(int my_cpu_num, int my_cpu_ord);
#endif