proc-xscale.S 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977
  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_icache_all()
  168. *
  169. * Unconditionally clean and invalidate the entire icache.
  170. */
  171. ENTRY(xscale_flush_icache_all)
  172. mov r0, #0
  173. mcr p15, 0, r0, c7, c5, 0 @ invalidate I cache
  174. mov pc, lr
  175. ENDPROC(xscale_flush_icache_all)
  176. /*
  177. * flush_user_cache_all()
  178. *
  179. * Invalidate all cache entries in a particular address
  180. * space.
  181. */
  182. ENTRY(xscale_flush_user_cache_all)
  183. /* FALLTHROUGH */
  184. /*
  185. * flush_kern_cache_all()
  186. *
  187. * Clean and invalidate the entire cache.
  188. */
  189. ENTRY(xscale_flush_kern_cache_all)
  190. mov r2, #VM_EXEC
  191. mov ip, #0
  192. __flush_whole_cache:
  193. clean_d_cache r0, r1
  194. tst r2, #VM_EXEC
  195. mcrne p15, 0, ip, c7, c5, 0 @ Invalidate I cache & BTB
  196. mcrne p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  197. mov pc, lr
  198. /*
  199. * flush_user_cache_range(start, end, vm_flags)
  200. *
  201. * Invalidate a range of cache entries in the specified
  202. * address space.
  203. *
  204. * - start - start address (may not be aligned)
  205. * - end - end address (exclusive, may not be aligned)
  206. * - vma - vma_area_struct describing address space
  207. */
  208. .align 5
  209. ENTRY(xscale_flush_user_cache_range)
  210. mov ip, #0
  211. sub r3, r1, r0 @ calculate total size
  212. cmp r3, #MAX_AREA_SIZE
  213. bhs __flush_whole_cache
  214. 1: tst r2, #VM_EXEC
  215. mcrne p15, 0, r0, c7, c5, 1 @ Invalidate I cache line
  216. mcr p15, 0, r0, c7, c10, 1 @ Clean D cache line
  217. mcr p15, 0, r0, c7, c6, 1 @ Invalidate D cache line
  218. add r0, r0, #CACHELINESIZE
  219. cmp r0, r1
  220. blo 1b
  221. tst r2, #VM_EXEC
  222. mcrne p15, 0, ip, c7, c5, 6 @ Invalidate BTB
  223. mcrne p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  224. mov pc, lr
  225. /*
  226. * coherent_kern_range(start, end)
  227. *
  228. * Ensure coherency between the Icache and the Dcache in the
  229. * region described by start. If you have non-snooping
  230. * Harvard caches, you need to implement this function.
  231. *
  232. * - start - virtual start address
  233. * - end - virtual end address
  234. *
  235. * Note: single I-cache line invalidation isn't used here since
  236. * it also trashes the mini I-cache used by JTAG debuggers.
  237. */
  238. ENTRY(xscale_coherent_kern_range)
  239. bic r0, r0, #CACHELINESIZE - 1
  240. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  241. add r0, r0, #CACHELINESIZE
  242. cmp r0, r1
  243. blo 1b
  244. mov r0, #0
  245. mcr p15, 0, r0, c7, c5, 0 @ Invalidate I cache & BTB
  246. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  247. mov pc, lr
  248. /*
  249. * coherent_user_range(start, end)
  250. *
  251. * Ensure coherency between the Icache and the Dcache in the
  252. * region described by start. If you have non-snooping
  253. * Harvard caches, you need to implement this function.
  254. *
  255. * - start - virtual start address
  256. * - end - virtual end address
  257. */
  258. ENTRY(xscale_coherent_user_range)
  259. bic r0, r0, #CACHELINESIZE - 1
  260. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  261. mcr p15, 0, r0, c7, c5, 1 @ Invalidate I cache entry
  262. add r0, r0, #CACHELINESIZE
  263. cmp r0, r1
  264. blo 1b
  265. mov r0, #0
  266. mcr p15, 0, r0, c7, c5, 6 @ Invalidate BTB
  267. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  268. mov pc, lr
  269. /*
  270. * flush_kern_dcache_area(void *addr, size_t size)
  271. *
  272. * Ensure no D cache aliasing occurs, either with itself or
  273. * the I cache
  274. *
  275. * - addr - kernel address
  276. * - size - region size
  277. */
  278. ENTRY(xscale_flush_kern_dcache_area)
  279. add r1, r0, r1
  280. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  281. mcr p15, 0, r0, c7, c6, 1 @ invalidate D entry
  282. add r0, r0, #CACHELINESIZE
  283. cmp r0, r1
  284. blo 1b
  285. mov r0, #0
  286. mcr p15, 0, r0, c7, c5, 0 @ Invalidate I cache & BTB
  287. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  288. mov pc, lr
  289. /*
  290. * dma_inv_range(start, end)
  291. *
  292. * Invalidate (discard) the specified virtual address range.
  293. * May not write back any entries. If 'start' or 'end'
  294. * are not cache line aligned, those lines must be written
  295. * back.
  296. *
  297. * - start - virtual start address
  298. * - end - virtual end address
  299. */
  300. xscale_dma_inv_range:
  301. tst r0, #CACHELINESIZE - 1
  302. bic r0, r0, #CACHELINESIZE - 1
  303. mcrne p15, 0, r0, c7, c10, 1 @ clean D entry
  304. tst r1, #CACHELINESIZE - 1
  305. mcrne p15, 0, r1, c7, c10, 1 @ clean D entry
  306. 1: mcr p15, 0, r0, c7, c6, 1 @ invalidate D entry
  307. add r0, r0, #CACHELINESIZE
  308. cmp r0, r1
  309. blo 1b
  310. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  311. mov pc, lr
  312. /*
  313. * dma_clean_range(start, end)
  314. *
  315. * Clean the specified virtual address range.
  316. *
  317. * - start - virtual start address
  318. * - end - virtual end address
  319. */
  320. xscale_dma_clean_range:
  321. bic r0, r0, #CACHELINESIZE - 1
  322. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  323. add r0, r0, #CACHELINESIZE
  324. cmp r0, r1
  325. blo 1b
  326. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  327. mov pc, lr
  328. /*
  329. * dma_flush_range(start, end)
  330. *
  331. * Clean and invalidate the specified virtual address range.
  332. *
  333. * - start - virtual start address
  334. * - end - virtual end address
  335. */
  336. ENTRY(xscale_dma_flush_range)
  337. bic r0, r0, #CACHELINESIZE - 1
  338. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  339. mcr p15, 0, r0, c7, c6, 1 @ invalidate D entry
  340. add r0, r0, #CACHELINESIZE
  341. cmp r0, r1
  342. blo 1b
  343. mcr p15, 0, r0, c7, c10, 4 @ Drain Write (& Fill) Buffer
  344. mov pc, lr
  345. /*
  346. * dma_map_area(start, size, dir)
  347. * - start - kernel virtual start address
  348. * - size - size of region
  349. * - dir - DMA direction
  350. */
  351. ENTRY(xscale_dma_map_area)
  352. add r1, r1, r0
  353. cmp r2, #DMA_TO_DEVICE
  354. beq xscale_dma_clean_range
  355. bcs xscale_dma_inv_range
  356. b xscale_dma_flush_range
  357. ENDPROC(xscale_dma_map_area)
  358. /*
  359. * dma_map_area(start, size, dir)
  360. * - start - kernel virtual start address
  361. * - size - size of region
  362. * - dir - DMA direction
  363. */
  364. ENTRY(xscale_dma_a0_map_area)
  365. add r1, r1, r0
  366. teq r2, #DMA_TO_DEVICE
  367. beq xscale_dma_clean_range
  368. b xscale_dma_flush_range
  369. ENDPROC(xscsale_dma_a0_map_area)
  370. /*
  371. * dma_unmap_area(start, size, dir)
  372. * - start - kernel virtual start address
  373. * - size - size of region
  374. * - dir - DMA direction
  375. */
  376. ENTRY(xscale_dma_unmap_area)
  377. mov pc, lr
  378. ENDPROC(xscale_dma_unmap_area)
  379. ENTRY(xscale_cache_fns)
  380. .long xscale_flush_icache_all
  381. .long xscale_flush_kern_cache_all
  382. .long xscale_flush_user_cache_all
  383. .long xscale_flush_user_cache_range
  384. .long xscale_coherent_kern_range
  385. .long xscale_coherent_user_range
  386. .long xscale_flush_kern_dcache_area
  387. .long xscale_dma_map_area
  388. .long xscale_dma_unmap_area
  389. .long xscale_dma_flush_range
  390. /*
  391. * On stepping A0/A1 of the 80200, invalidating D-cache by line doesn't
  392. * clear the dirty bits, which means that if we invalidate a dirty line,
  393. * the dirty data can still be written back to external memory later on.
  394. *
  395. * The recommended workaround is to always do a clean D-cache line before
  396. * doing an invalidate D-cache line, so on the affected processors,
  397. * dma_inv_range() is implemented as dma_flush_range().
  398. *
  399. * See erratum #25 of "Intel 80200 Processor Specification Update",
  400. * revision January 22, 2003, available at:
  401. * http://www.intel.com/design/iio/specupdt/273415.htm
  402. */
  403. ENTRY(xscale_80200_A0_A1_cache_fns)
  404. .long xscale_flush_kern_cache_all
  405. .long xscale_flush_user_cache_all
  406. .long xscale_flush_user_cache_range
  407. .long xscale_coherent_kern_range
  408. .long xscale_coherent_user_range
  409. .long xscale_flush_kern_dcache_area
  410. .long xscale_dma_a0_map_area
  411. .long xscale_dma_unmap_area
  412. .long xscale_dma_flush_range
  413. ENTRY(cpu_xscale_dcache_clean_area)
  414. 1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry
  415. add r0, r0, #CACHELINESIZE
  416. subs r1, r1, #CACHELINESIZE
  417. bhi 1b
  418. mov pc, lr
  419. /* =============================== PageTable ============================== */
  420. /*
  421. * cpu_xscale_switch_mm(pgd)
  422. *
  423. * Set the translation base pointer to be as described by pgd.
  424. *
  425. * pgd: new page tables
  426. */
  427. .align 5
  428. ENTRY(cpu_xscale_switch_mm)
  429. clean_d_cache r1, r2
  430. mcr p15, 0, ip, c7, c5, 0 @ Invalidate I cache & BTB
  431. mcr p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  432. mcr p15, 0, r0, c2, c0, 0 @ load page table pointer
  433. mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
  434. cpwait_ret lr, ip
  435. /*
  436. * cpu_xscale_set_pte_ext(ptep, pte, ext)
  437. *
  438. * Set a PTE and flush it out
  439. *
  440. * Errata 40: must set memory to write-through for user read-only pages.
  441. */
  442. cpu_xscale_mt_table:
  443. .long 0x00 @ L_PTE_MT_UNCACHED
  444. .long PTE_BUFFERABLE @ L_PTE_MT_BUFFERABLE
  445. .long PTE_CACHEABLE @ L_PTE_MT_WRITETHROUGH
  446. .long PTE_CACHEABLE | PTE_BUFFERABLE @ L_PTE_MT_WRITEBACK
  447. .long PTE_EXT_TEX(1) | PTE_BUFFERABLE @ L_PTE_MT_DEV_SHARED
  448. .long 0x00 @ unused
  449. .long PTE_EXT_TEX(1) | PTE_CACHEABLE @ L_PTE_MT_MINICACHE
  450. .long PTE_EXT_TEX(1) | PTE_CACHEABLE | PTE_BUFFERABLE @ L_PTE_MT_WRITEALLOC
  451. .long 0x00 @ unused
  452. .long PTE_BUFFERABLE @ L_PTE_MT_DEV_WC
  453. .long 0x00 @ unused
  454. .long PTE_CACHEABLE | PTE_BUFFERABLE @ L_PTE_MT_DEV_CACHED
  455. .long 0x00 @ L_PTE_MT_DEV_NONSHARED
  456. .long 0x00 @ unused
  457. .long 0x00 @ unused
  458. .long 0x00 @ unused
  459. .align 5
  460. ENTRY(cpu_xscale_set_pte_ext)
  461. xscale_set_pte_ext_prologue
  462. @
  463. @ Erratum 40: must set memory to write-through for user read-only pages
  464. @
  465. and ip, r1, #(L_PTE_MT_MASK | L_PTE_USER | L_PTE_RDONLY) & ~(4 << 2)
  466. teq ip, #L_PTE_MT_WRITEBACK | L_PTE_USER | L_PTE_RDONLY
  467. moveq r1, #L_PTE_MT_WRITETHROUGH
  468. and r1, r1, #L_PTE_MT_MASK
  469. adr ip, cpu_xscale_mt_table
  470. ldr ip, [ip, r1]
  471. bic r2, r2, #0x0c
  472. orr r2, r2, ip
  473. xscale_set_pte_ext_epilogue
  474. mov pc, lr
  475. .ltorg
  476. .align
  477. __CPUINIT
  478. .type __xscale_setup, #function
  479. __xscale_setup:
  480. mcr p15, 0, ip, c7, c7, 0 @ invalidate I, D caches & BTB
  481. mcr p15, 0, ip, c7, c10, 4 @ Drain Write (& Fill) Buffer
  482. mcr p15, 0, ip, c8, c7, 0 @ invalidate I, D TLBs
  483. mov r0, #1 << 6 @ cp6 for IOP3xx and Bulverde
  484. orr r0, r0, #1 << 13 @ Its undefined whether this
  485. mcr p15, 0, r0, c15, c1, 0 @ affects USR or SVC modes
  486. adr r5, xscale_crval
  487. ldmia r5, {r5, r6}
  488. mrc p15, 0, r0, c1, c0, 0 @ get control register
  489. bic r0, r0, r5
  490. orr r0, r0, r6
  491. mov pc, lr
  492. .size __xscale_setup, . - __xscale_setup
  493. /*
  494. * R
  495. * .RVI ZFRS BLDP WCAM
  496. * ..11 1.01 .... .101
  497. *
  498. */
  499. .type xscale_crval, #object
  500. xscale_crval:
  501. crval clear=0x00003b07, mmuset=0x00003905, ucset=0x00001900
  502. __INITDATA
  503. /*
  504. * Purpose : Function pointers used to access above functions - all calls
  505. * come through these
  506. */
  507. .type xscale_processor_functions, #object
  508. ENTRY(xscale_processor_functions)
  509. .word v5t_early_abort
  510. .word legacy_pabort
  511. .word cpu_xscale_proc_init
  512. .word cpu_xscale_proc_fin
  513. .word cpu_xscale_reset
  514. .word cpu_xscale_do_idle
  515. .word cpu_xscale_dcache_clean_area
  516. .word cpu_xscale_switch_mm
  517. .word cpu_xscale_set_pte_ext
  518. .size xscale_processor_functions, . - xscale_processor_functions
  519. .section ".rodata"
  520. .type cpu_arch_name, #object
  521. cpu_arch_name:
  522. .asciz "armv5te"
  523. .size cpu_arch_name, . - cpu_arch_name
  524. .type cpu_elf_name, #object
  525. cpu_elf_name:
  526. .asciz "v5"
  527. .size cpu_elf_name, . - cpu_elf_name
  528. .type cpu_80200_A0_A1_name, #object
  529. cpu_80200_A0_A1_name:
  530. .asciz "XScale-80200 A0/A1"
  531. .size cpu_80200_A0_A1_name, . - cpu_80200_A0_A1_name
  532. .type cpu_80200_name, #object
  533. cpu_80200_name:
  534. .asciz "XScale-80200"
  535. .size cpu_80200_name, . - cpu_80200_name
  536. .type cpu_80219_name, #object
  537. cpu_80219_name:
  538. .asciz "XScale-80219"
  539. .size cpu_80219_name, . - cpu_80219_name
  540. .type cpu_8032x_name, #object
  541. cpu_8032x_name:
  542. .asciz "XScale-IOP8032x Family"
  543. .size cpu_8032x_name, . - cpu_8032x_name
  544. .type cpu_8033x_name, #object
  545. cpu_8033x_name:
  546. .asciz "XScale-IOP8033x Family"
  547. .size cpu_8033x_name, . - cpu_8033x_name
  548. .type cpu_pxa250_name, #object
  549. cpu_pxa250_name:
  550. .asciz "XScale-PXA250"
  551. .size cpu_pxa250_name, . - cpu_pxa250_name
  552. .type cpu_pxa210_name, #object
  553. cpu_pxa210_name:
  554. .asciz "XScale-PXA210"
  555. .size cpu_pxa210_name, . - cpu_pxa210_name
  556. .type cpu_ixp42x_name, #object
  557. cpu_ixp42x_name:
  558. .asciz "XScale-IXP42x Family"
  559. .size cpu_ixp42x_name, . - cpu_ixp42x_name
  560. .type cpu_ixp43x_name, #object
  561. cpu_ixp43x_name:
  562. .asciz "XScale-IXP43x Family"
  563. .size cpu_ixp43x_name, . - cpu_ixp43x_name
  564. .type cpu_ixp46x_name, #object
  565. cpu_ixp46x_name:
  566. .asciz "XScale-IXP46x Family"
  567. .size cpu_ixp46x_name, . - cpu_ixp46x_name
  568. .type cpu_ixp2400_name, #object
  569. cpu_ixp2400_name:
  570. .asciz "XScale-IXP2400"
  571. .size cpu_ixp2400_name, . - cpu_ixp2400_name
  572. .type cpu_ixp2800_name, #object
  573. cpu_ixp2800_name:
  574. .asciz "XScale-IXP2800"
  575. .size cpu_ixp2800_name, . - cpu_ixp2800_name
  576. .type cpu_pxa255_name, #object
  577. cpu_pxa255_name:
  578. .asciz "XScale-PXA255"
  579. .size cpu_pxa255_name, . - cpu_pxa255_name
  580. .type cpu_pxa270_name, #object
  581. cpu_pxa270_name:
  582. .asciz "XScale-PXA270"
  583. .size cpu_pxa270_name, . - cpu_pxa270_name
  584. .align
  585. .section ".proc.info.init", #alloc, #execinstr
  586. .type __80200_A0_A1_proc_info,#object
  587. __80200_A0_A1_proc_info:
  588. .long 0x69052000
  589. .long 0xfffffffe
  590. .long PMD_TYPE_SECT | \
  591. PMD_SECT_BUFFERABLE | \
  592. PMD_SECT_CACHEABLE | \
  593. PMD_SECT_AP_WRITE | \
  594. PMD_SECT_AP_READ
  595. .long PMD_TYPE_SECT | \
  596. PMD_SECT_AP_WRITE | \
  597. PMD_SECT_AP_READ
  598. b __xscale_setup
  599. .long cpu_arch_name
  600. .long cpu_elf_name
  601. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  602. .long cpu_80200_name
  603. .long xscale_processor_functions
  604. .long v4wbi_tlb_fns
  605. .long xscale_mc_user_fns
  606. .long xscale_80200_A0_A1_cache_fns
  607. .size __80200_A0_A1_proc_info, . - __80200_A0_A1_proc_info
  608. .type __80200_proc_info,#object
  609. __80200_proc_info:
  610. .long 0x69052000
  611. .long 0xfffffff0
  612. .long PMD_TYPE_SECT | \
  613. PMD_SECT_BUFFERABLE | \
  614. PMD_SECT_CACHEABLE | \
  615. PMD_SECT_AP_WRITE | \
  616. PMD_SECT_AP_READ
  617. .long PMD_TYPE_SECT | \
  618. PMD_SECT_AP_WRITE | \
  619. PMD_SECT_AP_READ
  620. b __xscale_setup
  621. .long cpu_arch_name
  622. .long cpu_elf_name
  623. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  624. .long cpu_80200_name
  625. .long xscale_processor_functions
  626. .long v4wbi_tlb_fns
  627. .long xscale_mc_user_fns
  628. .long xscale_cache_fns
  629. .size __80200_proc_info, . - __80200_proc_info
  630. .type __80219_proc_info,#object
  631. __80219_proc_info:
  632. .long 0x69052e20
  633. .long 0xffffffe0
  634. .long PMD_TYPE_SECT | \
  635. PMD_SECT_BUFFERABLE | \
  636. PMD_SECT_CACHEABLE | \
  637. PMD_SECT_AP_WRITE | \
  638. PMD_SECT_AP_READ
  639. .long PMD_TYPE_SECT | \
  640. PMD_SECT_AP_WRITE | \
  641. PMD_SECT_AP_READ
  642. b __xscale_setup
  643. .long cpu_arch_name
  644. .long cpu_elf_name
  645. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  646. .long cpu_80219_name
  647. .long xscale_processor_functions
  648. .long v4wbi_tlb_fns
  649. .long xscale_mc_user_fns
  650. .long xscale_cache_fns
  651. .size __80219_proc_info, . - __80219_proc_info
  652. .type __8032x_proc_info,#object
  653. __8032x_proc_info:
  654. .long 0x69052420
  655. .long 0xfffff7e0
  656. .long PMD_TYPE_SECT | \
  657. PMD_SECT_BUFFERABLE | \
  658. PMD_SECT_CACHEABLE | \
  659. PMD_SECT_AP_WRITE | \
  660. PMD_SECT_AP_READ
  661. .long PMD_TYPE_SECT | \
  662. PMD_SECT_AP_WRITE | \
  663. PMD_SECT_AP_READ
  664. b __xscale_setup
  665. .long cpu_arch_name
  666. .long cpu_elf_name
  667. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  668. .long cpu_8032x_name
  669. .long xscale_processor_functions
  670. .long v4wbi_tlb_fns
  671. .long xscale_mc_user_fns
  672. .long xscale_cache_fns
  673. .size __8032x_proc_info, . - __8032x_proc_info
  674. .type __8033x_proc_info,#object
  675. __8033x_proc_info:
  676. .long 0x69054010
  677. .long 0xfffffd30
  678. .long PMD_TYPE_SECT | \
  679. PMD_SECT_BUFFERABLE | \
  680. PMD_SECT_CACHEABLE | \
  681. PMD_SECT_AP_WRITE | \
  682. PMD_SECT_AP_READ
  683. .long PMD_TYPE_SECT | \
  684. PMD_SECT_AP_WRITE | \
  685. PMD_SECT_AP_READ
  686. b __xscale_setup
  687. .long cpu_arch_name
  688. .long cpu_elf_name
  689. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  690. .long cpu_8033x_name
  691. .long xscale_processor_functions
  692. .long v4wbi_tlb_fns
  693. .long xscale_mc_user_fns
  694. .long xscale_cache_fns
  695. .size __8033x_proc_info, . - __8033x_proc_info
  696. .type __pxa250_proc_info,#object
  697. __pxa250_proc_info:
  698. .long 0x69052100
  699. .long 0xfffff7f0
  700. .long PMD_TYPE_SECT | \
  701. PMD_SECT_BUFFERABLE | \
  702. PMD_SECT_CACHEABLE | \
  703. PMD_SECT_AP_WRITE | \
  704. PMD_SECT_AP_READ
  705. .long PMD_TYPE_SECT | \
  706. PMD_SECT_AP_WRITE | \
  707. PMD_SECT_AP_READ
  708. b __xscale_setup
  709. .long cpu_arch_name
  710. .long cpu_elf_name
  711. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  712. .long cpu_pxa250_name
  713. .long xscale_processor_functions
  714. .long v4wbi_tlb_fns
  715. .long xscale_mc_user_fns
  716. .long xscale_cache_fns
  717. .size __pxa250_proc_info, . - __pxa250_proc_info
  718. .type __pxa210_proc_info,#object
  719. __pxa210_proc_info:
  720. .long 0x69052120
  721. .long 0xfffff3f0
  722. .long PMD_TYPE_SECT | \
  723. PMD_SECT_BUFFERABLE | \
  724. PMD_SECT_CACHEABLE | \
  725. PMD_SECT_AP_WRITE | \
  726. PMD_SECT_AP_READ
  727. .long PMD_TYPE_SECT | \
  728. PMD_SECT_AP_WRITE | \
  729. PMD_SECT_AP_READ
  730. b __xscale_setup
  731. .long cpu_arch_name
  732. .long cpu_elf_name
  733. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  734. .long cpu_pxa210_name
  735. .long xscale_processor_functions
  736. .long v4wbi_tlb_fns
  737. .long xscale_mc_user_fns
  738. .long xscale_cache_fns
  739. .size __pxa210_proc_info, . - __pxa210_proc_info
  740. .type __ixp2400_proc_info, #object
  741. __ixp2400_proc_info:
  742. .long 0x69054190
  743. .long 0xfffffff0
  744. .long PMD_TYPE_SECT | \
  745. PMD_SECT_BUFFERABLE | \
  746. PMD_SECT_CACHEABLE | \
  747. PMD_SECT_AP_WRITE | \
  748. PMD_SECT_AP_READ
  749. .long PMD_TYPE_SECT | \
  750. PMD_SECT_AP_WRITE | \
  751. PMD_SECT_AP_READ
  752. b __xscale_setup
  753. .long cpu_arch_name
  754. .long cpu_elf_name
  755. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  756. .long cpu_ixp2400_name
  757. .long xscale_processor_functions
  758. .long v4wbi_tlb_fns
  759. .long xscale_mc_user_fns
  760. .long xscale_cache_fns
  761. .size __ixp2400_proc_info, . - __ixp2400_proc_info
  762. .type __ixp2800_proc_info, #object
  763. __ixp2800_proc_info:
  764. .long 0x690541a0
  765. .long 0xfffffff0
  766. .long PMD_TYPE_SECT | \
  767. PMD_SECT_BUFFERABLE | \
  768. PMD_SECT_CACHEABLE | \
  769. PMD_SECT_AP_WRITE | \
  770. PMD_SECT_AP_READ
  771. .long PMD_TYPE_SECT | \
  772. PMD_SECT_AP_WRITE | \
  773. PMD_SECT_AP_READ
  774. b __xscale_setup
  775. .long cpu_arch_name
  776. .long cpu_elf_name
  777. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  778. .long cpu_ixp2800_name
  779. .long xscale_processor_functions
  780. .long v4wbi_tlb_fns
  781. .long xscale_mc_user_fns
  782. .long xscale_cache_fns
  783. .size __ixp2800_proc_info, . - __ixp2800_proc_info
  784. .type __ixp42x_proc_info, #object
  785. __ixp42x_proc_info:
  786. .long 0x690541c0
  787. .long 0xffffffc0
  788. .long PMD_TYPE_SECT | \
  789. PMD_SECT_BUFFERABLE | \
  790. PMD_SECT_CACHEABLE | \
  791. PMD_SECT_AP_WRITE | \
  792. PMD_SECT_AP_READ
  793. .long PMD_TYPE_SECT | \
  794. PMD_SECT_AP_WRITE | \
  795. PMD_SECT_AP_READ
  796. b __xscale_setup
  797. .long cpu_arch_name
  798. .long cpu_elf_name
  799. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  800. .long cpu_ixp42x_name
  801. .long xscale_processor_functions
  802. .long v4wbi_tlb_fns
  803. .long xscale_mc_user_fns
  804. .long xscale_cache_fns
  805. .size __ixp42x_proc_info, . - __ixp42x_proc_info
  806. .type __ixp43x_proc_info, #object
  807. __ixp43x_proc_info:
  808. .long 0x69054040
  809. .long 0xfffffff0
  810. .long PMD_TYPE_SECT | \
  811. PMD_SECT_BUFFERABLE | \
  812. PMD_SECT_CACHEABLE | \
  813. PMD_SECT_AP_WRITE | \
  814. PMD_SECT_AP_READ
  815. .long PMD_TYPE_SECT | \
  816. PMD_SECT_AP_WRITE | \
  817. PMD_SECT_AP_READ
  818. b __xscale_setup
  819. .long cpu_arch_name
  820. .long cpu_elf_name
  821. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  822. .long cpu_ixp43x_name
  823. .long xscale_processor_functions
  824. .long v4wbi_tlb_fns
  825. .long xscale_mc_user_fns
  826. .long xscale_cache_fns
  827. .size __ixp43x_proc_info, . - __ixp43x_proc_info
  828. .type __ixp46x_proc_info, #object
  829. __ixp46x_proc_info:
  830. .long 0x69054200
  831. .long 0xffffff00
  832. .long PMD_TYPE_SECT | \
  833. PMD_SECT_BUFFERABLE | \
  834. PMD_SECT_CACHEABLE | \
  835. PMD_SECT_AP_WRITE | \
  836. PMD_SECT_AP_READ
  837. .long PMD_TYPE_SECT | \
  838. PMD_SECT_AP_WRITE | \
  839. PMD_SECT_AP_READ
  840. b __xscale_setup
  841. .long cpu_arch_name
  842. .long cpu_elf_name
  843. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  844. .long cpu_ixp46x_name
  845. .long xscale_processor_functions
  846. .long v4wbi_tlb_fns
  847. .long xscale_mc_user_fns
  848. .long xscale_cache_fns
  849. .size __ixp46x_proc_info, . - __ixp46x_proc_info
  850. .type __pxa255_proc_info,#object
  851. __pxa255_proc_info:
  852. .long 0x69052d00
  853. .long 0xfffffff0
  854. .long PMD_TYPE_SECT | \
  855. PMD_SECT_BUFFERABLE | \
  856. PMD_SECT_CACHEABLE | \
  857. PMD_SECT_AP_WRITE | \
  858. PMD_SECT_AP_READ
  859. .long PMD_TYPE_SECT | \
  860. PMD_SECT_AP_WRITE | \
  861. PMD_SECT_AP_READ
  862. b __xscale_setup
  863. .long cpu_arch_name
  864. .long cpu_elf_name
  865. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  866. .long cpu_pxa255_name
  867. .long xscale_processor_functions
  868. .long v4wbi_tlb_fns
  869. .long xscale_mc_user_fns
  870. .long xscale_cache_fns
  871. .size __pxa255_proc_info, . - __pxa255_proc_info
  872. .type __pxa270_proc_info,#object
  873. __pxa270_proc_info:
  874. .long 0x69054110
  875. .long 0xfffffff0
  876. .long PMD_TYPE_SECT | \
  877. PMD_SECT_BUFFERABLE | \
  878. PMD_SECT_CACHEABLE | \
  879. PMD_SECT_AP_WRITE | \
  880. PMD_SECT_AP_READ
  881. .long PMD_TYPE_SECT | \
  882. PMD_SECT_AP_WRITE | \
  883. PMD_SECT_AP_READ
  884. b __xscale_setup
  885. .long cpu_arch_name
  886. .long cpu_elf_name
  887. .long HWCAP_SWP|HWCAP_HALF|HWCAP_THUMB|HWCAP_FAST_MULT|HWCAP_EDSP
  888. .long cpu_pxa270_name
  889. .long xscale_processor_functions
  890. .long v4wbi_tlb_fns
  891. .long xscale_mc_user_fns
  892. .long xscale_cache_fns
  893. .size __pxa270_proc_info, . - __pxa270_proc_info