On 04/07/2016 12:35, Peter Lieven wrote:
> Am 04.07.2016 um 12:34 schrieb Paolo Bonzini:
>>
>> On 04/07/2016 12:25, Peter Lieven wrote:
No, you just pass the stack and the runtime takes care of initializing
the two stack pointers:
uc.uc_link = &old_uc;
uc.uc_s
Am 04.07.2016 um 12:34 schrieb Paolo Bonzini:
On 04/07/2016 12:25, Peter Lieven wrote:
No, you just pass the stack and the runtime takes care of initializing
the two stack pointers:
uc.uc_link = &old_uc;
uc.uc_stack.ss_sp = co->stack;
uc.uc_stack.ss_size = stack_size;
u
On 04/07/2016 12:25, Peter Lieven wrote:
>>>
>> No, you just pass the stack and the runtime takes care of initializing
>> the two stack pointers:
>>
>> uc.uc_link = &old_uc;
>> uc.uc_stack.ss_sp = co->stack;
>> uc.uc_stack.ss_size = stack_size;
>> uc.uc_stack.ss_flags = 0;
>
Am 04.07.2016 um 12:19 schrieb Paolo Bonzini:
On 04/07/2016 08:18, Peter Lieven wrote:
Am 01.07.2016 um 22:49 schrieb Richard Henderson:
On 07/01/2016 01:12 PM, Richard Henderson wrote:
On 06/30/2016 12:37 AM, Peter Lieven wrote:
+void *qemu_alloc_stack(size_t sz)
+{
+/* allocate sz byte
On 04/07/2016 08:18, Peter Lieven wrote:
> Am 01.07.2016 um 22:49 schrieb Richard Henderson:
>> On 07/01/2016 01:12 PM, Richard Henderson wrote:
>>> On 06/30/2016 12:37 AM, Peter Lieven wrote:
+void *qemu_alloc_stack(size_t sz)
+{
+/* allocate sz bytes plus one extra page for a
Am 01.07.2016 um 22:49 schrieb Richard Henderson:
On 07/01/2016 01:12 PM, Richard Henderson wrote:
On 06/30/2016 12:37 AM, Peter Lieven wrote:
+void *qemu_alloc_stack(size_t sz)
+{
+/* allocate sz bytes plus one extra page for a guard
+ * page at the bottom of the stack */
+void *pt
Am 01.07.2016 um 22:12 schrieb Richard Henderson:
On 06/30/2016 12:37 AM, Peter Lieven wrote:
+void *qemu_alloc_stack(size_t sz)
+{
+/* allocate sz bytes plus one extra page for a guard
+ * page at the bottom of the stack */
+void *ptr = mmap(NULL, sz + getpagesize(), PROT_NONE,
+
On 07/01/2016 01:12 PM, Richard Henderson wrote:
On 06/30/2016 12:37 AM, Peter Lieven wrote:
+void *qemu_alloc_stack(size_t sz)
+{
+/* allocate sz bytes plus one extra page for a guard
+ * page at the bottom of the stack */
+void *ptr = mmap(NULL, sz + getpagesize(), PROT_NONE,
+
On 06/30/2016 12:37 AM, Peter Lieven wrote:
+void *qemu_alloc_stack(size_t sz)
+{
+/* allocate sz bytes plus one extra page for a guard
+ * page at the bottom of the stack */
+void *ptr = mmap(NULL, sz + getpagesize(), PROT_NONE,
+ MAP_PRIVATE | MAP_ANONYMOUS, -1,
Suggested-by: Peter Maydell
Signed-off-by: Peter Lieven
---
include/sysemu/os-posix.h | 24
util/oslib-posix.c| 22 ++
2 files changed, 46 insertions(+)
diff --git a/include/sysemu/os-posix.h b/include/sysemu/os-posix.h
index 9c7dfdf..34d102c
10 matches
Mail list logo