Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 8c5586c in mainline


Ignore:
Timestamp:
2019-04-21T20:53:37Z (12 months ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
25fb8c6
Parents:
1b1be5f
git-author:
Jakub Jermar <jakub@…> (2019-04-21 20:47:38)
git-committer:
Jakub Jermar <jakub@…> (2019-04-21 20:53:37)
Message:

Demap using primary context for kernel faults

When the protection fault happens because of a kernel mapping, the demap
must not use the secondary context as that belongs to the task in which
the fault happened, but the primary context or nucleus, which contains
kernel's context.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/mm/sun4u/tlb.c

    r1b1be5f r8c5586c  
    311311                t.a = true;
    312312                t.d = true;
    313                 dtlb_demap(TLB_DEMAP_PAGE, TLB_DEMAP_SECONDARY,
     313                dtlb_demap(TLB_DEMAP_PAGE,
     314                    (as == AS_KERNEL) ? TLB_DEMAP_PRIMARY : TLB_DEMAP_SECONDARY,
    314315                    page_16k + index * MMU_PAGE_SIZE);
    315316                dtlb_pte_copy(&t, index, false);
Note: See TracChangeset for help on using the changeset viewer.