|
liblink, runtime: preliminary support for plan9/amd64
A TLS slot is reserved by _rt0_.*_plan9 as an automatic and
its address (which is static on Plan 9) is saved in the
global _privates symbol. The startup linkage now is exactly
like that from Plan 9 libc, and the way we access g is
exactly as if we'd have used privalloc(2).
Aside from making the code more standard, this change
drastically simplifies it, both for 386 and for amd64, and
makes the Plan 9 code in liblink common for both 386 and
amd64.
The amd64 runtime code was cleared of nxm assumptions, and
now runs on the standard Plan 9 kernel.
Note handling fixes will follow in a separate CL.
Total comments: 9
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+94 lines, -142 lines) |
Patch |
 |
M |
include/link.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/liblink/asm6.c
|
View
|
1
|
2 chunks |
+13 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/liblink/asm8.c
|
View
|
1
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
src/liblink/obj6.c
|
View
|
1
2
3
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/liblink/obj8.c
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/liblink/sym.c
|
View
|
1
2
3
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/arch_amd64.h
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/defs_plan9_amd64.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/memclr_plan9_amd64.s
|
View
|
1
|
1 chunk |
+11 lines, -38 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/os_plan9.c
|
View
|
1
|
1 chunk |
+29 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/rt0_plan9_386.s
|
View
|
1
|
1 chunk |
+11 lines, -30 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/rt0_plan9_amd64.s
|
View
|
1
|
1 chunk |
+10 lines, -3 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/sys_plan9_386.s
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/sys_plan9_amd64.s
|
View
|
1
|
4 chunks |
+3 lines, -23 lines |
0 comments
|
Download
|
 |
R |
src/pkg/runtime/time_plan9_386.c
|
View
|
1
|
1 chunk |
+0 lines, -36 lines |
0 comments
|
Download
|
Total messages: 18
|