proc-xscale.S 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965
  1. /*
  2. * linux/arch/arm/mm/proc-xscale.S
  3. *
  4. * Author: Nicolas Pitre
  5. * Created: November 2000
  6. * Copyright: (C) 2000, 2001 MontaVista Software Inc.
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. *
  12. * MMU functions for the Intel XScale CPUs
  13. *
  14. * 2001 Aug 21:
  15. * some contributions by Brett Gaines <brett.w.gaines@intel.com>
  16. * Copyright 2001 by Intel Corp.
  17. *
  18. * 2001 Sep 08:
  19. * Completely revisited, many important fixes
  20. * Nicolas Pitre <nico@fluxnic.net>
  21. */
  22. #include <linux/linkage.h>
  23. #include <linux/init.h>
  24. #include <asm/assembler.h>
  25. #include <asm/hwcap.h>
  26. #include <asm/pgtable.h>
  27. #include <asm/pgtable-hwdef.h>
  28. #include <asm/page.h>
  29. #include <asm/ptrace.h>
  30. #include "proc-macros.S"
  31. /*
  32. * This is the maximum size of an area which will be flushed. If the area
  33. * is larger than this, then we flush the whole cache
  34. */
  35. #define MAX_AREA_SIZE 32768
  36. /*
  37. * the cache line size of the I and D cache
  38. */
  39. #define CACHELINESIZE 32
  40. /*
  41. * the size of the data cache
  42. */
  43. #define CACHESIZE 32768
  44. /*
  45. * Virtual address used to allocate the cache when flushed
  46. *
  47. * This must be an address range which is _never_ used. It should
  48. * apparently have a mapping in the corresponding page table for
  49. * compatibility with future CPUs that _could_ require it. For instance we
  50. * don't care.
  51. *
  52. * This must be aligned on a 2*CACHESIZE boundary. The code selects one of
  53. * the 2 areas in alternance each time the clean_d_cache macro is used.
  54. * Without this the XScale core exhibits cache eviction problems and no one
  55. * knows why.
  56. *
  57. * Reminder: the vector table is located at 0xffff0000-0xffff0fff.
  58. */
  59. #define CLEAN_ADDR 0xfffe0000
  60. /*
  61. * This macro is used to wait for a CP15 write and is needed
  62. * when we have to ensure that the last operation to the co-pro
  63. * was completed before continuing with operation.
  64. */
  65. .macro cpwait, rd
  66. mrc p15, 0, \rd, c2, c0, 0 @ arbitrary read of cp15
  67. mov \rd, \rd @ wait for completion
  68. sub pc, pc, #4 @ flush instruction pipeline
  69. .endm
  70. .macro cpwait_ret, lr, rd
  71. mrc p15, 0, \rd, c2, c0, 0 @ arbitrary read of cp15
  72. sub pc, \lr, \rd, LSR #32 @ wait for completion and
  73. @ flush instruction pipeline
  74. .endm
  75. /*
  76. * This macro cleans the entire dcache using line allocate.
  77. * The main loop has been unrolled to reduce loop overhead.
  78. * rd and rs are two scratch registers.
  79. */
  80. .macro clean_d_cache, rd, rs
  81. ldr \rs, =clean_addr
  82. ldr \rd, [\rs]
  83. eor \rd, \rd, #CACHESIZE
  84. str \rd, [\rs]
  85. add \rs, \rd, #CACHESIZE
  86. 1: mcr p15, 0, \rd, c7, c2, 5 @ allocate D cache line
  87. add \rd, \rd, #CACHELINESIZE
  88. mcr p15, 0, \rd, c7, c2, 5 @ allocate D cache line
  89. add \rd, \rd, #CACHELINESIZE
  90. mcr p15, 0, \rd, c7, c2, 5 @ allocate D cache line
  91. add \rd, \rd, #CACHELINESIZE
  92. mcr p15, 0, \rd, c7, c2, 5 @ allocate D cache line
  93. add \rd, \rd, #CACHELINESIZE
  94. teq \rd, \rs
  95. bne 1b
  96. .endm
  97. .data
  98. clean_addr: .word CLEAN_ADDR
  99. .text
  100. /*
  101. * cpu_xscale_proc_init()
  102. *
  103. * Nothing too exciting at the moment
  104. */
  105. ENTRY(cpu_xscale_proc_init)
  106. @ enable write buffer coalescing. Some bootloader disable it
  107. mrc p15, 0, r1, c1, c0, 1
  108. bic r1, r1, #1
  109. mcr p15, 0, r1, c1, c0, 1
  110. mov pc, lr
  111. /*
  112. * cpu_xscale_proc_fin()
  113. */
  114. ENTRY(cpu_xscale_proc_fin)
  115. mrc p15, 0, r0, c1, c0, 0 @ ctrl register
  116. bic r0, r0, #0x1800 @ ...IZ...........
  117. bic r0, r0, #0x0006 @ .............CA.
  118. mcr p15, 0, r0, c1, c0, 0 @ disable caches
  119. mov pc, lr
  120. /*
  121. * cpu_xscale_reset(loc)
  122. *
  123. * Perform a soft reset of the system. Put the CPU into the
  124. * same state as it would be if it had been reset, and branch
  125. * to what would be the reset vector.
  126. *
  127. * loc: location to jump to for soft reset
  128. *
  129. * Beware PXA270 erratum E7.
  130. */
  131. .align 5
  132. ENTRY(cpu_xscale_reset)
  133. mov r1, #PSR_F_BIT|PSR_I_BIT|SVC_MODE
  134. msr cpsr_c, r1 @ reset CPSR
  135. mcr p15, 0, r1, c10, c4, 1 @ unlock I-TLB
  136. mcr p15, 0, r1, c8, c5, 0 @ invalidate I-TLB
  137. mrc p15, 0, r1, c1, c0, 0 @ ctrl register
  138. bic r1, r1, #0x0086 @ ........B....CA.
  139. bic r1, r1, #0x3900 @ ..VIZ..S........
  140. sub pc, pc, #4 @ flush pipeline
  141. @ *** cache line aligned ***
  142. mcr p15, 0, r1, c1, c0, 0 @ ctrl register
  143. bic r1, r1, #0x0001 @ ...............M
  144. mcr p15, 0, ip, c7, c7, 0 @ invalidate I,D caches & BTB
  145. mcr p15, 0, r1, c1, c0, 0 @ ctrl register
  146. @ CAUTION: MMU turned off from this point. We count on the pipeline
  147. @ already containing those two last instructions to survive.
  148. mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
  149. mov pc, r0
  150. /*
  151. * cpu_xscale_do_idle()
  152. *
  153. * Cause the processor to idle
  154. *
  155. * For now we do nothing but go to idle mode for every case
  156. *
  157. * XScale supports clock switching, but using idle mode support
  158. * allows external hardware to react to system state changes.
  159. */
  160. .align 5
  161. ENTRY(cpu_xscale_do_idle)
  162. mov r0, #1
  163. mcr p14, 0, r0, c7, c0, 0 @ Go to IDLE
  164. mov pc, lr
  165. /* ================================= CACHE ================================ */
  166. /*
  167. * flush_user_cache_all()
  168. *
  169. * Invalidate all cache entries in a particular address
  170. * space.
  171. */
  172. ENTRY(xscale_flush_user_cache_all)
  173. /* FALLTHROUGH */
  174. /*
  175. * flush_kern_cache_all()
  176. *
  177. * Clean and invalidate the entire cache.
  178. */
  179. ENTRY(xscale_flush_kern_cache_all)
  180. mov r2, #VM_EXEC
  181. mov ip, #0
  182. __flush_whole_cache:
  183. clean_d_cache r0, r1
  184. tst r2, #VM_EXEC
  185. mcrne p15, 0, ip, c7, c5, 0 @ Invalidate I cache & BTB
  186. mcrne p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  187. mov pc, lr
  188. /*
  189. * flush_user_cache_range(start, end, vm_flags)
  190. *
  191. * Invalidate a range of cache entries in the specified
  192. * address space.
  193. *
  194. * - start - start address (may not be aligned)
  195. * - end - end address (exclusive, may not be aligned)
  196. * - vma - vma_area_struct describing address space
  197. */
  198. .align 5
  199. ENTRY(xscale_flush_user_cache_range)
  200. mov ip, #0
  201. sub r3, r1, r0 @ calculate total size
  202. cmp r3, #MAX_AREA_SIZE
  203. bhs __flush_whole_cache
  204. 1: tst r2, #VM_EXEC
  205. mcrne p15, 0, r0, c7, c5, 1 @ Invalidate I cache line
  206. mcr p15, 0, r0, c7, c10, 1 @ Clean D cache line
  207. mcr p15, 0, r0, c7, c6, 1 @ Invalidate D cache line
  208. add r0, r0, #CACHELINESIZE
  209. cmp r0, r1
  210. blo 1b
  211. tst r2, #VM_EXEC
  212. mcrne p15, 0, ip, c7, c5, 6 @ Invalidate BTB
  213. mcrne p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  214. mov pc, lr
  215. /*
  216. * coherent_kern_range(start, end)
  217. *
  218. * Ensure coherency between the Icache and the Dcache in the
  219. * region described by start. If you have non-snooping
  220. * Harvard caches, you need to implement this function.
  221. *
  222. * - start - virtual start address
  223. * - end - virtual end address
  224. *
  225. * Note: single I-cache line invalidation isn't used here since
  226. * it also trashes the mini I-cache used by JTAG debuggers.
  227. */
  228. ENTRY(xscale_coherent_kern_range)
  229. bic r0, r0, #CACHELINESIZE - 1
  230. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  231. add r0, r0, #CACHELINESIZE
  232. cmp r0, r1
  233. blo 1b
  234. mov r0, #0
  235. mcr p15, 0, r0, c7, c5, 0 @ Invalidate I cache & BTB
  236. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  237. mov pc, lr
  238. /*
  239. * coherent_user_range(start, end)
  240. *
  241. * Ensure coherency between the Icache and the Dcache in the
  242. * region described by start. If you have non-snooping
  243. * Harvard caches, you need to implement this function.
  244. *
  245. * - start - virtual start address
  246. * - end - virtual end address
  247. */
  248. ENTRY(xscale_coherent_user_range)
  249. bic r0, r0, #CACHELINESIZE - 1
  250. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  251. mcr p15, 0, r0, c7, c5, 1 @ Invalidate I cache entry
  252. add r0, r0, #CACHELINESIZE
  253. cmp r0, r1
  254. blo 1b
  255. mov r0, #0
  256. mcr p15, 0, r0, c7, c5, 6 @ Invalidate BTB
  257. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  258. mov pc, lr
  259. /*
  260. * flush_kern_dcache_area(void *addr, size_t size)
  261. *
  262. * Ensure no D cache aliasing occurs, either with itself or
  263. * the I cache
  264. *
  265. * - addr - kernel address
  266. * - size - region size
  267. */
  268. ENTRY(xscale_flush_kern_dcache_area)
  269. add r1, r0, r1
  270. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  271. mcr p15, 0, r0, c7, c6, 1 @ invalidate D entry
  272. add r0, r0, #CACHELINESIZE
  273. cmp r0, r1
  274. blo 1b
  275. mov r0, #0
  276. mcr p15, 0, r0, c7, c5, 0 @ Invalidate I cache & BTB
  277. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  278. mov pc, lr
  279. /*
  280. * dma_inv_range(start, end)
  281. *
  282. * Invalidate (discard) the specified virtual address range.
  283. * May not write back any entries. If 'start' or 'end'
  284. * are not cache line aligned, those lines must be written
  285. * back.
  286. *
  287. * - start - virtual start address
  288. * - end - virtual end address
  289. */
  290. xscale_dma_inv_range:
  291. tst r0, #CACHELINESIZE - 1
  292. bic r0, r0, #CACHELINESIZE - 1
  293. mcrne p15, 0, r0, c7, c10, 1 @ clean D entry
  294. tst r1, #CACHELINESIZE - 1
  295. mcrne p15, 0, r1, c7, c10, 1 @ clean D entry
  296. 1: mcr p15, 0, r0, c7, c6, 1 @ invalidate D entry
  297. add r0, r0, #CACHELINESIZE
  298. cmp r0, r1
  299. blo 1b
  300. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  301. mov pc, lr
  302. /*
  303. * dma_clean_range(start, end)
  304. *
  305. * Clean the specified virtual address range.
  306. *
  307. * - start - virtual start address
  308. * - end - virtual end address
  309. */
  310. xscale_dma_clean_range:
  311. bic r0, r0, #CACHELINESIZE - 1
  312. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  313. add r0, r0, #CACHELINESIZE
  314. cmp r0, r1
  315. blo 1b
  316. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  317. mov pc, lr
  318. /*
  319. * dma_flush_range(start, end)
  320. *
  321. * Clean and invalidate the specified virtual address range.
  322. *
  323. * - start - virtual start address
  324. * - end - virtual end address
  325. */
  326. ENTRY(xscale_dma_flush_range)
  327. bic r0, r0, #CACHELINESIZE - 1
  328. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  329. mcr p15, 0, r0, c7, c6, 1 @ invalidate D entry
  330. add r0, r0, #CACHELINESIZE
  331. cmp r0, r1
  332. blo 1b
  333. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  334. mov pc, lr
  335. /*
  336. * dma_map_area(start, size, dir)
  337. * - start - kernel virtual start address
  338. * - size - size of region
  339. * - dir - DMA direction
  340. */
  341. ENTRY(xscale_dma_map_area)
  342. add r1, r1, r0
  343. cmp r2, #DMA_TO_DEVICE
  344. beq xscale_dma_clean_range
  345. bcs xscale_dma_inv_range
  346. b xscale_dma_flush_range
  347. ENDPROC(xscale_dma_map_area)
  348. /*
  349. * dma_map_area(start, size, dir)
  350. * - start - kernel virtual start address
  351. * - size - size of region
  352. * - dir - DMA direction
  353. */
  354. ENTRY(xscale_dma_a0_map_area)
  355. add r1, r1, r0
  356. teq r2, #DMA_TO_DEVICE
  357. beq xscale_dma_clean_range
  358. b xscale_dma_flush_range
  359. ENDPROC(xscsale_dma_a0_map_area)
  360. /*
  361. * dma_unmap_area(start, size, dir)
  362. * - start - kernel virtual start address
  363. * - size - size of region
  364. * - dir - DMA direction
  365. */
  366. ENTRY(xscale_dma_unmap_area)
  367. mov pc, lr
  368. ENDPROC(xscale_dma_unmap_area)
  369. ENTRY(xscale_cache_fns)
  370. .long xscale_flush_kern_cache_all
  371. .long xscale_flush_user_cache_all
  372. .long xscale_flush_user_cache_range
  373. .long xscale_coherent_kern_range
  374. .long xscale_coherent_user_range
  375. .long xscale_flush_kern_dcache_area
  376. .long xscale_dma_map_area
  377. .long xscale_dma_unmap_area
  378. .long xscale_dma_flush_range
  379. /*
  380. * On stepping A0/A1 of the 80200, invalidating D-cache by line doesn't
  381. * clear the dirty bits, which means that if we invalidate a dirty line,
  382. * the dirty data can still be written back to external memory later on.
  383. *
  384. * The recommended workaround is to always do a clean D-cache line before
  385. * doing an invalidate D-cache line, so on the affected processors,
  386. * dma_inv_range() is implemented as dma_flush_range().
  387. *
  388. * See erratum #25 of "Intel 80200 Processor Specification Update",
  389. * revision January 22, 2003, available at:
  390. * http://www.intel.com/design/iio/specupdt/273415.htm
  391. */
  392. ENTRY(xscale_80200_A0_A1_cache_fns)
  393. .long xscale_flush_kern_cache_all
  394. .long xscale_flush_user_cache_all
  395. .long xscale_flush_user_cache_range
  396. .long xscale_coherent_kern_range
  397. .long xscale_coherent_user_range
  398. .long xscale_flush_kern_dcache_area
  399. .long xscale_dma_a0_map_area
  400. .long xscale_dma_unmap_area
  401. .long xscale_dma_flush_range
  402. ENTRY(cpu_xscale_dcache_clean_area)
  403. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  404. add r0, r0, #CACHELINESIZE
  405. subs r1, r1, #CACHELINESIZE
  406. bhi 1b
  407. mov pc, lr
  408. /* =============================== PageTable ============================== */
  409. /*
  410. * cpu_xscale_switch_mm(pgd)
  411. *
  412. * Set the translation base pointer to be as described by pgd.
  413. *
  414. * pgd: new page tables
  415. */
  416. .align 5
  417. ENTRY(cpu_xscale_switch_mm)
  418. clean_d_cache r1, r2
  419. mcr p15, 0, ip, c7, c5, 0 @ Invalidate I cache & BTB
  420. mcr p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  421. mcr p15, 0, r0, c2, c0, 0 @ load page table pointer
  422. mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
  423. cpwait_ret lr, ip
  424. /*
  425. * cpu_xscale_set_pte_ext(ptep, pte, ext)
  426. *
  427. * Set a PTE and flush it out
  428. *
  429. * Errata 40: must set memory to write-through for user read-only pages.
  430. */
  431. cpu_xscale_mt_table:
  432. .long 0x00 @ L_PTE_MT_UNCACHED
  433. .long PTE_BUFFERABLE @ L_PTE_MT_BUFFERABLE
  434. .long PTE_CACHEABLE @ L_PTE_MT_WRITETHROUGH
  435. .long PTE_CACHEABLE | PTE_BUFFERABLE @ L_PTE_MT_WRITEBACK
  436. .long PTE_EXT_TEX(1) | PTE_BUFFERABLE @ L_PTE_MT_DEV_SHARED
  437. .long 0x00 @ unused
  438. .long PTE_EXT_TEX(1) | PTE_CACHEABLE @ L_PTE_MT_MINICACHE
  439. .long PTE_EXT_TEX(1) | PTE_CACHEABLE | PTE_BUFFERABLE @ L_PTE_MT_WRITEALLOC
  440. .long 0x00 @ unused
  441. .long PTE_BUFFERABLE @ L_PTE_MT_DEV_WC
  442. .long 0x00 @ unused
  443. .long PTE_CACHEABLE | PTE_BUFFERABLE @ L_PTE_MT_DEV_CACHED
  444. .long 0x00 @ L_PTE_MT_DEV_NONSHARED
  445. .long 0x00 @ unused
  446. .long 0x00 @ unused
  447. .long 0x00 @ unused
  448. .align 5
  449. ENTRY(cpu_xscale_set_pte_ext)
  450. xscale_set_pte_ext_prologue
  451. @
  452. @ Erratum 40: must set memory to write-through for user read-only pages
  453. @
  454. and ip, r1, #(L_PTE_MT_MASK | L_PTE_USER | L_PTE_WRITE) & ~(4 << 2)
  455. teq ip, #L_PTE_MT_WRITEBACK | L_PTE_USER
  456. moveq r1, #L_PTE_MT_WRITETHROUGH
  457. and r1, r1, #L_PTE_MT_MASK
  458. adr ip, cpu_xscale_mt_table
  459. ldr ip, [ip, r1]
  460. bic r2, r2, #0x0c
  461. orr r2, r2, ip
  462. xscale_set_pte_ext_epilogue
  463. mov pc, lr
  464. .ltorg
  465. .align
  466. __INIT
  467. .type __xscale_setup, #function
  468. __xscale_setup:
  469. mcr p15, 0, ip, c7, c7, 0 @ invalidate I, D caches & BTB
  470. mcr p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  471. mcr p15, 0, ip, c8, c7, 0 @ invalidate I, D TLBs
  472. mov r0, #1 << 6 @ cp6 for IOP3xx and Bulverde
  473. orr r0, r0, #1 << 13 @ Its undefined whether this
  474. mcr p15, 0, r0, c15, c1, 0 @ affects USR or SVC modes
  475. adr r5, xscale_crval
  476. ldmia r5, {r5, r6}
  477. mrc p15, 0, r0, c1, c0, 0 @ get control register
  478. bic r0, r0, r5
  479. orr r0, r0, r6
  480. mov pc, lr
  481. .size __xscale_setup, . - __xscale_setup
  482. /*
  483. * R
  484. * .RVI ZFRS BLDP WCAM
  485. * ..11 1.01 .... .101
  486. *
  487. */
  488. .type xscale_crval, #object
  489. xscale_crval:
  490. crval clear=0x00003b07, mmuset=0x00003905, ucset=0x00001900
  491. __INITDATA
  492. /*
  493. * Purpose : Function pointers used to access above functions - all calls
  494. * come through these
  495. */
  496. .type xscale_processor_functions, #object
  497. ENTRY(xscale_processor_functions)
  498. .word v5t_early_abort
  499. .word legacy_pabort
  500. .word cpu_xscale_proc_init
  501. .word cpu_xscale_proc_fin
  502. .word cpu_xscale_reset
  503. .word cpu_xscale_do_idle
  504. .word cpu_xscale_dcache_clean_area
  505. .word cpu_xscale_switch_mm
  506. .word cpu_xscale_set_pte_ext
  507. .size xscale_processor_functions, . - xscale_processor_functions
  508. .section ".rodata"
  509. .type cpu_arch_name, #object
  510. cpu_arch_name:
  511. .asciz "armv5te"
  512. .size cpu_arch_name, . - cpu_arch_name
  513. .type cpu_elf_name, #object
  514. cpu_elf_name:
  515. .asciz "v5"
  516. .size cpu_elf_name, . - cpu_elf_name
  517. .type cpu_80200_A0_A1_name, #object
  518. cpu_80200_A0_A1_name:
  519. .asciz "XScale-80200 A0/A1"
  520. .size cpu_80200_A0_A1_name, . - cpu_80200_A0_A1_name
  521. .type cpu_80200_name, #object
  522. cpu_80200_name:
  523. .asciz "XScale-80200"
  524. .size cpu_80200_name, . - cpu_80200_name
  525. .type cpu_80219_name, #object
  526. cpu_80219_name:
  527. .asciz "XScale-80219"
  528. .size cpu_80219_name, . - cpu_80219_name
  529. .type cpu_8032x_name, #object
  530. cpu_8032x_name:
  531. .asciz "XScale-IOP8032x Family"
  532. .size cpu_8032x_name, . - cpu_8032x_name
  533. .type cpu_8033x_name, #object
  534. cpu_8033x_name:
  535. .asciz "XScale-IOP8033x Family"
  536. .size cpu_8033x_name, . - cpu_8033x_name
  537. .type cpu_pxa250_name, #object
  538. cpu_pxa250_name:
  539. .asciz "XScale-PXA250"
  540. .size cpu_pxa250_name, . - cpu_pxa250_name
  541. .type cpu_pxa210_name, #object
  542. cpu_pxa210_name:
  543. .asciz "XScale-PXA210"
  544. .size cpu_pxa210_name, . - cpu_pxa210_name
  545. .type cpu_ixp42x_name, #object
  546. cpu_ixp42x_name:
  547. .asciz "XScale-IXP42x Family"
  548. .size cpu_ixp42x_name, . - cpu_ixp42x_name
  549. .type cpu_ixp43x_name, #object
  550. cpu_ixp43x_name:
  551. .asciz "XScale-IXP43x Family"
  552. .size cpu_ixp43x_name, . - cpu_ixp43x_name
  553. .type cpu_ixp46x_name, #object
  554. cpu_ixp46x_name:
  555. .asciz "XScale-IXP46x Family"
  556. .size cpu_ixp46x_name, . - cpu_ixp46x_name
  557. .type cpu_ixp2400_name, #object
  558. cpu_ixp2400_name:
  559. .asciz "XScale-IXP2400"
  560. .size cpu_ixp2400_name, . - cpu_ixp2400_name
  561. .type cpu_ixp2800_name, #object
  562. cpu_ixp2800_name:
  563. .asciz "XScale-IXP2800"
  564. .size cpu_ixp2800_name, . - cpu_ixp2800_name
  565. .type cpu_pxa255_name, #object
  566. cpu_pxa255_name:
  567. .asciz "XScale-PXA255"
  568. .size cpu_pxa255_name, . - cpu_pxa255_name
  569. .type cpu_pxa270_name, #object
  570. cpu_pxa270_name:
  571. .asciz "XScale-PXA270"
  572. .size cpu_pxa270_name, . - cpu_pxa270_name
  573. .align
  574. .section ".proc.info.init", #alloc, #execinstr
  575. .type __80200_A0_A1_proc_info,#object
  576. __80200_A0_A1_proc_info:
  577. .long 0x69052000
  578. .long 0xfffffffe
  579. .long PMD_TYPE_SECT | \
  580. PMD_SECT_BUFFERABLE | \
  581. PMD_SECT_CACHEABLE | \
  582. PMD_SECT_AP_WRITE | \
  583. PMD_SECT_AP_READ
  584. .long PMD_TYPE_SECT | \
  585. PMD_SECT_AP_WRITE | \
  586. PMD_SECT_AP_READ
  587. b __xscale_setup
  588. .long cpu_arch_name
  589. .long cpu_elf_name
  590. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  591. .long cpu_80200_name
  592. .long xscale_processor_functions
  593. .long v4wbi_tlb_fns
  594. .long xscale_mc_user_fns
  595. .long xscale_80200_A0_A1_cache_fns
  596. .size __80200_A0_A1_proc_info, . - __80200_A0_A1_proc_info
  597. .type __80200_proc_info,#object
  598. __80200_proc_info:
  599. .long 0x69052000
  600. .long 0xfffffff0
  601. .long PMD_TYPE_SECT | \
  602. PMD_SECT_BUFFERABLE | \
  603. PMD_SECT_CACHEABLE | \
  604. PMD_SECT_AP_WRITE | \
  605. PMD_SECT_AP_READ
  606. .long PMD_TYPE_SECT | \
  607. PMD_SECT_AP_WRITE | \
  608. PMD_SECT_AP_READ
  609. b __xscale_setup
  610. .long cpu_arch_name
  611. .long cpu_elf_name
  612. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  613. .long cpu_80200_name
  614. .long xscale_processor_functions
  615. .long v4wbi_tlb_fns
  616. .long xscale_mc_user_fns
  617. .long xscale_cache_fns
  618. .size __80200_proc_info, . - __80200_proc_info
  619. .type __80219_proc_info,#object
  620. __80219_proc_info:
  621. .long 0x69052e20
  622. .long 0xffffffe0
  623. .long PMD_TYPE_SECT | \
  624. PMD_SECT_BUFFERABLE | \
  625. PMD_SECT_CACHEABLE | \
  626. PMD_SECT_AP_WRITE | \
  627. PMD_SECT_AP_READ
  628. .long PMD_TYPE_SECT | \
  629. PMD_SECT_AP_WRITE | \
  630. PMD_SECT_AP_READ
  631. b __xscale_setup
  632. .long cpu_arch_name
  633. .long cpu_elf_name
  634. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  635. .long cpu_80219_name
  636. .long xscale_processor_functions
  637. .long v4wbi_tlb_fns
  638. .long xscale_mc_user_fns
  639. .long xscale_cache_fns
  640. .size __80219_proc_info, . - __80219_proc_info
  641. .type __8032x_proc_info,#object
  642. __8032x_proc_info:
  643. .long 0x69052420
  644. .long 0xfffff7e0
  645. .long PMD_TYPE_SECT | \
  646. PMD_SECT_BUFFERABLE | \
  647. PMD_SECT_CACHEABLE | \
  648. PMD_SECT_AP_WRITE | \
  649. PMD_SECT_AP_READ
  650. .long PMD_TYPE_SECT | \
  651. PMD_SECT_AP_WRITE | \
  652. PMD_SECT_AP_READ
  653. b __xscale_setup
  654. .long cpu_arch_name
  655. .long cpu_elf_name
  656. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  657. .long cpu_8032x_name
  658. .long xscale_processor_functions
  659. .long v4wbi_tlb_fns
  660. .long xscale_mc_user_fns
  661. .long xscale_cache_fns
  662. .size __8032x_proc_info, . - __8032x_proc_info
  663. .type __8033x_proc_info,#object
  664. __8033x_proc_info:
  665. .long 0x69054010
  666. .long 0xfffffd30
  667. .long PMD_TYPE_SECT | \
  668. PMD_SECT_BUFFERABLE | \
  669. PMD_SECT_CACHEABLE | \
  670. PMD_SECT_AP_WRITE | \
  671. PMD_SECT_AP_READ
  672. .long PMD_TYPE_SECT | \
  673. PMD_SECT_AP_WRITE | \
  674. PMD_SECT_AP_READ
  675. b __xscale_setup
  676. .long cpu_arch_name
  677. .long cpu_elf_name
  678. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  679. .long cpu_8033x_name
  680. .long xscale_processor_functions
  681. .long v4wbi_tlb_fns
  682. .long xscale_mc_user_fns
  683. .long xscale_cache_fns
  684. .size __8033x_proc_info, . - __8033x_proc_info
  685. .type __pxa250_proc_info,#object
  686. __pxa250_proc_info:
  687. .long 0x69052100
  688. .long 0xfffff7f0
  689. .long PMD_TYPE_SECT | \
  690. PMD_SECT_BUFFERABLE | \
  691. PMD_SECT_CACHEABLE | \
  692. PMD_SECT_AP_WRITE | \
  693. PMD_SECT_AP_READ
  694. .long PMD_TYPE_SECT | \
  695. PMD_SECT_AP_WRITE | \
  696. PMD_SECT_AP_READ
  697. b __xscale_setup
  698. .long cpu_arch_name
  699. .long cpu_elf_name
  700. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  701. .long cpu_pxa250_name
  702. .long xscale_processor_functions
  703. .long v4wbi_tlb_fns
  704. .long xscale_mc_user_fns
  705. .long xscale_cache_fns
  706. .size __pxa250_proc_info, . - __pxa250_proc_info
  707. .type __pxa210_proc_info,#object
  708. __pxa210_proc_info:
  709. .long 0x69052120
  710. .long 0xfffff3f0
  711. .long PMD_TYPE_SECT | \
  712. PMD_SECT_BUFFERABLE | \
  713. PMD_SECT_CACHEABLE | \
  714. PMD_SECT_AP_WRITE | \
  715. PMD_SECT_AP_READ
  716. .long PMD_TYPE_SECT | \
  717. PMD_SECT_AP_WRITE | \
  718. PMD_SECT_AP_READ
  719. b __xscale_setup
  720. .long cpu_arch_name
  721. .long cpu_elf_name
  722. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  723. .long cpu_pxa210_name
  724. .long xscale_processor_functions
  725. .long v4wbi_tlb_fns
  726. .long xscale_mc_user_fns
  727. .long xscale_cache_fns
  728. .size __pxa210_proc_info, . - __pxa210_proc_info
  729. .type __ixp2400_proc_info, #object
  730. __ixp2400_proc_info:
  731. .long 0x69054190
  732. .long 0xfffffff0
  733. .long PMD_TYPE_SECT | \
  734. PMD_SECT_BUFFERABLE | \
  735. PMD_SECT_CACHEABLE | \
  736. PMD_SECT_AP_WRITE | \
  737. PMD_SECT_AP_READ
  738. .long PMD_TYPE_SECT | \
  739. PMD_SECT_AP_WRITE | \
  740. PMD_SECT_AP_READ
  741. b __xscale_setup
  742. .long cpu_arch_name
  743. .long cpu_elf_name
  744. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  745. .long cpu_ixp2400_name
  746. .long xscale_processor_functions
  747. .long v4wbi_tlb_fns
  748. .long xscale_mc_user_fns
  749. .long xscale_cache_fns
  750. .size __ixp2400_proc_info, . - __ixp2400_proc_info
  751. .type __ixp2800_proc_info, #object
  752. __ixp2800_proc_info:
  753. .long 0x690541a0
  754. .long 0xfffffff0
  755. .long PMD_TYPE_SECT | \
  756. PMD_SECT_BUFFERABLE | \
  757. PMD_SECT_CACHEABLE | \
  758. PMD_SECT_AP_WRITE | \
  759. PMD_SECT_AP_READ
  760. .long PMD_TYPE_SECT | \
  761. PMD_SECT_AP_WRITE | \
  762. PMD_SECT_AP_READ
  763. b __xscale_setup
  764. .long cpu_arch_name
  765. .long cpu_elf_name
  766. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  767. .long cpu_ixp2800_name
  768. .long xscale_processor_functions
  769. .long v4wbi_tlb_fns
  770. .long xscale_mc_user_fns
  771. .long xscale_cache_fns
  772. .size __ixp2800_proc_info, . - __ixp2800_proc_info
  773. .type __ixp42x_proc_info, #object
  774. __ixp42x_proc_info:
  775. .long 0x690541c0
  776. .long 0xffffffc0
  777. .long PMD_TYPE_SECT | \
  778. PMD_SECT_BUFFERABLE | \
  779. PMD_SECT_CACHEABLE | \
  780. PMD_SECT_AP_WRITE | \
  781. PMD_SECT_AP_READ
  782. .long PMD_TYPE_SECT | \
  783. PMD_SECT_AP_WRITE | \
  784. PMD_SECT_AP_READ
  785. b __xscale_setup
  786. .long cpu_arch_name
  787. .long cpu_elf_name
  788. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  789. .long cpu_ixp42x_name
  790. .long xscale_processor_functions
  791. .long v4wbi_tlb_fns
  792. .long xscale_mc_user_fns
  793. .long xscale_cache_fns
  794. .size __ixp42x_proc_info, . - __ixp42x_proc_info
  795. .type __ixp43x_proc_info, #object
  796. __ixp43x_proc_info:
  797. .long 0x69054040
  798. .long 0xfffffff0
  799. .long PMD_TYPE_SECT | \
  800. PMD_SECT_BUFFERABLE | \
  801. PMD_SECT_CACHEABLE | \
  802. PMD_SECT_AP_WRITE | \
  803. PMD_SECT_AP_READ
  804. .long PMD_TYPE_SECT | \
  805. PMD_SECT_AP_WRITE | \
  806. PMD_SECT_AP_READ
  807. b __xscale_setup
  808. .long cpu_arch_name
  809. .long cpu_elf_name
  810. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  811. .long cpu_ixp43x_name
  812. .long xscale_processor_functions
  813. .long v4wbi_tlb_fns
  814. .long xscale_mc_user_fns
  815. .long xscale_cache_fns
  816. .size __ixp43x_proc_info, . - __ixp43x_proc_info
  817. .type __ixp46x_proc_info, #object
  818. __ixp46x_proc_info:
  819. .long 0x69054200
  820. .long 0xffffff00
  821. .long PMD_TYPE_SECT | \
  822. PMD_SECT_BUFFERABLE | \
  823. PMD_SECT_CACHEABLE | \
  824. PMD_SECT_AP_WRITE | \
  825. PMD_SECT_AP_READ
  826. .long PMD_TYPE_SECT | \
  827. PMD_SECT_AP_WRITE | \
  828. PMD_SECT_AP_READ
  829. b __xscale_setup
  830. .long cpu_arch_name
  831. .long cpu_elf_name
  832. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  833. .long cpu_ixp46x_name
  834. .long xscale_processor_functions
  835. .long v4wbi_tlb_fns
  836. .long xscale_mc_user_fns
  837. .long xscale_cache_fns
  838. .size __ixp46x_proc_info, . - __ixp46x_proc_info
  839. .type __pxa255_proc_info,#object
  840. __pxa255_proc_info:
  841. .long 0x69052d00
  842. .long 0xfffffff0
  843. .long PMD_TYPE_SECT | \
  844. PMD_SECT_BUFFERABLE | \
  845. PMD_SECT_CACHEABLE | \
  846. PMD_SECT_AP_WRITE | \
  847. PMD_SECT_AP_READ
  848. .long PMD_TYPE_SECT | \
  849. PMD_SECT_AP_WRITE | \
  850. PMD_SECT_AP_READ
  851. b __xscale_setup
  852. .long cpu_arch_name
  853. .long cpu_elf_name
  854. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  855. .long cpu_pxa255_name
  856. .long xscale_processor_functions
  857. .long v4wbi_tlb_fns
  858. .long xscale_mc_user_fns
  859. .long xscale_cache_fns
  860. .size __pxa255_proc_info, . - __pxa255_proc_info
  861. .type __pxa270_proc_info,#object
  862. __pxa270_proc_info:
  863. .long 0x69054110
  864. .long 0xfffffff0
  865. .long PMD_TYPE_SECT | \
  866. PMD_SECT_BUFFERABLE | \
  867. PMD_SECT_CACHEABLE | \
  868. PMD_SECT_AP_WRITE | \
  869. PMD_SECT_AP_READ
  870. .long PMD_TYPE_SECT | \
  871. PMD_SECT_AP_WRITE | \
  872. PMD_SECT_AP_READ
  873. b __xscale_setup
  874. .long cpu_arch_name
  875. .long cpu_elf_name
  876. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  877. .long cpu_pxa270_name
  878. .long xscale_processor_functions
  879. .long v4wbi_tlb_fns
  880. .long xscale_mc_user_fns
  881. .long xscale_cache_fns
  882. .size __pxa270_proc_info, . - __pxa270_proc_info