diff options
author | jake <jake@FreeBSD.org> | 2001-09-30 18:41:57 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2001-09-30 18:41:57 +0000 |
commit | 327570ce60687a04845debeff23fa2d4517686b6 (patch) | |
tree | 180e8a093cac1d4455f646598f4a4c38b7222c13 /sys | |
parent | 398f5f6a0fe4e9fa727e2209c2a315a7ab9b88ac (diff) | |
download | FreeBSD-src-327570ce60687a04845debeff23fa2d4517686b6.zip FreeBSD-src-327570ce60687a04845debeff23fa2d4517686b6.tar.gz |
Implement PCPU_ADDR. Align functions on 16 bytes boundaries.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sparc64/include/asmacros.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/sparc64/include/asmacros.h b/sys/sparc64/include/asmacros.h index aaa5831..93c142d 100644 --- a/sys/sparc64/include/asmacros.h +++ b/sys/sparc64/include/asmacros.h @@ -37,7 +37,10 @@ .register %g7,#ignore #define PCPU(member) %g7 + GD_ ## member +#define PCPU_ADDR(member, reg) add %g7, GD_ ## member, reg + #define DEBUGGER() ta %xcc, 1 + #define PANIC(msg, reg) \ .sect .rodata ; \ 9: .asciz msg ; \ @@ -58,7 +61,7 @@ name ## : #define ENTRY(name) \ .text ; \ - .align 4 ; \ + .align 16 ; \ .globl name ; \ .type name, @function ; \ name ## : |