Changeset 730376d in mainline for kernel/arch/sparc64/include/mm/tlb.h


Ignore:
Timestamp:
2006-12-20T22:07:25Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0af7a09
Parents:
deada67
Message:

Fix important comment in kernel/arch/sparc64/src/proc/scheduler.c.

Improve framebuffer code.

Formatting and indentation fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/mm/tlb.h

    rdeada67 r730376d  
    6666/* TLB Tag Access shifts */
    6767#define TLB_TAG_ACCESS_CONTEXT_SHIFT    0
    68 #define TLB_TAG_ACCESS_CONTEXT_MASK     ((1<<13)-1)
     68#define TLB_TAG_ACCESS_CONTEXT_MASK     ((1 << 13) - 1)
    6969#define TLB_TAG_ACCESS_VPN_SHIFT        13
    7070
     
    107107        uint64_t value;
    108108        struct {
    109                 uint64_t vpn : 51;              /**< Virtual Address bits 63:13. */
    110                 unsigned context : 13;          /**< Context identifier. */
     109                uint64_t vpn : 51;      /**< Virtual Address bits 63:13. */
     110                unsigned context : 13;  /**< Context identifier. */
    111111        } __attribute__ ((packed));
    112112};
     
    383383 *
    384384 * @param type Selects between context and page demap.
    385  * @param context_encoding Specifies which Context register has Context ID for demap.
     385 * @param context_encoding Specifies which Context register has Context ID for
     386 *      demap.
    386387 * @param page Address which is on the page to be demapped.
    387388 */
     
    398399        da.vpn = pg.vpn;
    399400       
    400         asi_u64_write(ASI_IMMU_DEMAP, da.value, 0);     /* da.value is the address within the ASI */
     401        asi_u64_write(ASI_IMMU_DEMAP, da.value, 0);     /* da.value is the
     402                                                         * address within the
     403                                                         * ASI */
    401404        flush();
    402405}
     
    405408 *
    406409 * @param type Selects between context and page demap.
    407  * @param context_encoding Specifies which Context register has Context ID for demap.
     410 * @param context_encoding Specifies which Context register has Context ID for
     411 *       demap.
    408412 * @param page Address which is on the page to be demapped.
    409413 */
     
    420424        da.vpn = pg.vpn;
    421425       
    422         asi_u64_write(ASI_DMMU_DEMAP, da.value, 0); /* da.value is the address within the ASI */
     426        asi_u64_write(ASI_DMMU_DEMAP, da.value, 0);     /* da.value is the
     427                                                         * address within the
     428                                                         * ASI */
    423429        membar();
    424430}
Note: See TracChangeset for help on using the changeset viewer.