Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2013-2014 Sage Electronic Engineering, LLC. |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 5 | * Copyright (C) 2015 Intel Corp. |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; version 2 of the License. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 15 | */ |
| 16 | |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 17 | #include <bootstate.h> |
| 18 | #include <cbmem.h> |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 19 | #include <console/console.h> |
Lee Leahy | c52a4f7 | 2016-08-09 09:02:13 -0700 | [diff] [blame] | 20 | #include <console/streams.h> |
Aaron Durbin | 789f2b6 | 2015-09-09 17:05:06 -0500 | [diff] [blame] | 21 | #include <fsp/util.h> |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 22 | #include <timestamp.h> |
| 23 | |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 24 | /* Locate the FSP binary in the coreboot filesystem */ |
Lee Leahy | a887492 | 2015-08-26 14:58:29 -0700 | [diff] [blame] | 25 | FSP_INFO_HEADER *find_fsp(uintptr_t fsp_base_address) |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 26 | { |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 27 | union { |
| 28 | EFI_FFS_FILE_HEADER *ffh; |
| 29 | FSP_INFO_HEADER *fih; |
| 30 | EFI_FIRMWARE_VOLUME_EXT_HEADER *fveh; |
| 31 | EFI_FIRMWARE_VOLUME_HEADER *fvh; |
| 32 | EFI_RAW_SECTION *rs; |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 33 | u32 u32; |
| 34 | } fsp_ptr; |
Alexandru Gagniuc | 5c26122 | 2015-08-29 18:53:43 -0700 | [diff] [blame] | 35 | |
Nico Huber | e7947df | 2017-05-09 16:03:24 +0200 | [diff] [blame] | 36 | u64 *image_id; |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 37 | |
Lee Leahy | 00c35c1 | 2016-05-17 08:57:42 -0700 | [diff] [blame] | 38 | /* Get the FSP binary base address in CBFS */ |
| 39 | fsp_ptr.u32 = fsp_base_address; |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 40 | |
Lee Leahy | 00c35c1 | 2016-05-17 08:57:42 -0700 | [diff] [blame] | 41 | /* Check the FV signature, _FVH */ |
Lee Leahy | 216712a | 2017-03-17 11:23:32 -0700 | [diff] [blame] | 42 | if (fsp_ptr.fvh->Signature != 0x4856465F) |
Lee Leahy | 00c35c1 | 2016-05-17 08:57:42 -0700 | [diff] [blame] | 43 | return (FSP_INFO_HEADER *)ERROR_NO_FV_SIG; |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 44 | |
Lee Leahy | 00c35c1 | 2016-05-17 08:57:42 -0700 | [diff] [blame] | 45 | /* Locate the file header which follows the FV header. */ |
Lee Leahy | d3989a2 | 2016-05-17 09:29:09 -0700 | [diff] [blame] | 46 | fsp_ptr.u32 += fsp_ptr.fvh->ExtHeaderOffset; |
| 47 | fsp_ptr.u32 += fsp_ptr.fveh->ExtHeaderSize; |
| 48 | fsp_ptr.u32 = ALIGN_UP(fsp_ptr.u32, 8); |
Lee Leahy | 00c35c1 | 2016-05-17 08:57:42 -0700 | [diff] [blame] | 49 | |
| 50 | /* Check the FFS GUID */ |
| 51 | if ((((u32 *)&fsp_ptr.ffh->Name)[0] != 0x912740BE) |
| 52 | || (((u32 *)&fsp_ptr.ffh->Name)[1] != 0x47342284) |
| 53 | || (((u32 *)&fsp_ptr.ffh->Name)[2] != 0xB08471B9) |
| 54 | || (((u32 *)&fsp_ptr.ffh->Name)[3] != 0x0C3F3527)) { |
| 55 | return (FSP_INFO_HEADER *)ERROR_NO_FFS_GUID; |
| 56 | } |
| 57 | |
| 58 | /* Locate the Raw Section Header */ |
Lee Leahy | d3989a2 | 2016-05-17 09:29:09 -0700 | [diff] [blame] | 59 | fsp_ptr.u32 += sizeof(EFI_FFS_FILE_HEADER); |
Lee Leahy | 00c35c1 | 2016-05-17 08:57:42 -0700 | [diff] [blame] | 60 | |
Lee Leahy | 216712a | 2017-03-17 11:23:32 -0700 | [diff] [blame] | 61 | if (fsp_ptr.rs->Type != EFI_SECTION_RAW) |
Lee Leahy | 00c35c1 | 2016-05-17 08:57:42 -0700 | [diff] [blame] | 62 | return (FSP_INFO_HEADER *)ERROR_NO_INFO_HEADER; |
Lee Leahy | 00c35c1 | 2016-05-17 08:57:42 -0700 | [diff] [blame] | 63 | |
| 64 | /* Locate the FSP INFO Header which follows the Raw Header. */ |
Lee Leahy | d3989a2 | 2016-05-17 09:29:09 -0700 | [diff] [blame] | 65 | fsp_ptr.u32 += sizeof(EFI_RAW_SECTION); |
Lee Leahy | 00c35c1 | 2016-05-17 08:57:42 -0700 | [diff] [blame] | 66 | |
| 67 | /* Verify that the FSP base address.*/ |
Lee Leahy | 216712a | 2017-03-17 11:23:32 -0700 | [diff] [blame] | 68 | if (fsp_ptr.fih->ImageBase != fsp_base_address) |
Lee Leahy | 00c35c1 | 2016-05-17 08:57:42 -0700 | [diff] [blame] | 69 | return (FSP_INFO_HEADER *)ERROR_IMAGEBASE_MISMATCH; |
Lee Leahy | 00c35c1 | 2016-05-17 08:57:42 -0700 | [diff] [blame] | 70 | |
| 71 | /* Verify the FSP Signature */ |
Lee Leahy | 216712a | 2017-03-17 11:23:32 -0700 | [diff] [blame] | 72 | if (fsp_ptr.fih->Signature != FSP_SIG) |
Lee Leahy | 00c35c1 | 2016-05-17 08:57:42 -0700 | [diff] [blame] | 73 | return (FSP_INFO_HEADER *)ERROR_INFO_HEAD_SIG_MISMATCH; |
Lee Leahy | 00c35c1 | 2016-05-17 08:57:42 -0700 | [diff] [blame] | 74 | |
| 75 | /* Verify the FSP ID */ |
Nico Huber | e7947df | 2017-05-09 16:03:24 +0200 | [diff] [blame] | 76 | image_id = (u64 *)&fsp_ptr.fih->ImageId[0]; |
| 77 | if (*image_id != FSP_IMAGE_ID) |
Lee Leahy | 00c35c1 | 2016-05-17 08:57:42 -0700 | [diff] [blame] | 78 | return (FSP_INFO_HEADER *)ERROR_FSP_SIG_MISMATCH; |
| 79 | |
Nico Huber | e7947df | 2017-05-09 16:03:24 +0200 | [diff] [blame] | 80 | /* Verify the FSP Revision */ |
Matt DeVillier | 77c01e1 | 2017-09-07 11:28:53 -0500 | [diff] [blame] | 81 | if (fsp_ptr.fih->ImageRevision > FSP_IMAGE_REV) |
Nico Huber | e7947df | 2017-05-09 16:03:24 +0200 | [diff] [blame] | 82 | return (FSP_INFO_HEADER *)ERROR_FSP_REV_MISMATCH; |
| 83 | |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 84 | return fsp_ptr.fih; |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 85 | } |
| 86 | |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 87 | void print_fsp_info(FSP_INFO_HEADER *fsp_header) |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 88 | { |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 89 | u8 *fsp_base; |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 90 | |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 91 | fsp_base = (u8 *)fsp_header->ImageBase; |
| 92 | printk(BIOS_SPEW, "FSP_INFO_HEADER: %p\n", fsp_header); |
| 93 | printk(BIOS_INFO, "FSP Signature: %c%c%c%c%c%c%c%c\n", |
| 94 | fsp_header->ImageId[0], fsp_header->ImageId[1], |
| 95 | fsp_header->ImageId[2], fsp_header->ImageId[3], |
| 96 | fsp_header->ImageId[4], fsp_header->ImageId[5], |
| 97 | fsp_header->ImageId[6], fsp_header->ImageId[7]); |
| 98 | printk(BIOS_INFO, "FSP Header Version: %d\n", |
| 99 | fsp_header->HeaderRevision); |
Dhaval Sharma | 590ac64 | 2015-11-02 17:12:10 +0530 | [diff] [blame] | 100 | printk(BIOS_INFO, "FSP Revision: %d.%d.%d.%d\n", |
| 101 | (u8)((fsp_header->ImageRevision >> 24) & 0xff), |
| 102 | (u8)((fsp_header->ImageRevision >> 16) & 0xff), |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 103 | (u8)((fsp_header->ImageRevision >> 8) & 0xff), |
| 104 | (u8)(fsp_header->ImageRevision & 0xff)); |
| 105 | #if IS_ENABLED(CONFIG_DISPLAY_FSP_ENTRY_POINTS) |
| 106 | printk(BIOS_SPEW, "FSP Entry Points:\n"); |
| 107 | printk(BIOS_SPEW, " 0x%p: Image Base\n", fsp_base); |
| 108 | printk(BIOS_SPEW, " 0x%p: TempRamInit\n", |
| 109 | &fsp_base[fsp_header->TempRamInitEntryOffset]); |
| 110 | printk(BIOS_SPEW, " 0x%p: FspInit\n", |
| 111 | &fsp_base[fsp_header->FspInitEntryOffset]); |
| 112 | if (fsp_header->HeaderRevision >= FSP_HEADER_REVISION_2) { |
| 113 | printk(BIOS_SPEW, " 0x%p: MemoryInit\n", |
| 114 | &fsp_base[fsp_header->FspMemoryInitEntryOffset]); |
| 115 | printk(BIOS_SPEW, " 0x%p: TempRamExit\n", |
| 116 | &fsp_base[fsp_header->TempRamExitEntryOffset]); |
| 117 | printk(BIOS_SPEW, " 0x%p: SiliconInit\n", |
| 118 | &fsp_base[fsp_header->FspSiliconInitEntryOffset]); |
| 119 | } |
| 120 | printk(BIOS_SPEW, " 0x%p: NotifyPhase\n", |
| 121 | &fsp_base[fsp_header->NotifyPhaseEntryOffset]); |
| 122 | printk(BIOS_SPEW, " 0x%p: Image End\n", |
| 123 | &fsp_base[fsp_header->ImageSize]); |
| 124 | #endif |
| 125 | } |
| 126 | |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 127 | void fsp_notify(u32 phase) |
| 128 | { |
| 129 | FSP_NOTIFY_PHASE notify_phase_proc; |
| 130 | NOTIFY_PHASE_PARAMS notify_phase_params; |
| 131 | EFI_STATUS status; |
| 132 | FSP_INFO_HEADER *fsp_header_ptr; |
| 133 | |
| 134 | fsp_header_ptr = fsp_get_fih(); |
| 135 | if (fsp_header_ptr == NULL) { |
Lee Leahy | a887492 | 2015-08-26 14:58:29 -0700 | [diff] [blame] | 136 | fsp_header_ptr = (void *)find_fsp(CONFIG_FSP_LOC); |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 137 | if ((u32)fsp_header_ptr < 0xff) { |
| 138 | /* output something in case there is no serial */ |
| 139 | post_code(0x4F); |
| 140 | die("Can't find the FSP!\n"); |
| 141 | } |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 142 | } |
| 143 | |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 144 | /* call FSP PEI to Notify PostPciEnumeration */ |
| 145 | notify_phase_proc = (FSP_NOTIFY_PHASE)(fsp_header_ptr->ImageBase + |
| 146 | fsp_header_ptr->NotifyPhaseEntryOffset); |
| 147 | notify_phase_params.Phase = phase; |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 148 | |
Duncan Laurie | fb50983 | 2015-11-22 14:53:57 -0800 | [diff] [blame] | 149 | if (phase == EnumInitPhaseReadyToBoot) { |
Duncan Laurie | fb50983 | 2015-11-22 14:53:57 -0800 | [diff] [blame] | 150 | timestamp_add_now(TS_FSP_BEFORE_FINALIZE); |
| 151 | post_code(POST_FSP_NOTIFY_BEFORE_FINALIZE); |
Lee Leahy | a5244c3 | 2015-12-17 11:13:01 -0800 | [diff] [blame] | 152 | } else { |
| 153 | timestamp_add_now(TS_FSP_BEFORE_ENUMERATE); |
| 154 | post_code(POST_FSP_NOTIFY_BEFORE_ENUMERATE); |
Duncan Laurie | fb50983 | 2015-11-22 14:53:57 -0800 | [diff] [blame] | 155 | } |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 156 | |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 157 | status = notify_phase_proc(¬ify_phase_params); |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 158 | |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 159 | timestamp_add_now(phase == EnumInitPhaseReadyToBoot ? |
| 160 | TS_FSP_AFTER_FINALIZE : TS_FSP_AFTER_ENUMERATE); |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 161 | |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 162 | if (status != 0) |
| 163 | printk(BIOS_ERR, "FSP API NotifyPhase failed for phase 0x%x with status: 0x%x\n", |
| 164 | phase, status); |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 165 | } |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 166 | |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 167 | static void fsp_notify_boot_state_callback(void *arg) |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 168 | { |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 169 | u32 phase = (u32)arg; |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 170 | |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 171 | printk(BIOS_SPEW, "Calling FspNotify(0x%08x)\n", phase); |
| 172 | fsp_notify(phase); |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 173 | } |
| 174 | |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 175 | BOOT_STATE_INIT_ENTRY(BS_DEV_RESOURCES, BS_ON_EXIT, |
| 176 | fsp_notify_boot_state_callback, |
| 177 | (void *)EnumInitPhaseAfterPciEnumeration); |
| 178 | BOOT_STATE_INIT_ENTRY(BS_PAYLOAD_LOAD, BS_ON_EXIT, |
| 179 | fsp_notify_boot_state_callback, |
| 180 | (void *)EnumInitPhaseReadyToBoot); |
| 181 | BOOT_STATE_INIT_ENTRY(BS_OS_RESUME, BS_ON_ENTRY, |
| 182 | fsp_notify_boot_state_callback, |
| 183 | (void *)EnumInitPhaseReadyToBoot); |
| 184 | |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 185 | struct fsp_runtime { |
| 186 | uint32_t fih; |
| 187 | uint32_t hob_list; |
Stefan Reinauer | 6a00113 | 2017-07-13 02:20:27 +0200 | [diff] [blame] | 188 | } __packed; |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 189 | |
| 190 | |
| 191 | void fsp_set_runtime(FSP_INFO_HEADER *fih, void *hob_list) |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 192 | { |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 193 | struct fsp_runtime *fspr; |
| 194 | |
| 195 | fspr = cbmem_add(CBMEM_ID_FSP_RUNTIME, sizeof(*fspr)); |
| 196 | |
| 197 | if (fspr == NULL) |
| 198 | die("Can't save FSP runtime information.\n"); |
| 199 | |
| 200 | fspr->fih = (uintptr_t)fih; |
| 201 | fspr->hob_list = (uintptr_t)hob_list; |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 202 | } |
| 203 | |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 204 | FSP_INFO_HEADER *fsp_get_fih(void) |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 205 | { |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 206 | struct fsp_runtime *fspr; |
| 207 | |
| 208 | fspr = cbmem_find(CBMEM_ID_FSP_RUNTIME); |
| 209 | |
| 210 | if (fspr == NULL) |
| 211 | return NULL; |
| 212 | |
| 213 | return (void *)(uintptr_t)fspr->fih; |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 214 | } |
| 215 | |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 216 | void *fsp_get_hob_list(void) |
| 217 | { |
| 218 | struct fsp_runtime *fspr; |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 219 | |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 220 | fspr = cbmem_find(CBMEM_ID_FSP_RUNTIME); |
| 221 | |
| 222 | if (fspr == NULL) |
| 223 | return NULL; |
| 224 | |
| 225 | return (void *)(uintptr_t)fspr->hob_list; |
| 226 | } |
| 227 | |
| 228 | void fsp_update_fih(FSP_INFO_HEADER *fih) |
| 229 | { |
| 230 | struct fsp_runtime *fspr; |
| 231 | |
| 232 | fspr = cbmem_find(CBMEM_ID_FSP_RUNTIME); |
| 233 | |
| 234 | if (fspr == NULL) |
| 235 | die("Can't update FSP runtime information.\n"); |
| 236 | |
| 237 | fspr->fih = (uintptr_t)fih; |
| 238 | } |
Lee Leahy | 94b856e | 2015-10-15 12:07:03 -0700 | [diff] [blame] | 239 | |
Lee Leahy | 66208bd | 2015-10-15 16:17:58 -0700 | [diff] [blame] | 240 | void fsp_display_upd_value(const char *name, uint32_t size, uint64_t old, |
Lee Leahy | 94b856e | 2015-10-15 12:07:03 -0700 | [diff] [blame] | 241 | uint64_t new) |
| 242 | { |
| 243 | if (old == new) { |
| 244 | switch (size) { |
| 245 | case 1: |
| 246 | printk(BIOS_SPEW, " 0x%02llx: %s\n", new, name); |
| 247 | break; |
| 248 | |
| 249 | case 2: |
| 250 | printk(BIOS_SPEW, " 0x%04llx: %s\n", new, name); |
| 251 | break; |
| 252 | |
| 253 | case 4: |
| 254 | printk(BIOS_SPEW, " 0x%08llx: %s\n", new, name); |
| 255 | break; |
| 256 | |
| 257 | case 8: |
| 258 | printk(BIOS_SPEW, " 0x%016llx: %s\n", new, name); |
| 259 | break; |
| 260 | } |
| 261 | } else { |
| 262 | switch (size) { |
| 263 | case 1: |
| 264 | printk(BIOS_SPEW, " 0x%02llx --> 0x%02llx: %s\n", old, |
| 265 | new, name); |
| 266 | break; |
| 267 | |
| 268 | case 2: |
| 269 | printk(BIOS_SPEW, " 0x%04llx --> 0x%04llx: %s\n", old, |
| 270 | new, name); |
| 271 | break; |
| 272 | |
| 273 | case 4: |
| 274 | printk(BIOS_SPEW, " 0x%08llx --> 0x%08llx: %s\n", old, |
| 275 | new, name); |
| 276 | break; |
| 277 | |
| 278 | case 8: |
| 279 | printk(BIOS_SPEW, " 0x%016llx --> 0x%016llx: %s\n", |
| 280 | old, new, name); |
| 281 | break; |
| 282 | } |
| 283 | } |
| 284 | } |
Lee Leahy | c52a4f7 | 2016-08-09 09:02:13 -0700 | [diff] [blame] | 285 | |
Lee Leahy | 216712a | 2017-03-17 11:23:32 -0700 | [diff] [blame] | 286 | __attribute__((cdecl)) size_t fsp_write_line(uint8_t *buffer, |
| 287 | size_t number_of_bytes) |
Lee Leahy | c52a4f7 | 2016-08-09 09:02:13 -0700 | [diff] [blame] | 288 | { |
| 289 | console_write_line(buffer, number_of_bytes); |
| 290 | return number_of_bytes; |
| 291 | } |