Changeset d78d603 in mainline
- Timestamp:
- 2007-01-10T13:11:28Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c738d65
- Parents:
- 4e33b6b
- Location:
- kernel
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/include/asm.h
r4e33b6b rd78d603 266 266 } 267 267 268 /** Read Trap Program Counter register. 269 * 270 * @return Current value in TPC. 271 */ 272 static inline uint64_t tpc_read(void) 273 { 274 uint64_t v; 275 276 __asm__ volatile ("rdpr %%tpc, %0\n" : "=r" (v)); 277 278 return v; 279 } 280 281 /** Read Trap Level register. 282 * 283 * @return Current value in TL. 284 */ 285 static inline uint64_t tl_read(void) 286 { 287 uint64_t v; 288 289 __asm__ volatile ("rdpr %%tl, %0\n" : "=r" (v)); 290 291 return v; 292 } 293 268 294 /** Read Trap Base Address register. 269 295 * … … 275 301 276 302 __asm__ volatile ("rdpr %%tba, %0\n" : "=r" (v)); 277 278 return v;279 }280 281 /** Read Trap Program Counter register.282 *283 * @return Current value in TPC.284 */285 static inline uint64_t tpc_read(void)286 {287 uint64_t v;288 289 __asm__ volatile ("rdpr %%tpc, %0\n" : "=r" (v));290 291 return v;292 }293 294 /** Read Trap Level register.295 *296 * @return Current value in TL.297 */298 static inline uint64_t tl_read(void)299 {300 uint64_t v;301 302 __asm__ volatile ("rdpr %%tl, %0\n" : "=r" (v));303 303 304 304 return v; -
kernel/arch/sparc64/include/debug.h
r4e33b6b rd78d603 1 1 /* 2 * Copyright (C) 2005 2 * Copyright (C) 2005 Jakub Jermar 3 3 * All rights reserved. 4 4 * -
kernel/arch/sparc64/include/mm/frame.h
r4e33b6b rd78d603 37 37 38 38 #define FRAME_WIDTH 13 /* 8K */ 39 #define FRAME_SIZE (1 <<FRAME_WIDTH)39 #define FRAME_SIZE (1 << FRAME_WIDTH) 40 40 41 41 #ifdef KERNEL -
kernel/arch/sparc64/include/regdef.h
r4e33b6b rd78d603 36 36 #define KERN_sparc64_REGDEF_H_ 37 37 38 #define PSTATE_IE_BIT (1 <<1)39 #define PSTATE_AM_BIT (1 <<3)38 #define PSTATE_IE_BIT (1 << 1) 39 #define PSTATE_AM_BIT (1 << 3) 40 40 41 #define PSTATE_AG_BIT (1 <<0)42 #define PSTATE_IG_BIT (1 <<11)43 #define PSTATE_MG_BIT (1 <<10)41 #define PSTATE_AG_BIT (1 << 0) 42 #define PSTATE_IG_BIT (1 << 11) 43 #define PSTATE_MG_BIT (1 << 10) 44 44 45 #define PSTATE_PRIV_BIT (1 <<2)46 #define PSTATE_PEF_BIT (1 <<4)45 #define PSTATE_PRIV_BIT (1 << 2) 46 #define PSTATE_PEF_BIT (1 << 4) 47 47 48 48 #define TSTATE_PSTATE_SHIFT 8 49 #define TSTATE_PRIV_BIT (PSTATE_PRIV_BIT <<TSTATE_PSTATE_SHIFT)50 #define TSTATE_IE_BIT (PSTATE_IE_BIT <<TSTATE_PSTATE_SHIFT)51 #define TSTATE_PEF_BIT (PSTATE_PEF_BIT <<TSTATE_PSTATE_SHIFT)49 #define TSTATE_PRIV_BIT (PSTATE_PRIV_BIT << TSTATE_PSTATE_SHIFT) 50 #define TSTATE_IE_BIT (PSTATE_IE_BIT << TSTATE_PSTATE_SHIFT) 51 #define TSTATE_PEF_BIT (PSTATE_PEF_BIT << TSTATE_PSTATE_SHIFT) 52 52 53 53 #define TSTATE_CWP_MASK 0x1f 54 54 55 55 #define WSTATE_NORMAL(n) (n) 56 #define WSTATE_OTHER(n) ((n) <<3)56 #define WSTATE_OTHER(n) ((n) << 3) 57 57 58 58 #define UPA_CONFIG_MID_SHIFT 17 -
kernel/arch/sparc64/include/trap/interrupt.h
r4e33b6b rd78d603 44 44 #define IGN_MASK 0x7c0 45 45 #define INO_MASK 0x1f 46 #define IMAP_V_MASK (1ULL <<31)46 #define IMAP_V_MASK (1ULL << 31) 47 47 48 48 #define IGN_SHIFT 6 -
kernel/arch/sparc64/include/trap/syscall.h
r4e33b6b rd78d603 40 40 #define KERN_sparc64_SYSCALL_TRAP_H_ 41 41 42 #define TT_TRAP_INSTRUCTION(n) (0x100 +(n))42 #define TT_TRAP_INSTRUCTION(n) (0x100 + (n)) 43 43 #define TT_TRAP_INSTRUCTION_LAST TT_TRAP_INSTRUCTION(127) 44 44 -
kernel/arch/sparc64/include/trap/trap_table.h
r4e33b6b rd78d603 40 40 #define TRAP_TABLE_ENTRY_COUNT 1024 41 41 #define TRAP_TABLE_ENTRY_SIZE 32 42 #define TRAP_TABLE_SIZE (TRAP_TABLE_ENTRY_COUNT *TRAP_TABLE_ENTRY_SIZE)42 #define TRAP_TABLE_SIZE (TRAP_TABLE_ENTRY_COUNT * TRAP_TABLE_ENTRY_SIZE) 43 43 44 44 #ifndef __ASM__ -
kernel/generic/src/proc/scheduler.c
r4e33b6b rd78d603 502 502 printf("cpu%d: tid %d (priority=%d, ticks=%lld, nrdy=%ld)\n", 503 503 CPU->id, THREAD->tid, THREAD->priority, THREAD->ticks, 504 504 atomic_get(&CPU->nrdy)); 505 505 #endif 506 506
Note:
See TracChangeset
for help on using the changeset viewer.