[formatting] run everything through codestyle
Almost nothing changes here except moving braces to the same line as the function declaration. Everything else is largely whitespace changes and a few dangling files with tab indents. See scripts/codestyle
This commit is contained in:
@@ -36,8 +36,7 @@
|
||||
struct thread *_current_thread;
|
||||
|
||||
static void initial_thread_func(void) __NO_RETURN;
|
||||
static void initial_thread_func(void)
|
||||
{
|
||||
static void initial_thread_func(void) {
|
||||
int ret;
|
||||
|
||||
/* release the thread lock that was implicitly held across the reschedule */
|
||||
@@ -49,8 +48,7 @@ static void initial_thread_func(void)
|
||||
thread_exit(ret);
|
||||
}
|
||||
|
||||
void arch_thread_initialize(thread_t *t)
|
||||
{
|
||||
void arch_thread_initialize(thread_t *t) {
|
||||
// create a default stack frame on the stack
|
||||
vaddr_t stack_top = (vaddr_t)t->stack + t->stack_size;
|
||||
|
||||
@@ -93,8 +91,7 @@ void arch_thread_initialize(thread_t *t)
|
||||
t->arch.sp = (vaddr_t)frame;
|
||||
}
|
||||
|
||||
void arch_dump_thread(thread_t *t)
|
||||
{
|
||||
void arch_dump_thread(thread_t *t) {
|
||||
if (t->state != THREAD_RUNNING) {
|
||||
dprintf(INFO, "\tarch: ");
|
||||
dprintf(INFO, "sp 0x%lx\n", t->arch.sp);
|
||||
@@ -103,8 +100,7 @@ void arch_dump_thread(thread_t *t)
|
||||
|
||||
#if ARCH_X86_32
|
||||
|
||||
void arch_context_switch(thread_t *oldthread, thread_t *newthread)
|
||||
{
|
||||
void arch_context_switch(thread_t *oldthread, thread_t *newthread) {
|
||||
//dprintf(DEBUG, "arch_context_switch: old %p (%s), new %p (%s)\n", oldthread, oldthread->name, newthread, newthread->name);
|
||||
|
||||
#if X86_WITH_FPU
|
||||
@@ -152,8 +148,7 @@ void arch_context_switch(thread_t *oldthread, thread_t *newthread)
|
||||
|
||||
#if ARCH_X86_64
|
||||
|
||||
void arch_context_switch(thread_t *oldthread, thread_t *newthread)
|
||||
{
|
||||
void arch_context_switch(thread_t *oldthread, thread_t *newthread) {
|
||||
#if X86_WITH_FPU
|
||||
fpu_context_switch(oldthread, newthread);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user