Rev 1979 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1979 | Rev 1997 | ||
---|---|---|---|
Line 38... | Line 38... | ||
38 | #include <align.h> |
38 | #include <align.h> |
39 | 39 | ||
40 | bootinfo_t bootinfo; |
40 | bootinfo_t bootinfo; |
41 | component_t components[COMPONENTS]; |
41 | component_t components[COMPONENTS]; |
42 | 42 | ||
- | 43 | char *release = RELEASE; |
|
- | 44 | ||
- | 45 | #ifdef REVISION |
|
- | 46 | char *revision = ", revision " REVISION; |
|
- | 47 | #else |
|
- | 48 | char *revision = ""; |
|
- | 49 | #endif |
|
- | 50 | ||
- | 51 | #ifdef TIMESTAMP |
|
- | 52 | char *timestamp = "\nBuilt on " TIMESTAMP; |
|
- | 53 | #else |
|
- | 54 | char *timestamp = ""; |
|
- | 55 | #endif |
|
- | 56 | ||
- | 57 | /** Print version information. */ |
|
- | 58 | static void version_print(void) |
|
- | 59 | { |
|
- | 60 | printf("HelenOS SPARC64 Bootloader\nRelease %s%s%s\nCopyright (C) 2006 HelenOS project\n", release, revision, timestamp); |
|
- | 61 | } |
|
- | 62 | ||
43 | void bootstrap(void) |
63 | void bootstrap(void) |
44 | { |
64 | { |
45 | printf("HelenOS SPARC64 Bootloader\n"); |
65 | version_print(); |
46 | 66 | ||
47 | init_components(components); |
67 | init_components(components); |
48 | 68 | ||
49 | if (!ofw_get_physmem_start(&bootinfo.physmem_start)) { |
69 | if (!ofw_get_physmem_start(&bootinfo.physmem_start)) { |
50 | printf("Error: unable to get start of physical memory.\n"); |
70 | printf("Error: unable to get start of physical memory.\n"); |