Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Add a couple of nil function implementations. #47

Merged
merged 1 commit into from
Sep 24, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/runtime/goroutine.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ SOFTWARE.
#include <pthread.h>
#include <stdlib.h>

void go(struct Func) __asm__("runtime.go");
void go(struct Func) LLGO_ASM_EXPORT("runtime.go");

static void* call_gofunction(void *arg)
{
Expand Down
14 changes: 14 additions & 0 deletions pkg/runtime/proc.ll
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
; Copyright 2013 The llgo Authors.
; Use of this source code is governed by an MIT-style
; license that can be found in the LICENSE file.

define void @syscall.runtime_BeforeFork() {
; TODO
ret void
}

define void @syscall.runtime_AfterFork() {
; TODO
ret void
}

14 changes: 14 additions & 0 deletions pkg/runtime/sem.ll
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,17 @@ define void @sync.runtime_Semrelease(i32*) {
ret void
}

define void @sync.runtime_Syncsemacquire(i32*) {
; TODO
ret void
}

define void @sync.runtime_Syncsemrelease(i32*) {
; TODO
ret void
}

define void @sync.runtime_Syncsemcheck(i32*) {
; TODO
ret void
}