While running in this 64M mapping, I set up CCSR for core 1 as follows:
mas0 = MAS0_TLBSEL(1) | MAS0_ESEL(1);
mas1 = MAS1_VALID | MAS1_TID(0) | MAS1_TS | MAS1_TSIZE(BOOKE_PAGESZ_1M);
mas2 = FSL_BOOKE_MAS2(0xFE000000, MAS2_I|MAS2_G);
mas3 = FSL_BOOKE_MAS3(0xFE000000, 0, MAS3_SW|MAS3_SR);
mas7 = FSL_BOOKE_MAS7(0xFE000000);
write_tlb(mas0, mas1, mas2, mas3, mas7);
when the code runs, while trying to read the PID, the code had an exception.
PC: 0x000001C0
SRR0: 0x00007D24
DEAR: 0xFE040090
MAS0: 0x00000001
MAS1: 0x80000000
MAS2: 0xFE040000
MAS3: 0x00000000
It seemed to me that I didn’t set up the TLB for CCSR correctly then. But I don’t know what I did wrong.
And what’s at 0x1C0?
Thanks!
question for the release.S u-boot code
reply from Scott Wood<http://jiveon.jivesoftware.com/mpss/c/pQA/PDcDAA/t.1nj/D6e2uObWSB6OreXSenf_BQ/h1/eqhG5v9o4WV1pCmWaB03cUjBPgRj-2F3GoJUaXSZ409bSdP5biIGukMJCDP2RcupmsPmgsYXI6jS0m1mNZQcP1yOyvoqXPJhZYDmN8R-2F7Wf2U-3D> in QorIQ Processors - View the full discussion<http://jiveon.jivesoftware.com/mpss/c/pQA/PDcDAA/t.1nj/D6e2uObWSB6OreXSenf_BQ/h2/eqhG5v9o4WV1pCmWaB03cUjBPgRj-2F3GoJUaXSZ409bRTVbR62AlK2x0jKLXgsbN2BgUW3UNlXisE6xqqgdtOUX9N2VmCSPQ-2Ftl8QSkf1FO8-3D>