Simon Schwarz | 9ea5c6e | 2011-09-14 15:33:34 -0400 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2010 |
| 3 | * Texas Instruments, <www.ti.com> |
| 4 | * |
| 5 | * Aneesh V <aneesh@ti.com> |
| 6 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
Simon Schwarz | 9ea5c6e | 2011-09-14 15:33:34 -0400 | [diff] [blame] | 8 | */ |
| 9 | #include <common.h> |
Simon Glass | dc3dedf | 2015-06-23 15:38:51 -0600 | [diff] [blame] | 10 | #include <dm.h> |
Tom Rini | 47f7bca | 2012-08-13 12:03:19 -0700 | [diff] [blame] | 11 | #include <spl.h> |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 12 | #include <linux/compiler.h> |
Simon Schwarz | 9ea5c6e | 2011-09-14 15:33:34 -0400 | [diff] [blame] | 13 | #include <asm/u-boot.h> |
Simon Schwarz | 9ea5c6e | 2011-09-14 15:33:34 -0400 | [diff] [blame] | 14 | #include <mmc.h> |
Tom Rini | e4c444b | 2013-06-28 14:43:01 -0400 | [diff] [blame] | 15 | #include <image.h> |
Simon Schwarz | 9ea5c6e | 2011-09-14 15:33:34 -0400 | [diff] [blame] | 16 | |
| 17 | DECLARE_GLOBAL_DATA_PTR; |
| 18 | |
Paul Kocialkowski | b97300b | 2014-11-08 23:14:56 +0100 | [diff] [blame] | 19 | static int mmc_load_image_raw_sector(struct mmc *mmc, unsigned long sector) |
Simon Schwarz | 9ea5c6e | 2011-09-14 15:33:34 -0400 | [diff] [blame] | 20 | { |
Paul Kocialkowski | 3bc37b6 | 2015-05-22 12:45:35 +0200 | [diff] [blame] | 21 | unsigned long count; |
Peter Korsgaard | 2e22210 | 2013-03-21 04:55:17 +0000 | [diff] [blame] | 22 | u32 image_size_sectors; |
| 23 | struct image_header *header; |
Simon Schwarz | 9ea5c6e | 2011-09-14 15:33:34 -0400 | [diff] [blame] | 24 | |
| 25 | header = (struct image_header *)(CONFIG_SYS_TEXT_BASE - |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 26 | sizeof(struct image_header)); |
Simon Schwarz | 9ea5c6e | 2011-09-14 15:33:34 -0400 | [diff] [blame] | 27 | |
| 28 | /* read image header to find the image size & load address */ |
Paul Kocialkowski | 3bc37b6 | 2015-05-22 12:45:35 +0200 | [diff] [blame] | 29 | count = mmc->block_dev.block_read(0, sector, 1, header); |
Simon Glass | fdfa39d | 2015-06-23 15:38:47 -0600 | [diff] [blame] | 30 | debug("read sector %lx, count=%lu\n", sector, count); |
Paul Kocialkowski | 3bc37b6 | 2015-05-22 12:45:35 +0200 | [diff] [blame] | 31 | if (count == 0) |
Simon Schwarz | 9ea5c6e | 2011-09-14 15:33:34 -0400 | [diff] [blame] | 32 | goto end; |
| 33 | |
Simon Glass | fdfa39d | 2015-06-23 15:38:47 -0600 | [diff] [blame] | 34 | if (image_get_magic(header) != IH_MAGIC) { |
| 35 | puts("bad magic\n"); |
Tom Rini | e4c444b | 2013-06-28 14:43:01 -0400 | [diff] [blame] | 36 | return -1; |
Simon Glass | fdfa39d | 2015-06-23 15:38:47 -0600 | [diff] [blame] | 37 | } |
Tom Rini | e4c444b | 2013-06-28 14:43:01 -0400 | [diff] [blame] | 38 | |
Simon Schwarz | 9ea5c6e | 2011-09-14 15:33:34 -0400 | [diff] [blame] | 39 | spl_parse_image_header(header); |
| 40 | |
| 41 | /* convert size to sectors - round up */ |
Tom Rini | f088125 | 2012-08-14 10:25:15 -0700 | [diff] [blame] | 42 | image_size_sectors = (spl_image.size + mmc->read_bl_len - 1) / |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 43 | mmc->read_bl_len; |
Simon Schwarz | 9ea5c6e | 2011-09-14 15:33:34 -0400 | [diff] [blame] | 44 | |
| 45 | /* Read the header too to avoid extra memcpy */ |
Paul Kocialkowski | 3bc37b6 | 2015-05-22 12:45:35 +0200 | [diff] [blame] | 46 | count = mmc->block_dev.block_read(0, sector, image_size_sectors, |
Simon Glass | fdfa39d | 2015-06-23 15:38:47 -0600 | [diff] [blame] | 47 | (void *)spl_image.load_addr); |
| 48 | debug("read %x sectors to %x\n", image_size_sectors, |
| 49 | spl_image.load_addr); |
Simon Schwarz | 9ea5c6e | 2011-09-14 15:33:34 -0400 | [diff] [blame] | 50 | |
| 51 | end: |
Paul Kocialkowski | 1ec2646 | 2015-06-03 18:48:51 +0200 | [diff] [blame] | 52 | if (count == 0) { |
Paul Burton | 8112f5f | 2013-09-04 16:12:24 +0100 | [diff] [blame] | 53 | #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT |
Paul Kocialkowski | 1ec2646 | 2015-06-03 18:48:51 +0200 | [diff] [blame] | 54 | puts("spl: mmc block read error\n"); |
Paul Burton | 8112f5f | 2013-09-04 16:12:24 +0100 | [diff] [blame] | 55 | #endif |
Paul Kocialkowski | 3bc37b6 | 2015-05-22 12:45:35 +0200 | [diff] [blame] | 56 | return -1; |
Paul Kocialkowski | 1ec2646 | 2015-06-03 18:48:51 +0200 | [diff] [blame] | 57 | } |
Paul Kocialkowski | 3bc37b6 | 2015-05-22 12:45:35 +0200 | [diff] [blame] | 58 | |
| 59 | return 0; |
Simon Schwarz | 9ea5c6e | 2011-09-14 15:33:34 -0400 | [diff] [blame] | 60 | } |
| 61 | |
Paul Kocialkowski | b97300b | 2014-11-08 23:14:56 +0100 | [diff] [blame] | 62 | #ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION |
| 63 | static int mmc_load_image_raw_partition(struct mmc *mmc, int partition) |
| 64 | { |
| 65 | disk_partition_t info; |
Paul Kocialkowski | 3bc37b6 | 2015-05-22 12:45:35 +0200 | [diff] [blame] | 66 | int err; |
Paul Kocialkowski | b97300b | 2014-11-08 23:14:56 +0100 | [diff] [blame] | 67 | |
Paul Kocialkowski | 3bc37b6 | 2015-05-22 12:45:35 +0200 | [diff] [blame] | 68 | err = get_partition_info(&mmc->block_dev, partition, &info); |
| 69 | if (err) { |
Paul Kocialkowski | b97300b | 2014-11-08 23:14:56 +0100 | [diff] [blame] | 70 | #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT |
Paul Kocialkowski | 1ec2646 | 2015-06-03 18:48:51 +0200 | [diff] [blame] | 71 | puts("spl: partition error\n"); |
Paul Kocialkowski | b97300b | 2014-11-08 23:14:56 +0100 | [diff] [blame] | 72 | #endif |
| 73 | return -1; |
| 74 | } |
| 75 | |
| 76 | return mmc_load_image_raw_sector(mmc, info.start); |
| 77 | } |
| 78 | #endif |
| 79 | |
Peter Korsgaard | 2b75b0a | 2013-05-13 08:36:29 +0000 | [diff] [blame] | 80 | #ifdef CONFIG_SPL_OS_BOOT |
| 81 | static int mmc_load_image_raw_os(struct mmc *mmc) |
| 82 | { |
Paul Kocialkowski | 3bc37b6 | 2015-05-22 12:45:35 +0200 | [diff] [blame] | 83 | unsigned long count; |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 84 | |
Paul Kocialkowski | 3bc37b6 | 2015-05-22 12:45:35 +0200 | [diff] [blame] | 85 | count = mmc->block_dev.block_read(0, |
| 86 | CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR, |
| 87 | CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTORS, |
| 88 | (void *) CONFIG_SYS_SPL_ARGS_ADDR); |
| 89 | if (count == 0) { |
Paul Burton | 8112f5f | 2013-09-04 16:12:24 +0100 | [diff] [blame] | 90 | #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT |
Paul Kocialkowski | 1ec2646 | 2015-06-03 18:48:51 +0200 | [diff] [blame] | 91 | puts("spl: mmc block read error\n"); |
Paul Burton | 8112f5f | 2013-09-04 16:12:24 +0100 | [diff] [blame] | 92 | #endif |
Peter Korsgaard | 2b75b0a | 2013-05-13 08:36:29 +0000 | [diff] [blame] | 93 | return -1; |
| 94 | } |
| 95 | |
Paul Kocialkowski | b97300b | 2014-11-08 23:14:56 +0100 | [diff] [blame] | 96 | return mmc_load_image_raw_sector(mmc, |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 97 | CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR); |
Peter Korsgaard | 2b75b0a | 2013-05-13 08:36:29 +0000 | [diff] [blame] | 98 | } |
| 99 | #endif |
| 100 | |
Simon Schwarz | 9ea5c6e | 2011-09-14 15:33:34 -0400 | [diff] [blame] | 101 | void spl_mmc_load_image(void) |
| 102 | { |
| 103 | struct mmc *mmc; |
Simon Schwarz | 9ea5c6e | 2011-09-14 15:33:34 -0400 | [diff] [blame] | 104 | u32 boot_mode; |
Simon Glass | dc3dedf | 2015-06-23 15:38:51 -0600 | [diff] [blame] | 105 | int err = 0; |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 106 | __maybe_unused int part; |
Simon Schwarz | 9ea5c6e | 2011-09-14 15:33:34 -0400 | [diff] [blame] | 107 | |
Simon Glass | dc3dedf | 2015-06-23 15:38:51 -0600 | [diff] [blame] | 108 | #ifdef CONFIG_DM_MMC |
| 109 | struct udevice *dev; |
| 110 | |
| 111 | mmc_initialize(NULL); |
| 112 | err = uclass_get_device(UCLASS_MMC, 0, &dev); |
| 113 | mmc = NULL; |
| 114 | if (!err) |
| 115 | mmc = mmc_get_mmc_dev(dev); |
| 116 | #else |
Simon Schwarz | 9ea5c6e | 2011-09-14 15:33:34 -0400 | [diff] [blame] | 117 | mmc_initialize(gd->bd); |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 118 | |
Simon Schwarz | 9ea5c6e | 2011-09-14 15:33:34 -0400 | [diff] [blame] | 119 | /* We register only one device. So, the dev id is always 0 */ |
| 120 | mmc = find_mmc_device(0); |
| 121 | if (!mmc) { |
Paul Burton | 8112f5f | 2013-09-04 16:12:24 +0100 | [diff] [blame] | 122 | #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 123 | puts("spl: mmc device not found\n"); |
Paul Burton | 8112f5f | 2013-09-04 16:12:24 +0100 | [diff] [blame] | 124 | #endif |
Simon Schwarz | 9ea5c6e | 2011-09-14 15:33:34 -0400 | [diff] [blame] | 125 | hang(); |
| 126 | } |
Simon Glass | dc3dedf | 2015-06-23 15:38:51 -0600 | [diff] [blame] | 127 | #endif |
Simon Schwarz | 9ea5c6e | 2011-09-14 15:33:34 -0400 | [diff] [blame] | 128 | |
Simon Glass | dc3dedf | 2015-06-23 15:38:51 -0600 | [diff] [blame] | 129 | if (!err) |
| 130 | err = mmc_init(mmc); |
| 131 | |
Simon Schwarz | 9ea5c6e | 2011-09-14 15:33:34 -0400 | [diff] [blame] | 132 | if (err) { |
Paul Burton | 8112f5f | 2013-09-04 16:12:24 +0100 | [diff] [blame] | 133 | #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 134 | printf("spl: mmc init failed with error: %d\n", err); |
Paul Burton | 8112f5f | 2013-09-04 16:12:24 +0100 | [diff] [blame] | 135 | #endif |
Simon Schwarz | 9ea5c6e | 2011-09-14 15:33:34 -0400 | [diff] [blame] | 136 | hang(); |
| 137 | } |
Peter Korsgaard | 79adb7a | 2013-05-13 08:36:25 +0000 | [diff] [blame] | 138 | |
Tom Rini | 37189a1 | 2012-08-14 09:19:44 -0700 | [diff] [blame] | 139 | boot_mode = spl_boot_mode(); |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 140 | switch (boot_mode) { |
| 141 | case MMCSD_MODE_RAW: |
| 142 | debug("spl: mmc boot mode: raw\n"); |
| 143 | |
Peter Korsgaard | 2b75b0a | 2013-05-13 08:36:29 +0000 | [diff] [blame] | 144 | #ifdef CONFIG_SPL_OS_BOOT |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 145 | if (!spl_start_uboot()) { |
| 146 | err = mmc_load_image_raw_os(mmc); |
| 147 | if (!err) |
| 148 | return; |
| 149 | } |
Peter Korsgaard | 2b75b0a | 2013-05-13 08:36:29 +0000 | [diff] [blame] | 150 | #endif |
Paul Kocialkowski | 3ae8f4c | 2015-06-08 23:05:09 +0200 | [diff] [blame] | 151 | #if defined(CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION) |
Paul Kocialkowski | b97300b | 2014-11-08 23:14:56 +0100 | [diff] [blame] | 152 | err = mmc_load_image_raw_partition(mmc, |
| 153 | CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION); |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 154 | if (!err) |
| 155 | return; |
Paul Kocialkowski | 3ae8f4c | 2015-06-08 23:05:09 +0200 | [diff] [blame] | 156 | #elif defined(CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR) |
| 157 | err = mmc_load_image_raw_sector(mmc, |
| 158 | CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR); |
| 159 | if (!err) |
| 160 | return; |
| 161 | #endif |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 162 | case MMCSD_MODE_FS: |
| 163 | debug("spl: mmc boot mode: fs\n"); |
| 164 | |
Paul Kocialkowski | 3ae8f4c | 2015-06-08 23:05:09 +0200 | [diff] [blame] | 165 | #ifdef CONFIG_SYS_MMCSD_FS_BOOT_PARTITION |
Guillaume GARDET | 592f922 | 2014-10-15 17:53:12 +0200 | [diff] [blame] | 166 | #ifdef CONFIG_SPL_FAT_SUPPORT |
Peter Korsgaard | 7ad2cc7 | 2013-05-13 08:36:27 +0000 | [diff] [blame] | 167 | #ifdef CONFIG_SPL_OS_BOOT |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 168 | if (!spl_start_uboot()) { |
| 169 | err = spl_load_image_fat_os(&mmc->block_dev, |
| 170 | CONFIG_SYS_MMCSD_FS_BOOT_PARTITION); |
| 171 | if (!err) |
| 172 | return; |
| 173 | } |
Peter Korsgaard | 7ad2cc7 | 2013-05-13 08:36:27 +0000 | [diff] [blame] | 174 | #endif |
Paul Kocialkowski | 3ae8f4c | 2015-06-08 23:05:09 +0200 | [diff] [blame] | 175 | #ifdef CONFIG_SPL_FS_LOAD_PAYLOAD_NAME |
Dan Murphy | 773b594 | 2014-01-16 11:23:29 -0600 | [diff] [blame] | 176 | err = spl_load_image_fat(&mmc->block_dev, |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 177 | CONFIG_SYS_MMCSD_FS_BOOT_PARTITION, |
| 178 | CONFIG_SPL_FS_LOAD_PAYLOAD_NAME); |
| 179 | if (!err) |
| 180 | return; |
| 181 | #endif |
Paul Kocialkowski | 3ae8f4c | 2015-06-08 23:05:09 +0200 | [diff] [blame] | 182 | #endif |
Guillaume GARDET | 592f922 | 2014-10-15 17:53:12 +0200 | [diff] [blame] | 183 | #ifdef CONFIG_SPL_EXT_SUPPORT |
| 184 | #ifdef CONFIG_SPL_OS_BOOT |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 185 | if (!spl_start_uboot()) { |
| 186 | err = spl_load_image_ext_os(&mmc->block_dev, |
| 187 | CONFIG_SYS_MMCSD_FS_BOOT_PARTITION); |
| 188 | if (!err) |
| 189 | return; |
| 190 | } |
Tom Rini | 0da113e | 2012-08-10 09:27:14 -0700 | [diff] [blame] | 191 | #endif |
Paul Kocialkowski | 3ae8f4c | 2015-06-08 23:05:09 +0200 | [diff] [blame] | 192 | #ifdef CONFIG_SPL_FS_LOAD_PAYLOAD_NAME |
Guillaume GARDET | 592f922 | 2014-10-15 17:53:12 +0200 | [diff] [blame] | 193 | err = spl_load_image_ext(&mmc->block_dev, |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 194 | CONFIG_SYS_MMCSD_FS_BOOT_PARTITION, |
| 195 | CONFIG_SPL_FS_LOAD_PAYLOAD_NAME); |
| 196 | if (!err) |
| 197 | return; |
| 198 | #endif |
| 199 | #endif |
Paul Kocialkowski | 3ae8f4c | 2015-06-08 23:05:09 +0200 | [diff] [blame] | 200 | #endif |
Tom Rini | 7dbe63b | 2014-02-05 10:24:18 -0500 | [diff] [blame] | 201 | #ifdef CONFIG_SUPPORT_EMMC_BOOT |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 202 | case MMCSD_MODE_EMMCBOOT: |
Tom Rini | 7dbe63b | 2014-02-05 10:24:18 -0500 | [diff] [blame] | 203 | /* |
| 204 | * We need to check what the partition is configured to. |
| 205 | * 1 and 2 match up to boot0 / boot1 and 7 is user data |
| 206 | * which is the first physical partition (0). |
| 207 | */ |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 208 | part = (mmc->part_config >> 3) & PART_ACCESS_MASK; |
Tom Rini | 7dbe63b | 2014-02-05 10:24:18 -0500 | [diff] [blame] | 209 | |
| 210 | if (part == 7) |
| 211 | part = 0; |
| 212 | |
| 213 | if (mmc_switch_part(0, part)) { |
| 214 | #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 215 | puts("spl: mmc partition switch failed\n"); |
Tom Rini | 7dbe63b | 2014-02-05 10:24:18 -0500 | [diff] [blame] | 216 | #endif |
| 217 | hang(); |
| 218 | } |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 219 | |
Tom Rini | 7dbe63b | 2014-02-05 10:24:18 -0500 | [diff] [blame] | 220 | #ifdef CONFIG_SPL_OS_BOOT |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 221 | if (!spl_start_uboot()) { |
| 222 | err = mmc_load_image_raw_os(mmc); |
| 223 | if (!err) |
| 224 | return; |
| 225 | } |
Tom Rini | 7dbe63b | 2014-02-05 10:24:18 -0500 | [diff] [blame] | 226 | #endif |
Paul Kocialkowski | 3ae8f4c | 2015-06-08 23:05:09 +0200 | [diff] [blame] | 227 | #if defined(CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION) |
Paul Kocialkowski | ecb3013 | 2015-04-27 10:20:23 +0200 | [diff] [blame] | 228 | err = mmc_load_image_raw_partition(mmc, |
| 229 | CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION); |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 230 | if (!err) |
| 231 | return; |
Paul Kocialkowski | 3ae8f4c | 2015-06-08 23:05:09 +0200 | [diff] [blame] | 232 | #elif defined(CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR) |
| 233 | err = mmc_load_image_raw_sector(mmc, |
| 234 | CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR); |
| 235 | if (!err) |
| 236 | return; |
| 237 | #endif |
Tom Rini | 7dbe63b | 2014-02-05 10:24:18 -0500 | [diff] [blame] | 238 | #endif |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 239 | case MMCSD_MODE_UNDEFINED: |
| 240 | default: |
Guillaume GARDET | 2c84c9a | 2014-12-16 12:00:44 +0100 | [diff] [blame] | 241 | #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 242 | if (err) |
| 243 | puts("spl: mmc: no boot mode left to try\n"); |
| 244 | else |
| 245 | puts("spl: mmc: wrong boot mode\n"); |
Guillaume GARDET | 2c84c9a | 2014-12-16 12:00:44 +0100 | [diff] [blame] | 246 | #endif |
Peter Korsgaard | 79adb7a | 2013-05-13 08:36:25 +0000 | [diff] [blame] | 247 | hang(); |
Paul Kocialkowski | 91199f4 | 2015-04-27 10:20:22 +0200 | [diff] [blame] | 248 | } |
Simon Schwarz | 9ea5c6e | 2011-09-14 15:33:34 -0400 | [diff] [blame] | 249 | } |