
. . . . .
W O R K I N G W I T H T H E C P U
R13:Process ID register
www.digiembedded.com
103
Use the Process ID register to determine the process that is currently running. The
process identifier is set to 0 at reset.
FCSE PID
register
Addresses issued by the ARM926EJ-S core, in the range 0 to 32 MB, are translated
according to the value contained in the FCSE PID register. Address A becomes
A + (FCSE PID x 32 MB)
; it is this modified address that the MMU and caches see.
Addresses above 32 MB are not modified. The FCSE PID is a 7-bit field, which allows
128 x 32 MB processes to be mapped.
If the FCSE PID is 0, there is a flat mapping between the virtual addresses output by
the ARM926EJ-S core and the modified virtual addresses used by the caches and
MMU. The FCSE PID is set to 0 at system reset.
If the MMU is disabled, there is no FCSE address translation.
FCSE translation is not applied for addresses used for entry-based cache or TLB
maintenance operations. For these operations,
VA=MVA
.
Access
instructions
Use these instructions to access the FCSE PID register:
Register format
This is the format of the FCSE PID register.
Performing a fast
context switch
You can perform a fast context switch by writing to the Process ID register (R13)
with
opcode_2
set to 0. The contents of the caches and the TLB do not have to be
flushed after a fast context switch because they still hold address tags. The two
instructions after the FCSE PID has been written have been fetched with the old
FCSE PID, as shown in this code example:
{FCSE PID = 0}
MOV r0, #1:SHL:25
;Fetched with FCSE PID = 0
MCR p15,0,r0,c13,c0,0
;Fetched with FCSE PID = 0
A1
;Fetched with FCSE PID = 0
A2
;Fetched with FCSE PID = 0
A3
;Fetched with FCSE PID = 1
opcode_2=1
Selects the context ID register.
Function
Data
ARM instruction
Read FCSE PID
FCSE PID
MRC p15,0,Rd,c13,c0,0
Write FCSE PID
FCSE PID
MCR p15,0,Rd,c13,c0,0
31
25 24
0
SBZ
FCSE PID
Содержание NS9215
Страница 1: ...NS9215 Hardware Reference 90000847_C Release date 10 April 2008...
Страница 3: ......
Страница 4: ......
Страница 26: ...26 Hardware Reference NS9215...
Страница 44: ...P I N O U T 26 5 System clock 44 Hardware Reference NS9215 System clock drawing...
Страница 52: ...P I N O U T 26 5 Power and ground 52 Hardware Reference NS9215...
Страница 80: ...I O C O N T ROL M O D U L E Memory Bus Configuration register 80 Hardware Reference NS9215...
Страница 136: ...WOR KI N G W I TH T H E C P U Noncachable instruction fetches 136 Hardware Reference NS9215...
Страница 202: ...S Y S T E M C O N T RO L M OD U L E RTC Module Control register 202 Hardware Reference NS9215...
Страница 260: ...M E MO R Y C O N T ROL L E R StaticMemory Turn Round Delay 0 3 registers 260 Hardware Reference NS9215...
Страница 354: ...E X T E R N A L D M A DMA Peripheral Chip Select register 354 Hardware Reference NS9215...
Страница 362: ...A E S D AT A E N C R Y P T I O N D E C R Y P T I O N M O D U L E CCM mode 362 Hardware Reference NS9215...
Страница 384: ...I O HU B M OD UL E Module Direct Mode TX Data Last FIFO 384 Hardware Reference NS9215 31 March 2008...
Страница 414: ...S E R I A L C ON T RO L M O D U L E U ART UART Modem Status register 414 Hardware Reference NS9215...
Страница 446: ...S E R I A L C ON T RO L M O D U L E S PI SPI timing characteristics 446 Hardware Reference NS9215...
Страница 472: ...R E A L TI M E C L O C K M O D U L E General Status register 472 Hardware Reference NS9215...
Страница 512: ...TI M I NG Clock timing 512 Hardware Reference NS9215...
Страница 514: ...PA CKA GING Processor Dimensions 514 Hardware Reference NS9215 P r o c e s s o r D i m e n s i o n s...
Страница 515: ...PA CKA GING Processor Dimensions www digiembedded com 515...
Страница 516: ...PA CKA GING Processor Dimensions 516 Hardware Reference NS9215...