Changes in / [8d8eeb9:c6f08726] in mainline
- Location:
- boot
- Files:
-
- 7 deleted
- 3 edited
-
arch/ia64/Makefile.inc (modified) (1 diff)
-
arch/ia64/include/pal.h (deleted)
-
arch/ia64/include/sal.h (deleted)
-
arch/ia64/src/main.c (modified) (3 diffs)
-
arch/ia64/src/pal.c (deleted)
-
arch/ia64/src/pal_asm.S (deleted)
-
arch/ia64/src/sal.c (deleted)
-
arch/ia64/src/sal_asm.S (deleted)
-
genarch/include/efi.h (modified) (2 diffs)
-
genarch/src/efi.c (deleted)
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/ia64/Makefile.inc
r8d8eeb9 rc6f08726 45 45 arch/$(BARCH)/src/asm.S \ 46 46 arch/$(BARCH)/src/main.c \ 47 arch/$(BARCH)/src/sal.c \48 arch/$(BARCH)/src/sal_asm.S \49 arch/$(BARCH)/src/pal.c \50 arch/$(BARCH)/src/pal_asm.S \51 47 arch/$(BARCH)/src/putchar.c \ 52 48 $(COMPS_C) \ 53 genarch/src/efi.c \54 49 genarch/src/division.c \ 55 50 generic/src/balloc.c \ -
boot/arch/ia64/src/main.c
r8d8eeb9 rc6f08726 35 35 #include <arch/_components.h> 36 36 #include <genarch/efi.h> 37 #include <arch/sal.h>38 #include <arch/pal.h>39 37 #include <halt.h> 40 38 #include <printf.h> … … 119 117 } 120 118 121 static void read_ pal_configuration(void)119 static void read_sal_configuration(void) 122 120 { 123 if (bootpar) { 124 bootinfo.freq_scale = pal_proc_freq_ratio(); 125 } else { 121 if (!bootpar) { 126 122 /* Configure default values for simulators. */ 127 123 bootinfo.freq_scale = DEFAULT_FREQ_SCALE; 128 } 129 } 130 131 static void read_sal_configuration(void) 132 { 133 if (bootpar && bootpar->efi_system_table) { 134 efi_guid_t sal_guid = SAL_SYSTEM_TABLE_GUID; 135 sal_system_table_header_t *sal_st; 136 137 sal_st = efi_vendor_table_find( 138 (efi_system_table_t *) bootpar->efi_system_table, sal_guid); 139 140 sal_system_table_parse(sal_st); 141 142 bootinfo.sys_freq = sal_base_clock_frequency(); 124 bootinfo.sys_freq = DEFAULT_SYS_FREQ; 143 125 } else { 144 /* Configure default values for simulators. */ 126 /* TODO: read the real values from SAL */ 127 bootinfo.freq_scale = DEFAULT_FREQ_SCALE; 145 128 bootinfo.sys_freq = DEFAULT_SYS_FREQ; 146 129 } … … 206 189 read_efi_memmap(); 207 190 read_sal_configuration(); 208 read_pal_configuration();209 191 210 192 printf("Booting the kernel ...\n"); -
boot/genarch/include/efi.h
r8d8eeb9 rc6f08726 30 30 #define BOOT_EFI_H_ 31 31 32 #include <arch/types.h>33 34 typedef struct {35 uint64_t signature;36 uint32_t revision;37 uint32_t header_size;38 uint32_t crc32;39 uint32_t reserved;40 } efi_table_header_t;41 42 #define SAL_SYSTEM_TABLE_GUID \43 { \44 { \45 0x32, 0x2d, 0x9d, 0xeb, 0x88, 0x2d, 0xd3, 0x11, \46 0x9a, 0x16, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d \47 } \48 }49 50 typedef union {51 uint8_t bytes[16];52 struct {53 uint64_t low;54 uint64_t high;55 };56 } efi_guid_t;57 58 typedef struct {59 efi_guid_t guid;60 void *table;61 } efi_configuration_table_t;62 63 typedef struct {64 efi_table_header_t hdr;65 char *fw_vendor;66 uint32_t fw_revision;67 void *cons_in_handle;68 void *cons_in;69 void *cons_out_handle;70 void *cons_out;71 void *cons_err_handle;72 void *cons_err;73 void *runtime_services;74 void *boot_services;75 sysarg_t conf_table_entries;76 efi_configuration_table_t *conf_table;77 } efi_system_table_t;78 79 32 typedef enum { 80 33 EFI_RESERVED, … … 104 57 #define EFI_PAGE_SIZE 4096 105 58 106 extern void *efi_vendor_table_find(efi_system_table_t *, efi_guid_t);107 108 59 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
