summaryrefslogtreecommitdiff
path: root/util/romcc/tests/simple_test43.c
blob: 464f26f9184aea0cf21dc5003d4a93b7d35e8c66 (plain)
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
static void spd_set_memclk(void)
{

        unsigned min;
        unsigned device;


	min = 0x250;


        for(device = 0x80; device <= 0x81; device += 1)
        {
                unsigned cur;
                int latency;
		unsigned long loops;

		cur = 5 | 0xa0;
		latency = __builtin_inw(0xab);

                if (latency > 0x250) {
			loops = 1000000;
			while(--loops)
				;
			if (!loops) {
				goto end;
			}

			loops = 1000000;
			while(--loops)
				;
		end:
			;

                }
		loops = 1000000;
		while(--loops)
			;

                if (latency > 0x250) {
			;
                }

                if (cur > 0x250) {
                }
        }

}