public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/iains/heads/d-for-darwin)] D, Linux : Add implementation for PPC64 init stack.
@ 2021-10-15 19:34 Iain D Sandoe
0 siblings, 0 replies; 7+ messages in thread
From: Iain D Sandoe @ 2021-10-15 19:34 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:59564942f53f7861a9cf1c825ea408d4279d2f58
commit 59564942f53f7861a9cf1c825ea408d4279d2f58
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Fri Dec 11 00:53:40 2020 +0000
D, Linux : Add implementation for PPC64 init stack.
This provides an initStack entry for 'Posix' PPC64 case.
Diff:
---
libphobos/libdruntime/core/thread/fiber.d | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/libphobos/libdruntime/core/thread/fiber.d b/libphobos/libdruntime/core/thread/fiber.d
index 64e90182596..4ae0d033be1 100644
--- a/libphobos/libdruntime/core/thread/fiber.d
+++ b/libphobos/libdruntime/core/thread/fiber.d
@@ -1395,6 +1395,31 @@ private:
*cast(size_t*)(pstack + wsize) = cast(size_t) Thread.getThis().m_addr;
assert( (cast(size_t) pstack & 0x0f) == 0 );
}
+ else version (AsmPPC64_Posix)
+ {
+ version (StackGrowsDown)
+ {
+ pstack -= long.sizeof * 5;
+ }
+ else
+ {
+ pstack += long.sizeof * 5;
+ }
+
+ push( cast(size_t) &fiber_entryPoint ); // link register
+ push( 0x00000000_00000000 ); // control register
+ push( 0x00000000_00000000 ); // old stack pointer
+
+ // GPR values
+ version (StackGrowsDown)
+ {
+ pstack -= long.sizeof * 20;
+ }
+ else
+ {
+ pstack += long.sizeof * 20;
+ }
+ }
else version (AsmMIPS_O32_Posix)
{
version (StackGrowsDown) {}
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gcc(refs/users/iains/heads/d-for-darwin)] D, Linux : Add implementation for PPC64 init stack.
@ 2021-10-18 15:54 Iain D Sandoe
0 siblings, 0 replies; 7+ messages in thread
From: Iain D Sandoe @ 2021-10-18 15:54 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:7f61c4ae7534ec2635cdfb24fef6dae1c8d420b2
commit 7f61c4ae7534ec2635cdfb24fef6dae1c8d420b2
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Fri Dec 11 00:53:40 2020 +0000
D, Linux : Add implementation for PPC64 init stack.
This provides an initStack entry for 'Posix' PPC64 case.
Diff:
---
libphobos/libdruntime/core/thread/fiber.d | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/libphobos/libdruntime/core/thread/fiber.d b/libphobos/libdruntime/core/thread/fiber.d
index 64e90182596..4ae0d033be1 100644
--- a/libphobos/libdruntime/core/thread/fiber.d
+++ b/libphobos/libdruntime/core/thread/fiber.d
@@ -1395,6 +1395,31 @@ private:
*cast(size_t*)(pstack + wsize) = cast(size_t) Thread.getThis().m_addr;
assert( (cast(size_t) pstack & 0x0f) == 0 );
}
+ else version (AsmPPC64_Posix)
+ {
+ version (StackGrowsDown)
+ {
+ pstack -= long.sizeof * 5;
+ }
+ else
+ {
+ pstack += long.sizeof * 5;
+ }
+
+ push( cast(size_t) &fiber_entryPoint ); // link register
+ push( 0x00000000_00000000 ); // control register
+ push( 0x00000000_00000000 ); // old stack pointer
+
+ // GPR values
+ version (StackGrowsDown)
+ {
+ pstack -= long.sizeof * 20;
+ }
+ else
+ {
+ pstack += long.sizeof * 20;
+ }
+ }
else version (AsmMIPS_O32_Posix)
{
version (StackGrowsDown) {}
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gcc(refs/users/iains/heads/d-for-darwin)] D, Linux : Add implementation for PPC64 init stack.
@ 2021-10-13 8:31 Iain D Sandoe
0 siblings, 0 replies; 7+ messages in thread
From: Iain D Sandoe @ 2021-10-13 8:31 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:ccfc6d4a764e640591d309c0632d2bb9595c161a
commit ccfc6d4a764e640591d309c0632d2bb9595c161a
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Fri Dec 11 00:53:40 2020 +0000
D, Linux : Add implementation for PPC64 init stack.
This provides an initStack entry for 'Posix' PPC64 case.
Diff:
---
libphobos/libdruntime/core/thread/fiber.d | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/libphobos/libdruntime/core/thread/fiber.d b/libphobos/libdruntime/core/thread/fiber.d
index 64e90182596..4ae0d033be1 100644
--- a/libphobos/libdruntime/core/thread/fiber.d
+++ b/libphobos/libdruntime/core/thread/fiber.d
@@ -1395,6 +1395,31 @@ private:
*cast(size_t*)(pstack + wsize) = cast(size_t) Thread.getThis().m_addr;
assert( (cast(size_t) pstack & 0x0f) == 0 );
}
+ else version (AsmPPC64_Posix)
+ {
+ version (StackGrowsDown)
+ {
+ pstack -= long.sizeof * 5;
+ }
+ else
+ {
+ pstack += long.sizeof * 5;
+ }
+
+ push( cast(size_t) &fiber_entryPoint ); // link register
+ push( 0x00000000_00000000 ); // control register
+ push( 0x00000000_00000000 ); // old stack pointer
+
+ // GPR values
+ version (StackGrowsDown)
+ {
+ pstack -= long.sizeof * 20;
+ }
+ else
+ {
+ pstack += long.sizeof * 20;
+ }
+ }
else version (AsmMIPS_O32_Posix)
{
version (StackGrowsDown) {}
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gcc(refs/users/iains/heads/d-for-darwin)] D, Linux : Add implementation for PPC64 init stack.
@ 2021-10-11 20:35 Iain D Sandoe
0 siblings, 0 replies; 7+ messages in thread
From: Iain D Sandoe @ 2021-10-11 20:35 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:4c2c9cdb6e14f30593288c012254aeecc25c745d
commit 4c2c9cdb6e14f30593288c012254aeecc25c745d
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Fri Dec 11 00:53:40 2020 +0000
D, Linux : Add implementation for PPC64 init stack.
This provides an initStack entry for 'Posix' PPC64 case.
Diff:
---
libphobos/libdruntime/core/thread/fiber.d | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/libphobos/libdruntime/core/thread/fiber.d b/libphobos/libdruntime/core/thread/fiber.d
index 64e90182596..4ae0d033be1 100644
--- a/libphobos/libdruntime/core/thread/fiber.d
+++ b/libphobos/libdruntime/core/thread/fiber.d
@@ -1395,6 +1395,31 @@ private:
*cast(size_t*)(pstack + wsize) = cast(size_t) Thread.getThis().m_addr;
assert( (cast(size_t) pstack & 0x0f) == 0 );
}
+ else version (AsmPPC64_Posix)
+ {
+ version (StackGrowsDown)
+ {
+ pstack -= long.sizeof * 5;
+ }
+ else
+ {
+ pstack += long.sizeof * 5;
+ }
+
+ push( cast(size_t) &fiber_entryPoint ); // link register
+ push( 0x00000000_00000000 ); // control register
+ push( 0x00000000_00000000 ); // old stack pointer
+
+ // GPR values
+ version (StackGrowsDown)
+ {
+ pstack -= long.sizeof * 20;
+ }
+ else
+ {
+ pstack += long.sizeof * 20;
+ }
+ }
else version (AsmMIPS_O32_Posix)
{
version (StackGrowsDown) {}
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gcc(refs/users/iains/heads/d-for-darwin)] D, Linux : Add implementation for PPC64 init stack.
@ 2021-01-11 21:27 Iain D Sandoe
0 siblings, 0 replies; 7+ messages in thread
From: Iain D Sandoe @ 2021-01-11 21:27 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:ddc9f492873b8c79dc68d5dfc78daf3e0aa90314
commit ddc9f492873b8c79dc68d5dfc78daf3e0aa90314
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Fri Dec 11 00:53:40 2020 +0000
D, Linux : Add implementation for PPC64 init stack.
This provides an initStack entry for 'Posix' PPC64 case.
Diff:
---
libphobos/libdruntime/core/thread.d | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/libphobos/libdruntime/core/thread.d b/libphobos/libdruntime/core/thread.d
index d6506cda036..98b781eb945 100644
--- a/libphobos/libdruntime/core/thread.d
+++ b/libphobos/libdruntime/core/thread.d
@@ -5024,6 +5024,33 @@ private:
assert( (cast(size_t) pstack & 0x0f) == 0 );
}
+ else version (AsmPPC64_Posix)
+ {
+ version (StackGrowsDown)
+ {
+ pstack -= long.sizeof * 5;
+ }
+ else
+ {
+ pstack += long.sizeof * 5;
+ }
+
+ push( cast(size_t) &fiber_entryPoint ); // link register
+ push( 0x00000000_00000000 ); // control register
+ push( 0x00000000_00000000 ); // old stack pointer
+
+ // GPR values
+ version (StackGrowsDown)
+ {
+ pstack -= long.sizeof * 20;
+ }
+ else
+ {
+ pstack += long.sizeof * 20;
+ }
+
+ assert( (cast(size_t) pstack & 0x0f) == 0 );
+ }
else version (AsmMIPS_O32_Posix)
{
version (StackGrowsDown) {}
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gcc(refs/users/iains/heads/d-for-darwin)] D, Linux : Add implementation for PPC64 init stack.
@ 2020-12-21 20:37 Iain D Sandoe
0 siblings, 0 replies; 7+ messages in thread
From: Iain D Sandoe @ 2020-12-21 20:37 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:42c2dd43e0bb0a8724d8ebbdaf7d2238356a613f
commit 42c2dd43e0bb0a8724d8ebbdaf7d2238356a613f
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Fri Dec 11 00:53:40 2020 +0000
D, Linux : Add implementation for PPC64 init stack.
This provides an initStack entry for 'Posix' PPC64 case.
Diff:
---
libphobos/libdruntime/core/thread.d | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/libphobos/libdruntime/core/thread.d b/libphobos/libdruntime/core/thread.d
index d6506cda036..98b781eb945 100644
--- a/libphobos/libdruntime/core/thread.d
+++ b/libphobos/libdruntime/core/thread.d
@@ -5024,6 +5024,33 @@ private:
assert( (cast(size_t) pstack & 0x0f) == 0 );
}
+ else version (AsmPPC64_Posix)
+ {
+ version (StackGrowsDown)
+ {
+ pstack -= long.sizeof * 5;
+ }
+ else
+ {
+ pstack += long.sizeof * 5;
+ }
+
+ push( cast(size_t) &fiber_entryPoint ); // link register
+ push( 0x00000000_00000000 ); // control register
+ push( 0x00000000_00000000 ); // old stack pointer
+
+ // GPR values
+ version (StackGrowsDown)
+ {
+ pstack -= long.sizeof * 20;
+ }
+ else
+ {
+ pstack += long.sizeof * 20;
+ }
+
+ assert( (cast(size_t) pstack & 0x0f) == 0 );
+ }
else version (AsmMIPS_O32_Posix)
{
version (StackGrowsDown) {}
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gcc(refs/users/iains/heads/d-for-darwin)] D, Linux : Add implementation for PPC64 init stack.
@ 2020-12-13 17:44 Iain D Sandoe
0 siblings, 0 replies; 7+ messages in thread
From: Iain D Sandoe @ 2020-12-13 17:44 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:3ebe099ee043169cfaeb9d16909be35d0808d0cf
commit 3ebe099ee043169cfaeb9d16909be35d0808d0cf
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Fri Dec 11 00:53:40 2020 +0000
D, Linux : Add implementation for PPC64 init stack.
This provides an initStack entry for 'Posix' PPC64 case.
Diff:
---
libphobos/libdruntime/core/thread.d | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/libphobos/libdruntime/core/thread.d b/libphobos/libdruntime/core/thread.d
index d6506cda036..98b781eb945 100644
--- a/libphobos/libdruntime/core/thread.d
+++ b/libphobos/libdruntime/core/thread.d
@@ -5024,6 +5024,33 @@ private:
assert( (cast(size_t) pstack & 0x0f) == 0 );
}
+ else version (AsmPPC64_Posix)
+ {
+ version (StackGrowsDown)
+ {
+ pstack -= long.sizeof * 5;
+ }
+ else
+ {
+ pstack += long.sizeof * 5;
+ }
+
+ push( cast(size_t) &fiber_entryPoint ); // link register
+ push( 0x00000000_00000000 ); // control register
+ push( 0x00000000_00000000 ); // old stack pointer
+
+ // GPR values
+ version (StackGrowsDown)
+ {
+ pstack -= long.sizeof * 20;
+ }
+ else
+ {
+ pstack += long.sizeof * 20;
+ }
+
+ assert( (cast(size_t) pstack & 0x0f) == 0 );
+ }
else version (AsmMIPS_O32_Posix)
{
version (StackGrowsDown) {}
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-10-18 15:54 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-15 19:34 [gcc(refs/users/iains/heads/d-for-darwin)] D, Linux : Add implementation for PPC64 init stack Iain D Sandoe
-- strict thread matches above, loose matches on Subject: below --
2021-10-18 15:54 Iain D Sandoe
2021-10-13 8:31 Iain D Sandoe
2021-10-11 20:35 Iain D Sandoe
2021-01-11 21:27 Iain D Sandoe
2020-12-21 20:37 Iain D Sandoe
2020-12-13 17:44 Iain D Sandoe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).