Changeset 10c071e in mainline for arch/sparc64/include/trap.h


Ignore:
Timestamp:
2005-12-15T16:57:48Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6c68b97
Parents:
b4cad8b2
Message:

Fix ia64 and sparc64 to compile with new atomic_t.
Fix rwlock test #5 and semaphore test #1 to compile with new atomic_t.

sparc64 work.
TBA must be set before a function call when MMU is switched off.

File:
1 edited

Legend:

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

    rb4cad8b2 r10c071e  
    3030#define __sparc64_TRAP_H__
    3131
     32#include <arch/trap_table.h>
     33#include <arch/asm.h>
     34
     35/** Switch to in-kernel trap table. */
     36static inline void trap_switch_trap_table(void)
     37{
     38        /* Point TBA to kernel copy of OFW's trap table. */
     39        tba_write((__u64) trap_table);
     40}
     41
    3242extern void trap_init(void);
    3343
Note: See TracChangeset for help on using the changeset viewer.