OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [arch/] [armnommu/] [lib/] [getconstants.c] - Blame information for rev 1765

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1622 jcastillo
/*
2
 * linux/arch/arm/lib/getconstants.c
3
 *
4
 * Copyright (C) 1995, 1996 Russell King
5
 */
6
 
7
#include <linux/mm.h>
8
#include <asm/pgtable.h>
9
#include <stdio.h>
10
#include <linux/unistd.h>
11
 
12
void printdef(char *def, int no)
13
{
14
        printf("#define %s\t%d\n", def, no);
15
}
16
 
17
#include "getconstants.h"
18
 
19
int main()
20
{
21
        printf("/*\n *  contants.h generated by getconstants\n * DO NOT EDIT!\n */\n");
22
 
23
        printf("#define _current\t_%s\n", "current_set");
24
 
25
#ifdef _PAGE_PRESENT
26
        printdef("PAGE_PRESENT",        _PAGE_PRESENT);
27
#endif
28
#ifdef _PAGE_RW
29
        printdef("PAGE_RW",             _PAGE_RW);
30
#endif
31
#ifdef _PAGE_USER
32
        printdef("PAGE_USER",           _PAGE_USER);
33
#endif
34
#ifdef _PAGE_ACCESSED
35
        printdef("PAGE_ACCESSED",       _PAGE_ACCESSED);
36
#endif
37
#ifdef _PAGE_DIRTY
38
        printdef("PAGE_DIRTY",          _PAGE_DIRTY);
39
#endif
40
#ifdef _PAGE_READONLY
41
        printdef("PAGE_READONLY",       _PAGE_READONLY);
42
#endif
43
#ifdef _PAGE_NOT_USER
44
        printdef("PAGE_NOT_USER",       _PAGE_NOT_USER);
45
#endif
46
#ifdef _PAGE_OLD
47
        printdef("PAGE_OLD",            _PAGE_OLD);
48
#endif
49
#ifdef _PAGE_CLEAN
50
        printdef("PAGE_CLEAN",          _PAGE_CLEAN);
51
#endif
52
#ifdef __HAS_tss_memmap
53
        printdef("TSS_MEMMAP",          (int)tss_memmap);
54
#endif
55
#ifdef __HAS_tss_save
56
        printdef("TSS_SAVE",            (int)tss_save);
57
#endif
58
#ifdef __HAS_tss_memcmap
59
        printdef("TSS_MEMCMAP",         (int)tss_memcmap);
60
#endif
61
#ifdef __HAS_tss_fpesave
62
        printdef("TSS_FPESAVE",         (int)tss_fpesave);
63
#endif
64
#ifdef __HAS_mm
65
        printdef("MM",                  (int)mm);
66
#endif
67
 
68
#ifdef __HAS_pgd
69
        printdef("PGD",                 (int)pgd);
70
#endif
71
 
72
        printf("#define KSWI_BASE       0x900000\n");
73
        printf("#define KSWI_SYS_BASE   0x9F0000\n");
74
        printf("#define SYS_ERROR0      0x9F0000\n");
75
        return 0;
76
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.