proc-xscale.S 24 KB

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