proc-xscale.S 24 KB

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