Re: [PATCH] apps: trivial (and non-working) fpc example application

2016-08-25 Thread Benoît CANET
Works for me (tm) Reviewed-by: Benoît Canet 2016-08-25 18:46 GMT+02:00 Nadav Har'El : > This is a trivial hello-world Free Pascal application. > It does't currently work because of missing syscall instruction support. >

[PATCH] apps: trivial (and non-working) fpc example application

2016-08-25 Thread Nadav Har'El
This is a trivial hello-world Free Pascal application. It does't currently work because of missing syscall instruction support. https://github.com/cloudius-systems/osv/issues/590 Hopefully it will begin working when OSv adds syscall instruction support. Stack trace we get in fpc initialization

Re: [PATCH 1/2] x64: 'syscall' instruction support

2016-08-25 Thread Nadav Har'El
Hi Benoit (and Pekka), thanks. Here are some comments and questions: -- Nadav Har'El n...@scylladb.com On Thu, Aug 25, 2016 at 1:07 PM, Benoit Canet < benoit.canet.cont...@gmail.com> wrote: > Enable "fast system calls" via the 'syscall' instruction on OSv. The > instruction is used by Go

Re: [PATCH 2/2] app: return main thread id to the caller

2016-08-25 Thread Nadav Har'El
I just sent another RFC patch which should cause osv_execve to wait until app_runtime() is the new application's. I haven't really tested it much beyond the usual "make check" - can you please try it out? Thanks, Nadav. -- Nadav Har'El n...@scylladb.com On Wed, Aug 24, 2016 at 7:21 AM, Justin

[PATCH] RFC: osv_execve() should wait for app_runtime to be set

2016-08-25 Thread Nadav Har'El
This patch makes osv_execve() wait a little bit longer before returning - until the thread id it returns is only set, but also this thread has a new app_runtime set. I thought of at least a dozen ways to do this, each uglier than the next, so I ended up with the solution which I considered least

[PATCH 2/2] syscalls: Add most syscalls required by GO binaries

2016-08-25 Thread Benoit Canet
The commented one will require manual work. Signed-off-by: Benoît Canet --- linux.cc | 56 syscalls.h | 141 + 2 files changed, 180 insertions(+), 17 deletions(-) create mode 100644

[PATCH 1/2] x64: 'syscall' instruction support

2016-08-25 Thread Benoit Canet
Enable "fast system calls" via the 'syscall' instruction on OSv. The instruction is used by Go programs on Linux/x86-64 for system calls. Signed-off-by: Pekka Enberg Signed-off-by: Benoît Canet --- arch/x64/arch-setup.cc | 12