]> git.proxmox.com Git - mirror_edk2.git/blame - ArmVirtPkg/Library/ArmVirtDxeHobLib/HobLib.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / ArmVirtPkg / Library / ArmVirtDxeHobLib / HobLib.c
CommitLineData
ad90df8a 1/** @file\r
7a908953 2 HOB Library implementation for Dxe Phase with DebugLib dependency removed\r
ad90df8a 3\r
234dbcef 4Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
ad90df8a 5Copyright (c) 2014, Linaro Ltd. All rights reserved.<BR>\r
9792fb0e 6SPDX-License-Identifier: BSD-2-Clause-Patent\r
ad90df8a
AB
7\r
8**/\r
9\r
10#define ASSERT(Expression) \\r
11 do { \\r
12 if (!(Expression)) { \\r
13 CpuDeadLoop (); \\r
14 } \\r
15 } while (FALSE)\r
16\r
17#include <PiDxe.h>\r
18\r
19#include <Guid/HobList.h>\r
20\r
21#include <Library/HobLib.h>\r
22#include <Library/UefiLib.h>\r
23#include <Library/BaseMemoryLib.h>\r
24\r
25VOID *mHobList = NULL;\r
26\r
27/**\r
28 The constructor function caches the pointer to HOB list.\r
29\r
30 The constructor function gets the start address of HOB list from system configuration table.\r
31\r
32 @param ImageHandle The firmware allocated handle for the EFI image.\r
33 @param SystemTable A pointer to the EFI System Table.\r
34\r
35 @retval EFI_SUCCESS The constructor successfully gets HobList.\r
36 @retval Other value The constructor can't get HobList.\r
37\r
38**/\r
39EFI_STATUS\r
40EFIAPI\r
41HobLibConstructor (\r
42 IN EFI_HANDLE ImageHandle,\r
43 IN EFI_SYSTEM_TABLE *SystemTable\r
44 )\r
45{\r
2b16a4fb 46 UINTN Index;\r
ad90df8a
AB
47\r
48 for (Index = 0; Index < SystemTable->NumberOfTableEntries; Index++) {\r
49 if (CompareGuid (&gEfiHobListGuid, &(SystemTable->ConfigurationTable[Index].VendorGuid))) {\r
50 mHobList = SystemTable->ConfigurationTable[Index].VendorTable;\r
51 return EFI_SUCCESS;\r
52 }\r
53 }\r
54\r
55 return EFI_NOT_FOUND;\r
56}\r
57\r
58/**\r
59 Returns the pointer to the HOB list.\r
60\r
61 This function returns the pointer to first HOB in the list.\r
62 For PEI phase, the PEI service GetHobList() can be used to retrieve the pointer\r
63 to the HOB list. For the DXE phase, the HOB list pointer can be retrieved through\r
64 the EFI System Table by looking up theHOB list GUID in the System Configuration Table.\r
65 Since the System Configuration Table does not exist that the time the DXE Core is\r
66 launched, the DXE Core uses a global variable from the DXE Core Entry Point Library\r
67 to manage the pointer to the HOB list.\r
68\r
69 If the pointer to the HOB list is NULL, then ASSERT().\r
70\r
71 @return The pointer to the HOB list.\r
72\r
73**/\r
74VOID *\r
75EFIAPI\r
76GetHobList (\r
77 VOID\r
78 )\r
79{\r
80 ASSERT (mHobList != NULL);\r
81 return mHobList;\r
82}\r
83\r
84/**\r
85 Returns the next instance of a HOB type from the starting HOB.\r
86\r
87 This function searches the first instance of a HOB type from the starting HOB pointer.\r
88 If there does not exist such HOB type from the starting HOB pointer, it will return NULL.\r
89 In contrast with macro GET_NEXT_HOB(), this function does not skip the starting HOB pointer\r
90 unconditionally: it returns HobStart back if HobStart itself meets the requirement;\r
91 caller is required to use GET_NEXT_HOB() if it wishes to skip current HobStart.\r
92\r
93 If HobStart is NULL, then ASSERT().\r
94\r
95 @param Type The HOB type to return.\r
96 @param HobStart The starting HOB pointer to search from.\r
97\r
98 @return The next instance of a HOB type from the starting HOB.\r
99\r
100**/\r
101VOID *\r
102EFIAPI\r
103GetNextHob (\r
2b16a4fb
MK
104 IN UINT16 Type,\r
105 IN CONST VOID *HobStart\r
ad90df8a
AB
106 )\r
107{\r
108 EFI_PEI_HOB_POINTERS Hob;\r
109\r
110 ASSERT (HobStart != NULL);\r
111\r
2b16a4fb 112 Hob.Raw = (UINT8 *)HobStart;\r
ad90df8a
AB
113 //\r
114 // Parse the HOB list until end of list or matching type is found.\r
115 //\r
116 while (!END_OF_HOB_LIST (Hob)) {\r
117 if (Hob.Header->HobType == Type) {\r
118 return Hob.Raw;\r
119 }\r
2b16a4fb 120\r
ad90df8a
AB
121 Hob.Raw = GET_NEXT_HOB (Hob);\r
122 }\r
2b16a4fb 123\r
ad90df8a
AB
124 return NULL;\r
125}\r
126\r
127/**\r
128 Returns the first instance of a HOB type among the whole HOB list.\r
129\r
130 This function searches the first instance of a HOB type among the whole HOB list.\r
131 If there does not exist such HOB type in the HOB list, it will return NULL.\r
132\r
133 If the pointer to the HOB list is NULL, then ASSERT().\r
134\r
135 @param Type The HOB type to return.\r
136\r
137 @return The next instance of a HOB type from the starting HOB.\r
138\r
139**/\r
140VOID *\r
141EFIAPI\r
142GetFirstHob (\r
2b16a4fb 143 IN UINT16 Type\r
ad90df8a
AB
144 )\r
145{\r
2b16a4fb 146 VOID *HobList;\r
ad90df8a
AB
147\r
148 HobList = GetHobList ();\r
149 return GetNextHob (Type, HobList);\r
150}\r
151\r
152/**\r
153 Returns the next instance of the matched GUID HOB from the starting HOB.\r
154\r
155 This function searches the first instance of a HOB from the starting HOB pointer.\r
156 Such HOB should satisfy two conditions:\r
157 its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid.\r
158 If there does not exist such HOB from the starting HOB pointer, it will return NULL.\r
159 Caller is required to apply GET_GUID_HOB_DATA () and GET_GUID_HOB_DATA_SIZE ()\r
160 to extract the data section and its size information, respectively.\r
161 In contrast with macro GET_NEXT_HOB(), this function does not skip the starting HOB pointer\r
162 unconditionally: it returns HobStart back if HobStart itself meets the requirement;\r
163 caller is required to use GET_NEXT_HOB() if it wishes to skip current HobStart.\r
164\r
165 If Guid is NULL, then ASSERT().\r
166 If HobStart is NULL, then ASSERT().\r
167\r
168 @param Guid The GUID to match with in the HOB list.\r
169 @param HobStart A pointer to a Guid.\r
170\r
171 @return The next instance of the matched GUID HOB from the starting HOB.\r
172\r
173**/\r
174VOID *\r
175EFIAPI\r
176GetNextGuidHob (\r
2b16a4fb
MK
177 IN CONST EFI_GUID *Guid,\r
178 IN CONST VOID *HobStart\r
ad90df8a
AB
179 )\r
180{\r
181 EFI_PEI_HOB_POINTERS GuidHob;\r
182\r
2b16a4fb 183 GuidHob.Raw = (UINT8 *)HobStart;\r
ad90df8a
AB
184 while ((GuidHob.Raw = GetNextHob (EFI_HOB_TYPE_GUID_EXTENSION, GuidHob.Raw)) != NULL) {\r
185 if (CompareGuid (Guid, &GuidHob.Guid->Name)) {\r
186 break;\r
187 }\r
2b16a4fb 188\r
ad90df8a
AB
189 GuidHob.Raw = GET_NEXT_HOB (GuidHob);\r
190 }\r
2b16a4fb 191\r
ad90df8a
AB
192 return GuidHob.Raw;\r
193}\r
194\r
195/**\r
196 Returns the first instance of the matched GUID HOB among the whole HOB list.\r
197\r
198 This function searches the first instance of a HOB among the whole HOB list.\r
199 Such HOB should satisfy two conditions:\r
200 its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid.\r
201 If there does not exist such HOB from the starting HOB pointer, it will return NULL.\r
202 Caller is required to apply GET_GUID_HOB_DATA () and GET_GUID_HOB_DATA_SIZE ()\r
203 to extract the data section and its size information, respectively.\r
204\r
205 If the pointer to the HOB list is NULL, then ASSERT().\r
206 If Guid is NULL, then ASSERT().\r
207\r
208 @param Guid The GUID to match with in the HOB list.\r
209\r
210 @return The first instance of the matched GUID HOB among the whole HOB list.\r
211\r
212**/\r
213VOID *\r
214EFIAPI\r
215GetFirstGuidHob (\r
2b16a4fb 216 IN CONST EFI_GUID *Guid\r
ad90df8a
AB
217 )\r
218{\r
2b16a4fb 219 VOID *HobList;\r
ad90df8a
AB
220\r
221 HobList = GetHobList ();\r
222 return GetNextGuidHob (Guid, HobList);\r
223}\r
224\r
225/**\r
226 Get the system boot mode from the HOB list.\r
227\r
228 This function returns the system boot mode information from the\r
229 PHIT HOB in HOB list.\r
230\r
231 If the pointer to the HOB list is NULL, then ASSERT().\r
232\r
233 @param VOID\r
234\r
235 @return The Boot Mode.\r
236\r
237**/\r
238EFI_BOOT_MODE\r
239EFIAPI\r
240GetBootModeHob (\r
241 VOID\r
242 )\r
243{\r
2b16a4fb 244 EFI_HOB_HANDOFF_INFO_TABLE *HandOffHob;\r
ad90df8a 245\r
2b16a4fb 246 HandOffHob = (EFI_HOB_HANDOFF_INFO_TABLE *)GetHobList ();\r
ad90df8a 247\r
2b16a4fb 248 return HandOffHob->BootMode;\r
ad90df8a
AB
249}\r
250\r
251/**\r
252 Builds a HOB for a loaded PE32 module.\r
253\r
254 This function builds a HOB for a loaded PE32 module.\r
255 It can only be invoked during PEI phase;\r
256 for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
257\r
258 If ModuleName is NULL, then ASSERT().\r
259 If there is no additional space for HOB creation, then ASSERT().\r
260\r
261 @param ModuleName The GUID File Name of the module.\r
262 @param MemoryAllocationModule The 64 bit physical address of the module.\r
263 @param ModuleLength The length of the module in bytes.\r
264 @param EntryPoint The 64 bit physical address of the module entry point.\r
265\r
266**/\r
267VOID\r
268EFIAPI\r
269BuildModuleHob (\r
2b16a4fb
MK
270 IN CONST EFI_GUID *ModuleName,\r
271 IN EFI_PHYSICAL_ADDRESS MemoryAllocationModule,\r
272 IN UINT64 ModuleLength,\r
273 IN EFI_PHYSICAL_ADDRESS EntryPoint\r
ad90df8a
AB
274 )\r
275{\r
276 //\r
277 // PEI HOB is read only for DXE phase\r
278 //\r
279 ASSERT (FALSE);\r
280}\r
281\r
282/**\r
283 Builds a HOB that describes a chunk of system memory.\r
284\r
285 This function builds a HOB that describes a chunk of system memory.\r
286 It can only be invoked during PEI phase;\r
287 for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
288\r
289 If there is no additional space for HOB creation, then ASSERT().\r
290\r
291 @param ResourceType The type of resource described by this HOB.\r
292 @param ResourceAttribute The resource attributes of the memory described by this HOB.\r
293 @param PhysicalStart The 64 bit physical address of memory described by this HOB.\r
294 @param NumberOfBytes The length of the memory described by this HOB in bytes.\r
295\r
296**/\r
297VOID\r
298EFIAPI\r
299BuildResourceDescriptorHob (\r
300 IN EFI_RESOURCE_TYPE ResourceType,\r
301 IN EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute,\r
302 IN EFI_PHYSICAL_ADDRESS PhysicalStart,\r
303 IN UINT64 NumberOfBytes\r
304 )\r
305{\r
306 //\r
307 // PEI HOB is read only for DXE phase\r
308 //\r
309 ASSERT (FALSE);\r
310}\r
311\r
312/**\r
313 Builds a customized HOB tagged with a GUID for identification and returns\r
314 the start address of GUID HOB data.\r
315\r
316 This function builds a customized HOB tagged with a GUID for identification\r
317 and returns the start address of GUID HOB data so that caller can fill the customized data.\r
318 The HOB Header and Name field is already stripped.\r
319 It can only be invoked during PEI phase;\r
320 for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
321\r
322 If Guid is NULL, then ASSERT().\r
323 If there is no additional space for HOB creation, then ASSERT().\r
324 If DataLength > (0xFFF8 - sizeof (EFI_HOB_GUID_TYPE)), then ASSERT().\r
325 HobLength is UINT16 and multiples of 8 bytes, so the max HobLength is 0xFFF8.\r
326\r
327 @param Guid The GUID to tag the customized HOB.\r
328 @param DataLength The size of the data payload for the GUID HOB.\r
329\r
330 @retval NULL The GUID HOB could not be allocated.\r
331 @retval others The start address of GUID HOB data.\r
332\r
333**/\r
334VOID *\r
335EFIAPI\r
336BuildGuidHob (\r
2b16a4fb
MK
337 IN CONST EFI_GUID *Guid,\r
338 IN UINTN DataLength\r
ad90df8a
AB
339 )\r
340{\r
341 //\r
342 // PEI HOB is read only for DXE phase\r
343 //\r
344 ASSERT (FALSE);\r
345 return NULL;\r
346}\r
347\r
348/**\r
349 Builds a customized HOB tagged with a GUID for identification, copies the input data to the HOB\r
350 data field, and returns the start address of the GUID HOB data.\r
351\r
352 This function builds a customized HOB tagged with a GUID for identification and copies the input\r
353 data to the HOB data field and returns the start address of the GUID HOB data. It can only be\r
354 invoked during PEI phase; for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
355 The HOB Header and Name field is already stripped.\r
356 It can only be invoked during PEI phase;\r
357 for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
358\r
359 If Guid is NULL, then ASSERT().\r
360 If Data is NULL and DataLength > 0, then ASSERT().\r
361 If there is no additional space for HOB creation, then ASSERT().\r
362 If DataLength > (0xFFF8 - sizeof (EFI_HOB_GUID_TYPE)), then ASSERT().\r
363 HobLength is UINT16 and multiples of 8 bytes, so the max HobLength is 0xFFF8.\r
364\r
365 @param Guid The GUID to tag the customized HOB.\r
366 @param Data The data to be copied into the data field of the GUID HOB.\r
367 @param DataLength The size of the data payload for the GUID HOB.\r
368\r
369 @retval NULL The GUID HOB could not be allocated.\r
370 @retval others The start address of GUID HOB data.\r
371\r
372**/\r
373VOID *\r
374EFIAPI\r
375BuildGuidDataHob (\r
2b16a4fb
MK
376 IN CONST EFI_GUID *Guid,\r
377 IN VOID *Data,\r
378 IN UINTN DataLength\r
ad90df8a
AB
379 )\r
380{\r
381 //\r
382 // PEI HOB is read only for DXE phase\r
383 //\r
384 ASSERT (FALSE);\r
385 return NULL;\r
386}\r
387\r
388/**\r
389 Builds a Firmware Volume HOB.\r
390\r
391 This function builds a Firmware Volume HOB.\r
392 It can only be invoked during PEI phase;\r
393 for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
394\r
395 If there is no additional space for HOB creation, then ASSERT().\r
a0426207 396 If the FvImage buffer is not at its required alignment, then ASSERT().\r
ad90df8a
AB
397\r
398 @param BaseAddress The base address of the Firmware Volume.\r
399 @param Length The size of the Firmware Volume in bytes.\r
400\r
401**/\r
402VOID\r
403EFIAPI\r
404BuildFvHob (\r
2b16a4fb
MK
405 IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
406 IN UINT64 Length\r
ad90df8a
AB
407 )\r
408{\r
409 //\r
410 // PEI HOB is read only for DXE phase\r
411 //\r
412 ASSERT (FALSE);\r
413}\r
414\r
415/**\r
416 Builds a EFI_HOB_TYPE_FV2 HOB.\r
417\r
418 This function builds a EFI_HOB_TYPE_FV2 HOB.\r
419 It can only be invoked during PEI phase;\r
420 for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
421\r
422 If there is no additional space for HOB creation, then ASSERT().\r
a0426207 423 If the FvImage buffer is not at its required alignment, then ASSERT().\r
ad90df8a
AB
424\r
425 @param BaseAddress The base address of the Firmware Volume.\r
426 @param Length The size of the Firmware Volume in bytes.\r
427 @param FvName The name of the Firmware Volume.\r
428 @param FileName The name of the file.\r
429\r
430**/\r
431VOID\r
432EFIAPI\r
433BuildFv2Hob (\r
2b16a4fb
MK
434 IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
435 IN UINT64 Length,\r
436 IN CONST EFI_GUID *FvName,\r
437 IN CONST EFI_GUID *FileName\r
ad90df8a
AB
438 )\r
439{\r
440 ASSERT (FALSE);\r
441}\r
442\r
234dbcef
SZ
443/**\r
444 Builds a EFI_HOB_TYPE_FV3 HOB.\r
445\r
446 This function builds a EFI_HOB_TYPE_FV3 HOB.\r
447 It can only be invoked during PEI phase;\r
448 for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
449\r
450 If there is no additional space for HOB creation, then ASSERT().\r
451 If the FvImage buffer is not at its required alignment, then ASSERT().\r
452\r
453 @param BaseAddress The base address of the Firmware Volume.\r
454 @param Length The size of the Firmware Volume in bytes.\r
455 @param AuthenticationStatus The authentication status.\r
456 @param ExtractedFv TRUE if the FV was extracted as a file within\r
457 another firmware volume. FALSE otherwise.\r
458 @param FvName The name of the Firmware Volume.\r
459 Valid only if IsExtractedFv is TRUE.\r
460 @param FileName The name of the file.\r
461 Valid only if IsExtractedFv is TRUE.\r
462\r
463**/\r
464VOID\r
465EFIAPI\r
466BuildFv3Hob (\r
2b16a4fb
MK
467 IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
468 IN UINT64 Length,\r
469 IN UINT32 AuthenticationStatus,\r
470 IN BOOLEAN ExtractedFv,\r
471 IN CONST EFI_GUID *FvName OPTIONAL,\r
472 IN CONST EFI_GUID *FileName OPTIONAL\r
234dbcef
SZ
473 )\r
474{\r
475 ASSERT (FALSE);\r
476}\r
ad90df8a
AB
477\r
478/**\r
479 Builds a Capsule Volume HOB.\r
480\r
481 This function builds a Capsule Volume HOB.\r
482 It can only be invoked during PEI phase;\r
483 for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
484\r
485 If the platform does not support Capsule Volume HOBs, then ASSERT().\r
486 If there is no additional space for HOB creation, then ASSERT().\r
487\r
488 @param BaseAddress The base address of the Capsule Volume.\r
489 @param Length The size of the Capsule Volume in bytes.\r
490\r
491**/\r
492VOID\r
493EFIAPI\r
494BuildCvHob (\r
2b16a4fb
MK
495 IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
496 IN UINT64 Length\r
ad90df8a
AB
497 )\r
498{\r
499 //\r
500 // PEI HOB is read only for DXE phase\r
501 //\r
502 ASSERT (FALSE);\r
503}\r
504\r
505/**\r
506 Builds a HOB for the CPU.\r
507\r
508 This function builds a HOB for the CPU.\r
509 It can only be invoked during PEI phase;\r
510 for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
511\r
512 If there is no additional space for HOB creation, then ASSERT().\r
513\r
514 @param SizeOfMemorySpace The maximum physical memory addressability of the processor.\r
515 @param SizeOfIoSpace The maximum physical I/O addressability of the processor.\r
516\r
517**/\r
518VOID\r
519EFIAPI\r
520BuildCpuHob (\r
2b16a4fb
MK
521 IN UINT8 SizeOfMemorySpace,\r
522 IN UINT8 SizeOfIoSpace\r
ad90df8a
AB
523 )\r
524{\r
525 //\r
526 // PEI HOB is read only for DXE phase\r
527 //\r
528 ASSERT (FALSE);\r
529}\r
530\r
531/**\r
532 Builds a HOB for the Stack.\r
533\r
534 This function builds a HOB for the stack.\r
535 It can only be invoked during PEI phase;\r
536 for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
537\r
538 If there is no additional space for HOB creation, then ASSERT().\r
539\r
540 @param BaseAddress The 64 bit physical address of the Stack.\r
541 @param Length The length of the stack in bytes.\r
542\r
543**/\r
544VOID\r
545EFIAPI\r
546BuildStackHob (\r
2b16a4fb
MK
547 IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
548 IN UINT64 Length\r
ad90df8a
AB
549 )\r
550{\r
551 //\r
552 // PEI HOB is read only for DXE phase\r
553 //\r
554 ASSERT (FALSE);\r
555}\r
556\r
557/**\r
558 Builds a HOB for the BSP store.\r
559\r
560 This function builds a HOB for BSP store.\r
561 It can only be invoked during PEI phase;\r
562 for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
563\r
564 If there is no additional space for HOB creation, then ASSERT().\r
565\r
566 @param BaseAddress The 64 bit physical address of the BSP.\r
567 @param Length The length of the BSP store in bytes.\r
568 @param MemoryType Type of memory allocated by this HOB.\r
569\r
570**/\r
571VOID\r
572EFIAPI\r
573BuildBspStoreHob (\r
2b16a4fb
MK
574 IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
575 IN UINT64 Length,\r
576 IN EFI_MEMORY_TYPE MemoryType\r
ad90df8a
AB
577 )\r
578{\r
579 //\r
580 // PEI HOB is read only for DXE phase\r
581 //\r
582 ASSERT (FALSE);\r
583}\r
584\r
585/**\r
586 Builds a HOB for the memory allocation.\r
587\r
588 This function builds a HOB for the memory allocation.\r
589 It can only be invoked during PEI phase;\r
590 for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.\r
591\r
592 If there is no additional space for HOB creation, then ASSERT().\r
593\r
594 @param BaseAddress The 64 bit physical address of the memory.\r
595 @param Length The length of the memory allocation in bytes.\r
596 @param MemoryType Type of memory allocated by this HOB.\r
597\r
598**/\r
599VOID\r
600EFIAPI\r
601BuildMemoryAllocationHob (\r
2b16a4fb
MK
602 IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
603 IN UINT64 Length,\r
604 IN EFI_MEMORY_TYPE MemoryType\r
ad90df8a
AB
605 )\r
606{\r
607 //\r
608 // PEI HOB is read only for DXE phase\r
609 //\r
610 ASSERT (FALSE);\r
611}\r