16 mmu slots
This commit is contained in:
parent
d515ea5542
commit
7970bcebe1
1 changed files with 2 additions and 2 deletions
4
bus.cpp
4
bus.cpp
|
@ -16,7 +16,7 @@
|
||||||
// see also https://github.com/espressif/esp-idf/issues/1934
|
// see also https://github.com/espressif/esp-idf/issues/1934
|
||||||
constexpr int n_pages = 12;
|
constexpr int n_pages = 12;
|
||||||
#else
|
#else
|
||||||
constexpr int n_pages = 16;
|
constexpr int n_pages = 512;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bus::bus()
|
bus::bus()
|
||||||
|
@ -26,7 +26,7 @@ bus::bus()
|
||||||
memset(pages, 0x00, sizeof pages);
|
memset(pages, 0x00, sizeof pages);
|
||||||
|
|
||||||
for(int rm=0; rm<4; rm++) {
|
for(int rm=0; rm<4; rm++) {
|
||||||
for(int i=0; i<n_pages; i++) {
|
for(int i=0; i<16; i++) {
|
||||||
pages[rm][i].par = (i & 7) * 8192 / 64;
|
pages[rm][i].par = (i & 7) * 8192 / 64;
|
||||||
pages[rm][i].pdr = (3 << 1) | (0 << 4) | (0 << 6) | ((8192 / (32 * 2)) << 8);
|
pages[rm][i].pdr = (3 << 1) | (0 << 4) | (0 << 6) | ((8192 / (32 * 2)) << 8);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue