Appendix C. Initialization Example
C-7
//------ WP1_ADDR_MASK
addis r3,r0,BMC_BASE_HIGH // WP1_ADDR_MASK (0xFF024) =
ori r3,r3,0xF024
stwbrx r3,0,r5
addis r4,r0,0xFFFF
ori r4,r4,0xFFFF
stwbrx r4,0,r6
//------ WP_CONTROL
addis r3,r0,BMC_BASE_HIGH // WP_CONTROL (0xFF048) =
ori r3,r3,0xF048
stwbrx r3,0,r5
addis r4,r0,0x0000
ori r4,r4,0x01C6
stwbrx r4,0,r6
addis r4,r0,0x0100 // Enable Watchpoint on seperate write
ori r4,r4,0x01C6
stwbrx r4,0,r6
sync
eieio
lis r3, 0x0
or r3, r3, r11 // restore MPC8240 Vendor ID
blr
/**********************************************************
* function: get_eumbbar
*
* output: r3 - content of eumbbar
**********************************************************/
.text
.align 2
.global get_eumbbar
get_eumbbar:
lis
r4,config_addr@h
ori
r4,r4,config_addr@l
lwz
r4,0(r4)
lis
r3,EUMBBAR_HI
ori
r3,r3,EUMBBAR_LO
stwbrx
r3,0,r4
lis
r4,config_data@h
ori
r4,r4,config_data@l
lwz
r4,0(r4)
lwbrx
r3,0,r4
blr
Summary of Contents for MPC8240
Page 1: ...MPC8240UM D Rev 1 1 2001 MPC8240 Integrated Processor User s Manual ...
Page 38: ...xviii MPC8240 Integrated Processor User s Manual TABLES Table Number Title Page Number ...
Page 48: ...xlviii MPC8240 Integrated Processor User s Manual Acronyms and Abbreviations ...
Page 312: ...6 94 MPC8240 Integrated Processor User s Manual ROM Flash Interface Operation ...
Page 348: ...7 36 MPC8240 Integrated Processor User s Manual PCI Host and Agent Modes ...
Page 372: ...8 24 MPC8240 Integrated Processor User s Manual DMA Register Descriptions ...
Page 394: ...9 22 MPC8240 Integrated Processor User s Manual I2O Interface ...
Page 412: ...10 18 MPC8240 Integrated Processor User s Manual Programming Guidelines ...
Page 454: ...12 14 MPC8240 Integrated Processor User s Manual Internal Arbitration ...
Page 466: ...13 12 MPC8240 Integrated Processor User s Manual Exception Latencies ...
Page 516: ...16 14 Watchpoint Trigger Applications ...
Page 538: ...B 16 MPC8240 Integrated Processor User s Manual Setting the Endian Mode of Operation ...
Page 546: ...C 8 MPC8240 Integrated Processor User s Manual ...
Page 640: ...INDEX Index 16 MPC8240 Integrated Processor User s Manual ...