| 87 | (gdb) l |
| 88 | 561 } |
| 89 | 562 p->smem = (char *)p->smem + p->soff; |
| 90 | 563 |
| 91 | 564 p->moff = (u_long)(fb_fix.mmio_start) & (~PAGE_MASK); |
| 92 | 565 p->mlen = (fb_fix.mmio_len + p->moff + ~PAGE_MASK) & PAGE_MASK; |
| 93 | 566 p->mmio = (u_char*)mmap(NULL, p->mlen, PROT_READ|PROT_WRITE, |
| 94 | 567 MAP_SHARED, p->fh, p->slen); |
| 95 | 568 if ((long)p->mmio == -1) { |
| 96 | 569 #ifdef JFB_MMIO_CHECK |
| 97 | 570 die("cannot mmap(mmio)"); |
| 98 | (gdb) p fb_fix.mmio_len |
| 99 | $1 = 0 |
| 100 | (gdb) p p->moff |
| 101 | $2 = 0 |
| 102 | (gdb) p p->mlen |
| 103 | $3 = 0 |
| 104 | (gdb) p p->fh |
| 105 | $4 = 6 |
| 106 | (gdb) p p->slen |
| 107 | $5 = 1572864 |
| 108 | (gdb) p fb_fix.smem_len |
| 109 | $6 = 1572864 |