forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spawn one worker per kernel task, but only one task per virtual cpu can be running at a time
- Loading branch information
Showing
22 changed files
with
375 additions
and
395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#ifndef _WASM_GLOBALS | ||
#define _WASM_GLOBALS | ||
|
||
#include <linux/compiler_attributes.h> | ||
|
||
__asm__(".globaltype __stack_pointer, i32\n"); | ||
static void __always_inline set_stack_pointer(void *ptr) | ||
{ | ||
__asm__ volatile("local.get %0\n" | ||
"global.set __stack_pointer" ::"r"(ptr)); | ||
} | ||
|
||
__asm__(".globaltype __tls_base, i32\n"); | ||
static void __always_inline set_tls_base(void *ptr) | ||
{ | ||
__asm__ volatile("local.get %0\n" | ||
"global.set __tls_base" ::"r"(ptr)); | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
#define _WASM_SIGCONTEXT_H | ||
|
||
struct pt_regs { | ||
void* current_stack; | ||
int (*fn)(void*); | ||
void* fn_arg; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
#ifndef _WASM_SYSMEM_H | ||
#define _WASM_SYSMEM_H | ||
|
||
#include <linux/types.h> | ||
|
||
void zones_init(void); | ||
void early_tls_init(void); | ||
void smp_tls_prepare(void); | ||
void smp_tls_init(int cpu); | ||
void smp_tls_init(int cpu, bool init); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ obj-y += \ | |
irq.o \ | ||
process.o \ | ||
ptrace.o \ | ||
setjmp.o \ | ||
setup.o \ | ||
stacktrace.o \ | ||
time.o | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.