| Electronic Components Datasheet Search |
|
AVR32AP Datasheet(PDF) 61 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AVR32AP Datasheet(HTML) 61 Page - ATMEL Corporation |
|
61 / 181 page ![]() 61 32001A–AVR32–06/06 AVR32 3. If any other event arises that requires software intervention, an appropriate exception is issued. 4. If the correct entry was found in the TLB, and the access permissions were not violated, the memory access is performed without any further software intervention. The following tasks must be performed by software: 1. Setup of the MMU hardware by initializing the MMU-related registers and data struc- tures if needed. 2. Maintenance of the TLB structure. TLB entries are written, invalidated and replaced by means of software. A tlbw instruction is included in the instruction set to support this. 3. The MMU may generate several exceptions. Software exception handlers must be writ- ten in order to service these exceptions. 4.3.1 The tlbw instruction The tlbw instruction is implemented in order to aid in performing TLB maintenance. The instruc- tion copies the contents of TLBEHI and TLBELO into the TLB entry pointed to by the DTLB Replacement Pointer (DRP) in the MMU Control Register. DRP is automatically incremented by hardware in order to implement a TLB replacement algorithm in hardware. Software may update DRP before executing tlbw in order to implement a software replacement algorithm. 4.3.2 TLB synonyms The caches in the AVR32 AP system are virtually indexed but physically tagged. This allows a cache access to start before the MMU translation has completed, but puts some restrictions on which address translations can be performed. If using pages smaller than 1/4th of the cache size, it is possible that the virtual address and the physical address could map to different places in the cache. To avoid unpredictable behaviour, the OS must ensure that no translations change address bits that are lower than 1/4th cache size. This means that all page translation must fulfill the following restriction: Address Physical modulo (Cache Size / 4) = Address Virtual modulo (Cache Size / 4) For cache sizes up to 16 kB, this is only relevant for 1kB MMU pages. For 32kB caches, this is also relevant for 4kB pages. Example 1: On a system with 8kB caches, virtual and physical address must be the same mod- ulo 2 kB. If using 1kB pages, the OS must ensure that bit 10 of the address is not changed by the translation. Example 2: On a system with 16kB caches, virtual and physical address must be the same mod- ulo 4 kB. If using 1kB pages, the OS must ensure that bit 10 and 11 of the address are not changed by the translation. 4.3.3 MMU exception handling This chapter describes the software actions that must be performed for MMU-related excep- tions. The hardware actions performed by the exceptions are described in detail in Section 3.11.1 ”Description of events in AVR32 AP” on page 35. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |