common.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645
  1. /*
  2. * arch/arm/mach-orion5x/common.c
  3. *
  4. * Core functions for Marvell Orion 5x SoCs
  5. *
  6. * Maintainer: Tzachi Perelstein <tzachi@marvell.com>
  7. *
  8. * This file is licensed under the terms of the GNU General Public
  9. * License version 2. This program is licensed "as is" without any
  10. * warranty of any kind, whether express or implied.
  11. */
  12. #include <linux/kernel.h>
  13. #include <linux/init.h>
  14. #include <linux/platform_device.h>
  15. #include <linux/serial_8250.h>
  16. #include <linux/mbus.h>
  17. #include <linux/mv643xx_eth.h>
  18. #include <linux/mv643xx_i2c.h>
  19. #include <linux/ata_platform.h>
  20. #include <linux/spi/orion_spi.h>
  21. #include <net/dsa.h>
  22. #include <asm/page.h>
  23. #include <asm/setup.h>
  24. #include <asm/timex.h>
  25. #include <asm/mach/arch.h>
  26. #include <asm/mach/map.h>
  27. #include <asm/mach/time.h>
  28. #include <mach/hardware.h>
  29. #include <mach/orion5x.h>
  30. #include <plat/ehci-orion.h>
  31. #include <plat/mv_xor.h>
  32. #include <plat/orion_nand.h>
  33. #include <plat/time.h>
  34. #include "common.h"
  35. /*****************************************************************************
  36. * I/O Address Mapping
  37. ****************************************************************************/
  38. static struct map_desc orion5x_io_desc[] __initdata = {
  39. {
  40. .virtual = ORION5X_REGS_VIRT_BASE,
  41. .pfn = __phys_to_pfn(ORION5X_REGS_PHYS_BASE),
  42. .length = ORION5X_REGS_SIZE,
  43. .type = MT_DEVICE,
  44. }, {
  45. .virtual = ORION5X_PCIE_IO_VIRT_BASE,
  46. .pfn = __phys_to_pfn(ORION5X_PCIE_IO_PHYS_BASE),
  47. .length = ORION5X_PCIE_IO_SIZE,
  48. .type = MT_DEVICE,
  49. }, {
  50. .virtual = ORION5X_PCI_IO_VIRT_BASE,
  51. .pfn = __phys_to_pfn(ORION5X_PCI_IO_PHYS_BASE),
  52. .length = ORION5X_PCI_IO_SIZE,
  53. .type = MT_DEVICE,
  54. }, {
  55. .virtual = ORION5X_PCIE_WA_VIRT_BASE,
  56. .pfn = __phys_to_pfn(ORION5X_PCIE_WA_PHYS_BASE),
  57. .length = ORION5X_PCIE_WA_SIZE,
  58. .type = MT_DEVICE,
  59. },
  60. };
  61. void __init orion5x_map_io(void)
  62. {
  63. iotable_init(orion5x_io_desc, ARRAY_SIZE(orion5x_io_desc));
  64. }
  65. /*****************************************************************************
  66. * EHCI
  67. ****************************************************************************/
  68. static struct orion_ehci_data orion5x_ehci_data = {
  69. .dram = &orion5x_mbus_dram_info,
  70. .phy_version = EHCI_PHY_ORION,
  71. };
  72. static u64 ehci_dmamask = 0xffffffffUL;
  73. /*****************************************************************************
  74. * EHCI0
  75. ****************************************************************************/
  76. static struct resource orion5x_ehci0_resources[] = {
  77. {
  78. .start = ORION5X_USB0_PHYS_BASE,
  79. .end = ORION5X_USB0_PHYS_BASE + SZ_4K - 1,
  80. .flags = IORESOURCE_MEM,
  81. }, {
  82. .start = IRQ_ORION5X_USB0_CTRL,
  83. .end = IRQ_ORION5X_USB0_CTRL,
  84. .flags = IORESOURCE_IRQ,
  85. },
  86. };
  87. static struct platform_device orion5x_ehci0 = {
  88. .name = "orion-ehci",
  89. .id = 0,
  90. .dev = {
  91. .dma_mask = &ehci_dmamask,
  92. .coherent_dma_mask = 0xffffffff,
  93. .platform_data = &orion5x_ehci_data,
  94. },
  95. .resource = orion5x_ehci0_resources,
  96. .num_resources = ARRAY_SIZE(orion5x_ehci0_resources),
  97. };
  98. void __init orion5x_ehci0_init(void)
  99. {
  100. platform_device_register(&orion5x_ehci0);
  101. }
  102. /*****************************************************************************
  103. * EHCI1
  104. ****************************************************************************/
  105. static struct resource orion5x_ehci1_resources[] = {
  106. {
  107. .start = ORION5X_USB1_PHYS_BASE,
  108. .end = ORION5X_USB1_PHYS_BASE + SZ_4K - 1,
  109. .flags = IORESOURCE_MEM,
  110. }, {
  111. .start = IRQ_ORION5X_USB1_CTRL,
  112. .end = IRQ_ORION5X_USB1_CTRL,
  113. .flags = IORESOURCE_IRQ,
  114. },
  115. };
  116. static struct platform_device orion5x_ehci1 = {
  117. .name = "orion-ehci",
  118. .id = 1,
  119. .dev = {
  120. .dma_mask = &ehci_dmamask,
  121. .coherent_dma_mask = 0xffffffff,
  122. .platform_data = &orion5x_ehci_data,
  123. },
  124. .resource = orion5x_ehci1_resources,
  125. .num_resources = ARRAY_SIZE(orion5x_ehci1_resources),
  126. };
  127. void __init orion5x_ehci1_init(void)
  128. {
  129. platform_device_register(&orion5x_ehci1);
  130. }
  131. /*****************************************************************************
  132. * GigE
  133. ****************************************************************************/
  134. struct mv643xx_eth_shared_platform_data orion5x_eth_shared_data = {
  135. .dram = &orion5x_mbus_dram_info,
  136. };
  137. static struct resource orion5x_eth_shared_resources[] = {
  138. {
  139. .start = ORION5X_ETH_PHYS_BASE + 0x2000,
  140. .end = ORION5X_ETH_PHYS_BASE + 0x3fff,
  141. .flags = IORESOURCE_MEM,
  142. }, {
  143. .start = IRQ_ORION5X_ETH_ERR,
  144. .end = IRQ_ORION5X_ETH_ERR,
  145. .flags = IORESOURCE_IRQ,
  146. },
  147. };
  148. static struct platform_device orion5x_eth_shared = {
  149. .name = MV643XX_ETH_SHARED_NAME,
  150. .id = 0,
  151. .dev = {
  152. .platform_data = &orion5x_eth_shared_data,
  153. },
  154. .num_resources = ARRAY_SIZE(orion5x_eth_shared_resources),
  155. .resource = orion5x_eth_shared_resources,
  156. };
  157. static struct resource orion5x_eth_resources[] = {
  158. {
  159. .name = "eth irq",
  160. .start = IRQ_ORION5X_ETH_SUM,
  161. .end = IRQ_ORION5X_ETH_SUM,
  162. .flags = IORESOURCE_IRQ,
  163. },
  164. };
  165. static struct platform_device orion5x_eth = {
  166. .name = MV643XX_ETH_NAME,
  167. .id = 0,
  168. .num_resources = 1,
  169. .resource = orion5x_eth_resources,
  170. };
  171. void __init orion5x_eth_init(struct mv643xx_eth_platform_data *eth_data)
  172. {
  173. eth_data->shared = &orion5x_eth_shared;
  174. orion5x_eth.dev.platform_data = eth_data;
  175. platform_device_register(&orion5x_eth_shared);
  176. platform_device_register(&orion5x_eth);
  177. }
  178. /*****************************************************************************
  179. * Ethernet switch
  180. ****************************************************************************/
  181. static struct resource orion5x_switch_resources[] = {
  182. {
  183. .start = 0,
  184. .end = 0,
  185. .flags = IORESOURCE_IRQ,
  186. },
  187. };
  188. static struct platform_device orion5x_switch_device = {
  189. .name = "dsa",
  190. .id = 0,
  191. .num_resources = 0,
  192. .resource = orion5x_switch_resources,
  193. };
  194. void __init orion5x_eth_switch_init(struct dsa_platform_data *d, int irq)
  195. {
  196. if (irq != NO_IRQ) {
  197. orion5x_switch_resources[0].start = irq;
  198. orion5x_switch_resources[0].end = irq;
  199. orion5x_switch_device.num_resources = 1;
  200. }
  201. d->mii_bus = &orion5x_eth_shared.dev;
  202. d->netdev = &orion5x_eth.dev;
  203. orion5x_switch_device.dev.platform_data = d;
  204. platform_device_register(&orion5x_switch_device);
  205. }
  206. /*****************************************************************************
  207. * I2C
  208. ****************************************************************************/
  209. static struct mv64xxx_i2c_pdata orion5x_i2c_pdata = {
  210. .freq_m = 8, /* assumes 166 MHz TCLK */
  211. .freq_n = 3,
  212. .timeout = 1000, /* Default timeout of 1 second */
  213. };
  214. static struct resource orion5x_i2c_resources[] = {
  215. {
  216. .name = "i2c base",
  217. .start = I2C_PHYS_BASE,
  218. .end = I2C_PHYS_BASE + 0x1f,
  219. .flags = IORESOURCE_MEM,
  220. }, {
  221. .name = "i2c irq",
  222. .start = IRQ_ORION5X_I2C,
  223. .end = IRQ_ORION5X_I2C,
  224. .flags = IORESOURCE_IRQ,
  225. },
  226. };
  227. static struct platform_device orion5x_i2c = {
  228. .name = MV64XXX_I2C_CTLR_NAME,
  229. .id = 0,
  230. .num_resources = ARRAY_SIZE(orion5x_i2c_resources),
  231. .resource = orion5x_i2c_resources,
  232. .dev = {
  233. .platform_data = &orion5x_i2c_pdata,
  234. },
  235. };
  236. void __init orion5x_i2c_init(void)
  237. {
  238. platform_device_register(&orion5x_i2c);
  239. }
  240. /*****************************************************************************
  241. * SATA
  242. ****************************************************************************/
  243. static struct resource orion5x_sata_resources[] = {
  244. {
  245. .name = "sata base",
  246. .start = ORION5X_SATA_PHYS_BASE,
  247. .end = ORION5X_SATA_PHYS_BASE + 0x5000 - 1,
  248. .flags = IORESOURCE_MEM,
  249. }, {
  250. .name = "sata irq",
  251. .start = IRQ_ORION5X_SATA,
  252. .end = IRQ_ORION5X_SATA,
  253. .flags = IORESOURCE_IRQ,
  254. },
  255. };
  256. static struct platform_device orion5x_sata = {
  257. .name = "sata_mv",
  258. .id = 0,
  259. .dev = {
  260. .coherent_dma_mask = 0xffffffff,
  261. },
  262. .num_resources = ARRAY_SIZE(orion5x_sata_resources),
  263. .resource = orion5x_sata_resources,
  264. };
  265. void __init orion5x_sata_init(struct mv_sata_platform_data *sata_data)
  266. {
  267. sata_data->dram = &orion5x_mbus_dram_info;
  268. orion5x_sata.dev.platform_data = sata_data;
  269. platform_device_register(&orion5x_sata);
  270. }
  271. /*****************************************************************************
  272. * SPI
  273. ****************************************************************************/
  274. static struct orion_spi_info orion5x_spi_plat_data = {
  275. .tclk = 0,
  276. .enable_clock_fix = 1,
  277. };
  278. static struct resource orion5x_spi_resources[] = {
  279. {
  280. .name = "spi base",
  281. .start = SPI_PHYS_BASE,
  282. .end = SPI_PHYS_BASE + 0x1f,
  283. .flags = IORESOURCE_MEM,
  284. },
  285. };
  286. static struct platform_device orion5x_spi = {
  287. .name = "orion_spi",
  288. .id = 0,
  289. .dev = {
  290. .platform_data = &orion5x_spi_plat_data,
  291. },
  292. .num_resources = ARRAY_SIZE(orion5x_spi_resources),
  293. .resource = orion5x_spi_resources,
  294. };
  295. void __init orion5x_spi_init()
  296. {
  297. platform_device_register(&orion5x_spi);
  298. }
  299. /*****************************************************************************
  300. * UART0
  301. ****************************************************************************/
  302. static struct plat_serial8250_port orion5x_uart0_data[] = {
  303. {
  304. .mapbase = UART0_PHYS_BASE,
  305. .membase = (char *)UART0_VIRT_BASE,
  306. .irq = IRQ_ORION5X_UART0,
  307. .flags = UPF_SKIP_TEST | UPF_BOOT_AUTOCONF,
  308. .iotype = UPIO_MEM,
  309. .regshift = 2,
  310. .uartclk = 0,
  311. }, {
  312. },
  313. };
  314. static struct resource orion5x_uart0_resources[] = {
  315. {
  316. .start = UART0_PHYS_BASE,
  317. .end = UART0_PHYS_BASE + 0xff,
  318. .flags = IORESOURCE_MEM,
  319. }, {
  320. .start = IRQ_ORION5X_UART0,
  321. .end = IRQ_ORION5X_UART0,
  322. .flags = IORESOURCE_IRQ,
  323. },
  324. };
  325. static struct platform_device orion5x_uart0 = {
  326. .name = "serial8250",
  327. .id = PLAT8250_DEV_PLATFORM,
  328. .dev = {
  329. .platform_data = orion5x_uart0_data,
  330. },
  331. .resource = orion5x_uart0_resources,
  332. .num_resources = ARRAY_SIZE(orion5x_uart0_resources),
  333. };
  334. void __init orion5x_uart0_init(void)
  335. {
  336. platform_device_register(&orion5x_uart0);
  337. }
  338. /*****************************************************************************
  339. * UART1
  340. ****************************************************************************/
  341. static struct plat_serial8250_port orion5x_uart1_data[] = {
  342. {
  343. .mapbase = UART1_PHYS_BASE,
  344. .membase = (char *)UART1_VIRT_BASE,
  345. .irq = IRQ_ORION5X_UART1,
  346. .flags = UPF_SKIP_TEST | UPF_BOOT_AUTOCONF,
  347. .iotype = UPIO_MEM,
  348. .regshift = 2,
  349. .uartclk = 0,
  350. }, {
  351. },
  352. };
  353. static struct resource orion5x_uart1_resources[] = {
  354. {
  355. .start = UART1_PHYS_BASE,
  356. .end = UART1_PHYS_BASE + 0xff,
  357. .flags = IORESOURCE_MEM,
  358. }, {
  359. .start = IRQ_ORION5X_UART1,
  360. .end = IRQ_ORION5X_UART1,
  361. .flags = IORESOURCE_IRQ,
  362. },
  363. };
  364. static struct platform_device orion5x_uart1 = {
  365. .name = "serial8250",
  366. .id = PLAT8250_DEV_PLATFORM1,
  367. .dev = {
  368. .platform_data = orion5x_uart1_data,
  369. },
  370. .resource = orion5x_uart1_resources,
  371. .num_resources = ARRAY_SIZE(orion5x_uart1_resources),
  372. };
  373. void __init orion5x_uart1_init(void)
  374. {
  375. platform_device_register(&orion5x_uart1);
  376. }
  377. /*****************************************************************************
  378. * XOR engine
  379. ****************************************************************************/
  380. static struct resource orion5x_xor_shared_resources[] = {
  381. {
  382. .name = "xor low",
  383. .start = ORION5X_XOR_PHYS_BASE,
  384. .end = ORION5X_XOR_PHYS_BASE + 0xff,
  385. .flags = IORESOURCE_MEM,
  386. }, {
  387. .name = "xor high",
  388. .start = ORION5X_XOR_PHYS_BASE + 0x200,
  389. .end = ORION5X_XOR_PHYS_BASE + 0x2ff,
  390. .flags = IORESOURCE_MEM,
  391. },
  392. };
  393. static struct platform_device orion5x_xor_shared = {
  394. .name = MV_XOR_SHARED_NAME,
  395. .id = 0,
  396. .num_resources = ARRAY_SIZE(orion5x_xor_shared_resources),
  397. .resource = orion5x_xor_shared_resources,
  398. };
  399. static u64 orion5x_xor_dmamask = DMA_32BIT_MASK;
  400. static struct resource orion5x_xor0_resources[] = {
  401. [0] = {
  402. .start = IRQ_ORION5X_XOR0,
  403. .end = IRQ_ORION5X_XOR0,
  404. .flags = IORESOURCE_IRQ,
  405. },
  406. };
  407. static struct mv_xor_platform_data orion5x_xor0_data = {
  408. .shared = &orion5x_xor_shared,
  409. .hw_id = 0,
  410. .pool_size = PAGE_SIZE,
  411. };
  412. static struct platform_device orion5x_xor0_channel = {
  413. .name = MV_XOR_NAME,
  414. .id = 0,
  415. .num_resources = ARRAY_SIZE(orion5x_xor0_resources),
  416. .resource = orion5x_xor0_resources,
  417. .dev = {
  418. .dma_mask = &orion5x_xor_dmamask,
  419. .coherent_dma_mask = DMA_64BIT_MASK,
  420. .platform_data = (void *)&orion5x_xor0_data,
  421. },
  422. };
  423. static struct resource orion5x_xor1_resources[] = {
  424. [0] = {
  425. .start = IRQ_ORION5X_XOR1,
  426. .end = IRQ_ORION5X_XOR1,
  427. .flags = IORESOURCE_IRQ,
  428. },
  429. };
  430. static struct mv_xor_platform_data orion5x_xor1_data = {
  431. .shared = &orion5x_xor_shared,
  432. .hw_id = 1,
  433. .pool_size = PAGE_SIZE,
  434. };
  435. static struct platform_device orion5x_xor1_channel = {
  436. .name = MV_XOR_NAME,
  437. .id = 1,
  438. .num_resources = ARRAY_SIZE(orion5x_xor1_resources),
  439. .resource = orion5x_xor1_resources,
  440. .dev = {
  441. .dma_mask = &orion5x_xor_dmamask,
  442. .coherent_dma_mask = DMA_64BIT_MASK,
  443. .platform_data = (void *)&orion5x_xor1_data,
  444. },
  445. };
  446. void __init orion5x_xor_init(void)
  447. {
  448. platform_device_register(&orion5x_xor_shared);
  449. /*
  450. * two engines can't do memset simultaneously, this limitation
  451. * satisfied by removing memset support from one of the engines.
  452. */
  453. dma_cap_set(DMA_MEMCPY, orion5x_xor0_data.cap_mask);
  454. dma_cap_set(DMA_XOR, orion5x_xor0_data.cap_mask);
  455. platform_device_register(&orion5x_xor0_channel);
  456. dma_cap_set(DMA_MEMCPY, orion5x_xor1_data.cap_mask);
  457. dma_cap_set(DMA_MEMSET, orion5x_xor1_data.cap_mask);
  458. dma_cap_set(DMA_XOR, orion5x_xor1_data.cap_mask);
  459. platform_device_register(&orion5x_xor1_channel);
  460. }
  461. /*****************************************************************************
  462. * Time handling
  463. ****************************************************************************/
  464. int orion5x_tclk;
  465. int __init orion5x_find_tclk(void)
  466. {
  467. u32 dev, rev;
  468. orion5x_pcie_id(&dev, &rev);
  469. if (dev == MV88F6183_DEV_ID &&
  470. (readl(MPP_RESET_SAMPLE) & 0x00000200) == 0)
  471. return 133333333;
  472. return 166666667;
  473. }
  474. static void orion5x_timer_init(void)
  475. {
  476. orion5x_tclk = orion5x_find_tclk();
  477. orion_time_init(IRQ_ORION5X_BRIDGE, orion5x_tclk);
  478. }
  479. struct sys_timer orion5x_timer = {
  480. .init = orion5x_timer_init,
  481. };
  482. /*****************************************************************************
  483. * General
  484. ****************************************************************************/
  485. /*
  486. * Identify device ID and rev from PCIe configuration header space '0'.
  487. */
  488. static void __init orion5x_id(u32 *dev, u32 *rev, char **dev_name)
  489. {
  490. orion5x_pcie_id(dev, rev);
  491. if (*dev == MV88F5281_DEV_ID) {
  492. if (*rev == MV88F5281_REV_D2) {
  493. *dev_name = "MV88F5281-D2";
  494. } else if (*rev == MV88F5281_REV_D1) {
  495. *dev_name = "MV88F5281-D1";
  496. } else if (*rev == MV88F5281_REV_D0) {
  497. *dev_name = "MV88F5281-D0";
  498. } else {
  499. *dev_name = "MV88F5281-Rev-Unsupported";
  500. }
  501. } else if (*dev == MV88F5182_DEV_ID) {
  502. if (*rev == MV88F5182_REV_A2) {
  503. *dev_name = "MV88F5182-A2";
  504. } else {
  505. *dev_name = "MV88F5182-Rev-Unsupported";
  506. }
  507. } else if (*dev == MV88F5181_DEV_ID) {
  508. if (*rev == MV88F5181_REV_B1) {
  509. *dev_name = "MV88F5181-Rev-B1";
  510. } else if (*rev == MV88F5181L_REV_A1) {
  511. *dev_name = "MV88F5181L-Rev-A1";
  512. } else {
  513. *dev_name = "MV88F5181(L)-Rev-Unsupported";
  514. }
  515. } else if (*dev == MV88F6183_DEV_ID) {
  516. if (*rev == MV88F6183_REV_B0) {
  517. *dev_name = "MV88F6183-Rev-B0";
  518. } else {
  519. *dev_name = "MV88F6183-Rev-Unsupported";
  520. }
  521. } else {
  522. *dev_name = "Device-Unknown";
  523. }
  524. }
  525. void __init orion5x_init(void)
  526. {
  527. char *dev_name;
  528. u32 dev, rev;
  529. orion5x_id(&dev, &rev, &dev_name);
  530. printk(KERN_INFO "Orion ID: %s. TCLK=%d.\n", dev_name, orion5x_tclk);
  531. orion5x_eth_shared_data.t_clk = orion5x_tclk;
  532. orion5x_spi_plat_data.tclk = orion5x_tclk;
  533. orion5x_uart0_data[0].uartclk = orion5x_tclk;
  534. orion5x_uart1_data[0].uartclk = orion5x_tclk;
  535. /*
  536. * Setup Orion address map
  537. */
  538. orion5x_setup_cpu_mbus_bridge();
  539. /*
  540. * Don't issue "Wait for Interrupt" instruction if we are
  541. * running on D0 5281 silicon.
  542. */
  543. if (dev == MV88F5281_DEV_ID && rev == MV88F5281_REV_D0) {
  544. printk(KERN_INFO "Orion: Applying 5281 D0 WFI workaround.\n");
  545. disable_hlt();
  546. }
  547. }
  548. /*
  549. * Many orion-based systems have buggy bootloader implementations.
  550. * This is a common fixup for bogus memory tags.
  551. */
  552. void __init tag_fixup_mem32(struct machine_desc *mdesc, struct tag *t,
  553. char **from, struct meminfo *meminfo)
  554. {
  555. for (; t->hdr.size; t = tag_next(t))
  556. if (t->hdr.tag == ATAG_MEM &&
  557. (!t->u.mem.size || t->u.mem.size & ~PAGE_MASK ||
  558. t->u.mem.start & ~PAGE_MASK)) {
  559. printk(KERN_WARNING
  560. "Clearing invalid memory bank %dKB@0x%08x\n",
  561. t->u.mem.size / 1024, t->u.mem.start);
  562. t->hdr.tag = 0;
  563. }
  564. }