Subversion Repositories HelenOS

Rev

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

Rev 3582 Rev 3618
Line 65... Line 65...
65
    printf("HelenOS SPARC64 Bootloader\nRelease %s%s%s\n"
65
    printf("HelenOS SPARC64 Bootloader\nRelease %s%s%s\n"
66
        "Copyright (c) 2006 HelenOS project\n",
66
        "Copyright (c) 2006 HelenOS project\n",
67
        release, revision, timestamp);
67
        release, revision, timestamp);
68
}
68
}
69
 
69
 
-
 
70
/* the lowest ID (read from the VER register) of some US3 CPU model */
70
#define FIRST_US3_CPU 0x14
71
#define FIRST_US3_CPU 0x14
-
 
72
 
-
 
73
/* the greatest ID (read from the VER register) of some US3 CPU model */
71
#define LAST_US3_CPU 0x19
74
#define LAST_US3_CPU 0x19
-
 
75
 
-
 
76
/**
-
 
77
 * Sets the global variable "subarchitecture" to the correct value.
-
 
78
 */
72
static void detect_subarchitecture(void)
79
static void detect_subarchitecture(void)
73
{
80
{
74
    uint64_t v;
81
    uint64_t v;
75
    asm volatile ("rdpr %%ver, %0\n" : "=r" (v));
82
    asm volatile ("rdpr %%ver, %0\n" : "=r" (v));
76
   
83