Changeset bc73be3 in mainline for kernel/arch/mips32/src/mm/frame.c


Ignore:
Timestamp:
2019-06-27T08:51:20Z (7 years ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8add15e0
Parents:
ad40b74b (diff), aeba767 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

cpp: merge and resolve conflicts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/src/mm/frame.c

    rad40b74b rbc73be3  
    4141#include <config.h>
    4242#ifdef MACHINE_msim
    43 #include <arch/drivers/msim.h>
     43#include <arch/mach/msim/msim.h>
    4444#endif
    4545#include <arch/arch.h>
     
    5757
    5858#define ZERO_PAGE_VALUE_KSEG1(frame) \
    59         (((volatile uint32_t *) (0xa0000000 + (frame << ZERO_PAGE_WIDTH)))[ZERO_PAGE_OFFSET])
     59        (((volatile uint32_t *) PA2KSEG1(frame << ZERO_PAGE_WIDTH))[ZERO_PAGE_OFFSET])
    6060
    6161#define MAX_REGIONS  32
     
    8080#ifdef MACHINE_msim
    8181        /* MSIM device (dprinter) */
    82         if (frame == (KA2PA(MSIM_VIDEORAM) >> ZERO_PAGE_WIDTH))
     82        if (frame == (KSEG12PA(MSIM_VIDEORAM) >> ZERO_PAGE_WIDTH))
    8383                return false;
    8484
    8585        /* MSIM device (dkeyboard) */
    86         if (frame == (KA2PA(MSIM_KBD_ADDRESS) >> ZERO_PAGE_WIDTH))
     86        if (frame == (KSEG12PA(MSIM_KBD_ADDRESS) >> ZERO_PAGE_WIDTH))
    8787                return false;
    8888#endif
Note: See TracChangeset for help on using the changeset viewer.