Changeset 7cb53f62 in mainline for arch/sparc64/include/asm.h


Ignore:
Timestamp:
2006-02-26T12:02:25Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4767721
Parents:
7a255e69
Message:

sparc64 work.
Switch console to framebuffer (needs proper detection and initialization).
No native keyboard support, so far.
Memory management trap handler fixes.
Do not use OpenFirmware trap table anymore.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/sparc64/include/asm.h

    r7a255e69 r7cb53f62  
    250250}
    251251
     252/** Read Trap Level register.
     253 *
     254 * @return Current value in TL.
     255 */
     256static inline __u64 tl_read(void)
     257{
     258        __u64 v;
     259       
     260        __asm__ volatile ("rdpr %%tl, %0\n" : "=r" (v));
     261       
     262        return v;
     263}
    252264
    253265/** Write Trap Base Address register.
Note: See TracChangeset for help on using the changeset viewer.