Ignore:
Timestamp:
2019-04-21T20:53:37Z (5 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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.