Ronald G. Minnich | 9831244 | 2016-02-12 22:37:48 +0000 | [diff] [blame] | 1 | /* |
Timothy Pearson | 6695901 | 2016-03-09 17:21:33 -0600 | [diff] [blame] | 2 | * Early initialization code for POWER8. |
Ronald G. Minnich | 9831244 | 2016-02-12 22:37:48 +0000 | [diff] [blame] | 3 | * |
Timothy Pearson | 6695901 | 2016-03-09 17:21:33 -0600 | [diff] [blame] | 4 | * Copyright 2016 Raptor Engineering, LLC |
Ronald G. Minnich | 9831244 | 2016-02-12 22:37:48 +0000 | [diff] [blame] | 5 | * Copyright 2013 Google Inc. |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU General Public License as |
| 9 | * published by the Free Software Foundation; version 2 of |
| 10 | * the License. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the |
| 15 | * GNU General Public License for more details. |
| 16 | */ |
| 17 | |
| 18 | .section ".text._start", "ax", %progbits |
| 19 | .globl _start |
Timothy Pearson | 6695901 | 2016-03-09 17:21:33 -0600 | [diff] [blame] | 20 | .org 0x100, 0xff |
Ronald G. Minnich | 9831244 | 2016-02-12 22:37:48 +0000 | [diff] [blame] | 21 | _start: |
| 22 | b _start |
| 23 | .section ".id", "a", %progbits |
| 24 | |
| 25 | .section ".id", "a", @progbits |
| 26 | |
| 27 | .globl __id_start |
| 28 | __id_start: |
| 29 | ver: |
| 30 | .asciz "4" //COREBOOT_VERSION |
| 31 | vendor: |
| 32 | .asciz "qemu" //CONFIG_MAINBOARD_VENDOR |
| 33 | part: |
| 34 | .asciz "1" //CONFIG_MAINBOARD_PART_NUMBER |
| 35 | /* Reverse offset to the vendor id */ |
| 36 | .long __id_end + CONFIG_ID_SECTION_OFFSET - ver |
| 37 | /* Reverse offset to the vendor id */ |
| 38 | .long __id_end + CONFIG_ID_SECTION_OFFSET - vendor |
| 39 | /* Reverse offset to the part number */ |
| 40 | .long __id_end + CONFIG_ID_SECTION_OFFSET - part |
| 41 | /* of this romimage */ |
| 42 | .long CONFIG_ROM_SIZE |
| 43 | .globl __id_end |
| 44 | |
| 45 | __id_end: |
| 46 | .previous |