Changeset e037cf37 in mainline for kernel/generic/src


Ignore:
Timestamp:
2020-12-29T22:17:21Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
11e394f, d70dc1c4
Parents:
1483981
Message:

Show kernel console again when its physical area is unmapped

It's good to be able to see the stack trace if e.g. display server
crashes.

Location:
kernel/generic/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ddi/ddi.c

    r1483981 re037cf37  
    107107}
    108108
     109/** Norify physical area has been unmapped.
     110 *
     111 * @param parea Physical area
     112 */
     113void ddi_parea_unmap_notify(parea_t *parea)
     114{
     115        parea->mapped = false;
     116        if (parea->mapped_changed != NULL)
     117                parea->mapped_changed(parea->arg);
     118}
     119
    109120/** Map piece of physical memory into virtual address space of current task.
    110121 *
     
    204215
    205216map:
     217        backend_data.parea = parea;
     218
    206219        if (!as_area_create(TASK->as, flags, FRAMES2SIZE(pages),
    207220            AS_AREA_ATTR_NONE, &phys_backend, &backend_data, virt, bound)) {
  • kernel/generic/src/mm/backend_phys.c

    r1483981 re037cf37  
    3838
    3939#include <assert.h>
     40#include <ddi/ddi.h>
    4041#include <typedefs.h>
    4142#include <mm/as.h>
     
    101102{
    102103        /*
    103          * Nothing to do.
    104104         * The anonymous frames, if any, are released in
    105105         * phys_destroy_shared_data().
    106106         */
     107
     108        /* Notify parea has been unmapped */
     109        if (area->backend_data.parea != NULL)
     110                ddi_parea_unmap_notify(area->backend_data.parea);
    107111}
    108112
Note: See TracChangeset for help on using the changeset viewer.