Ignore:
Timestamp:
2006-08-29T11:06:57Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0fa6044
Parents:
c8ea4a8b
Message:

Define architecture-specific thread sub-constructors and sub-destructors on all architectures.
Define the THREAD_FLAG_USPACE which means that the thread runs in user space.
The forementioned changes allow for allocating of user window buffer on sparc64
threads that execute in userspace.

A lot of formatting and indentation fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/barrier.h

    rc8ea4a8b r32fffef0  
    5252         * The FLUSH instruction takes address parameter.
    5353         * As such, it may trap if the address is not found in DTLB.
    54          * However, JPS1 implementations are free to ignore the trap.
     54         *
     55         * The entire kernel text is mapped by a locked ITLB and
     56         * DTLB entries. Therefore, when this function is called,
     57         * the %o7 register will always be in the range mapped by
     58         * DTLB.
    5559         */
    5660         
    57         __asm__ volatile ("flush %0\n" :: "r" (0x400000));
     61        __asm__ volatile ("flush %o7\n");
    5862}
    5963
Note: See TracChangeset for help on using the changeset viewer.