Mercurial > projects > ldc
comparison runtime/internal/memory.d @ 872:aa953cc960b6
Apply BlueZeniX's patch for OpenSolaris compatibility. Fixes #158.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 04 Jan 2009 15:49:28 +0100 |
parents | 661384d6a936 |
children | 77a3d6945f81 |
comparison
equal
deleted
inserted
replaced
871:e70a0e7e2260 | 872:aa953cc960b6 |
---|---|
71 | 71 |
72 | 72 |
73 /** | 73 /** |
74 * | 74 * |
75 */ | 75 */ |
76 | |
77 version( solaris ) { | |
78 version(X86_64) { | |
79 extern (C) void* _userlimit; | |
80 } | |
81 } | |
82 | |
76 extern (C) void* rt_stackBottom() | 83 extern (C) void* rt_stackBottom() |
77 { | 84 { |
78 version( Win32 ) | 85 version( Win32 ) |
79 { | 86 { |
80 void* bottom; | 87 void* bottom; |
107 } | 114 } |
108 else version( darwin ) | 115 else version( darwin ) |
109 { | 116 { |
110 // darwin has a fixed stack bottom | 117 // darwin has a fixed stack bottom |
111 return cast(void*) 0xc0000000; | 118 return cast(void*) 0xc0000000; |
119 } | |
120 else version( solaris ) | |
121 { | |
122 version(X86_64) { | |
123 return _userlimit; | |
124 } | |
125 else { | |
126 // <sys/vmparam.h> | |
127 return cast(void*) 0x8048000; | |
128 } | |
112 } | 129 } |
113 else | 130 else |
114 { | 131 { |
115 static assert( false, "Operating system not supported." ); | 132 static assert( false, "Operating system not supported." ); |
116 } | 133 } |