Subversion Repositories HelenOS

Rev

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

Rev 4341 Rev 4342
Line 34... Line 34...
34
#include <balloc.h>
34
#include <balloc.h>
35
#include <ofw.h>
35
#include <ofw.h>
36
#include <ofw_tree.h>
36
#include <ofw_tree.h>
37
#include "ofwarch.h"
37
#include "ofwarch.h"
38
#include <align.h>
38
#include <align.h>
-
 
39
#include <macros.h>
-
 
40
#include <string.h>
39
 
41
 
40
bootinfo_t bootinfo;
42
bootinfo_t bootinfo;
41
 
43
 
42
component_t components[COMPONENTS];
44
component_t components[COMPONENTS];
43
 
45
 
44
char *release = RELEASE;
46
char *release = STRING(RELEASE);
45
 
47
 
46
#ifdef REVISION
48
#ifdef REVISION
47
    char *revision = ", revision " REVISION;
49
    char *revision = ", revision " STRING(REVISION);
48
#else
50
#else
49
    char *revision = "";
51
    char *revision = "";
50
#endif
52
#endif
51
 
53
 
52
#ifdef TIMESTAMP
54
#ifdef TIMESTAMP
53
    char *timestamp = "\nBuilt on " TIMESTAMP;
55
    char *timestamp = "\nBuilt on " STRING(TIMESTAMP);
54
#else
56
#else
55
    char *timestamp = "";
57
    char *timestamp = "";
56
#endif
58
#endif
57
 
59
 
58
/** UltraSPARC subarchitecture - 1 for US, 3 for US3 */
60
/** UltraSPARC subarchitecture - 1 for US, 3 for US3 */
Line 271... Line 273...
271
    if (!ofw_cpu())
273
    if (!ofw_cpu())
272
        printf("Error: unable to get CPU properties\n");
274
        printf("Error: unable to get CPU properties\n");
273
    printf("done.\n");
275
    printf("done.\n");
274
#endif
276
#endif
275
 
277
 
276
    setup_palette();
278
    ofw_setup_palette();
277
 
279
 
278
    printf("\nBooting the kernel...\n");
280
    printf("\nBooting the kernel...\n");
279
    jump_to_kernel((void *) KERNEL_VIRTUAL_ADDRESS,
281
    jump_to_kernel((void *) KERNEL_VIRTUAL_ADDRESS,
280
        bootinfo.physmem_start | BSP_PROCESSOR, &bootinfo,
282
        bootinfo.physmem_start | BSP_PROCESSOR, &bootinfo,
281
        sizeof(bootinfo));
283
        sizeof(bootinfo));