Revision 9746b15b monitor.c

b/monitor.c
764 764
static void mem_print(uint32_t *pstart, int *plast_prot, 
765 765
                      uint32_t end, int prot)
766 766
{
767
    if (prot != *plast_prot) {
767
    int prot1;
768
    prot1 = *plast_prot;
769
    if (prot != prot1) {
768 770
        if (*pstart != -1) {
769 771
            term_printf("%08x-%08x %08x %c%c%c\n",
770 772
                        *pstart, end, end - *pstart, 
771
                        prot & PG_USER_MASK ? 'u' : '-',
773
                        prot1 & PG_USER_MASK ? 'u' : '-',
772 774
                        'r',
773
                        prot & PG_RW_MASK ? 'w' : '-');
775
                        prot1 & PG_RW_MASK ? 'w' : '-');
774 776
        }
775 777
        if (prot != 0)
776 778
            *pstart = end;

Also available in: Unified diff