Subversion Repositories HelenOS

Rev

Rev 1864 | Rev 2009 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1864 Rev 1889
Line 33... Line 33...
33
 */
33
 */
34
 
34
 
35
#ifndef KERN_sparc64_AS_H_
35
#ifndef KERN_sparc64_AS_H_
36
#define KERN_sparc64_AS_H_
36
#define KERN_sparc64_AS_H_
37
 
37
 
-
 
38
#ifdef CONFIG_TSB
-
 
39
#include <arch/mm/tsb.h>
-
 
40
#endif
-
 
41
 
38
#define KERNEL_ADDRESS_SPACE_SHADOWED_ARCH  1
42
#define KERNEL_ADDRESS_SPACE_SHADOWED_ARCH  1
39
 
43
 
40
#define KERNEL_ADDRESS_SPACE_START_ARCH     (unsigned long) 0x0000000000000000
44
#define KERNEL_ADDRESS_SPACE_START_ARCH     (unsigned long) 0x0000000000000000
41
#define KERNEL_ADDRESS_SPACE_END_ARCH       (unsigned long) 0xffffffffffffffff
45
#define KERNEL_ADDRESS_SPACE_END_ARCH       (unsigned long) 0xffffffffffffffff
42
#define USER_ADDRESS_SPACE_START_ARCH       (unsigned long) 0x0000000000000000
46
#define USER_ADDRESS_SPACE_START_ARCH       (unsigned long) 0x0000000000000000
43
#define USER_ADDRESS_SPACE_END_ARCH     (unsigned long) 0xffffffffffffffff
47
#define USER_ADDRESS_SPACE_END_ARCH     (unsigned long) 0xffffffffffffffff
44
 
48
 
45
#define USTACK_ADDRESS_ARCH (0xffffffffffffffffULL-(PAGE_SIZE-1))
49
#define USTACK_ADDRESS_ARCH (0xffffffffffffffffULL-(PAGE_SIZE-1))
46
 
50
 
-
 
51
typedef struct {
-
 
52
#ifdef CONFIG_TSB
-
 
53
    tsb_entry_t *itsb;
-
 
54
    tsb_entry_t *dtsb;
-
 
55
#endif
-
 
56
} as_arch_t;
-
 
57
 
-
 
58
#ifdef CONFIG_TSB
-
 
59
#   define as_invalidate_translation_cache(as, page, cnt)   tsb_invalidate(as, page, cnt)
-
 
60
#else
-
 
61
#   define as_invalidate_translation_cache(as, page, cnt)
-
 
62
#endif
-
 
63
 
47
extern void as_arch_init(void);
64
extern void as_arch_init(void);
48
 
65
 
49
#endif
66
#endif
50
 
67
 
51
/** @}
68
/** @}
52
 */
69
 */
53
 
-