From 84a910b64f6f368ff2b3746a89dc5444e096bee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 13 Dec 2004 23:02:18 +0000 Subject: [PATCH] Updated because of header changes. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10439 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/cpu.c | 12 ++++++------ src/kernel/core/elf.c | 2 +- src/kernel/core/image.c | 13 ++++++++----- src/kernel/core/module.c | 1 + src/kernel/core/port.c | 1 + src/kernel/core/real_time_clock.c | 1 - src/kernel/core/scheduler.c | 15 +++++++++------ src/kernel/core/sem.c | 18 ++++++++++-------- src/kernel/core/syscalls.c | 2 +- src/kernel/core/team.c | 4 ++++ src/kernel/core/thread.c | 1 + 11 files changed, 42 insertions(+), 28 deletions(-) diff --git a/src/kernel/core/cpu.c b/src/kernel/core/cpu.c index 1a87677999..e49a28f5ca 100644 --- a/src/kernel/core/cpu.c +++ b/src/kernel/core/cpu.c @@ -1,10 +1,10 @@ /* -** Copyright 2002-2004, The Haiku Team. All rights reserved. -** Distributed under the terms of the Haiku License. -** -** Copyright 2002, Travis Geiselbrecht. All rights reserved. -** Distributed under the terms of the NewOS License. -*/ + * Copyright 2002-2004, Axel Dörfler, axeld@pinc-software.de. + * Distributed under the terms of the MIT License. + * + * Copyright 2002, Travis Geiselbrecht. All rights reserved. + * Distributed under the terms of the NewOS License. + */ /* This file contains the cpu functions (init, etc). */ diff --git a/src/kernel/core/elf.c b/src/kernel/core/elf.c index 7d6847ff16..4ccf13e369 100644 --- a/src/kernel/core/elf.c +++ b/src/kernel/core/elf.c @@ -894,7 +894,7 @@ elf_lookup_symbol_address(addr_t address, addr_t *_baseAddress, const char **_sy TRACE(("looking up %p\n", (void *)address)); mutex_lock(&sImageMutex); - + image = find_image_at_address(address); // get image that may contain the address diff --git a/src/kernel/core/image.c b/src/kernel/core/image.c index eb186c38cb..8ae6c4321c 100644 --- a/src/kernel/core/image.c +++ b/src/kernel/core/image.c @@ -1,12 +1,15 @@ -/* User Runtime Loader support in the kernel -** -** Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. -** Distributed under the terms of the Haiku License. -*/ +/* + * Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. + * Distributed under the terms of the MIT License. + */ + +/* User Runtime Loader support in the kernel */ #include +#include #include +#include #include #include diff --git a/src/kernel/core/module.c b/src/kernel/core/module.c index a64e12330e..106331fd2f 100644 --- a/src/kernel/core/module.c +++ b/src/kernel/core/module.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include diff --git a/src/kernel/core/port.c b/src/kernel/core/port.c index 5c2d5b213b..a811013d00 100644 --- a/src/kernel/core/port.c +++ b/src/kernel/core/port.c @@ -12,6 +12,7 @@ #include #include +#include #include #include #include diff --git a/src/kernel/core/real_time_clock.c b/src/kernel/core/real_time_clock.c index e426f47996..b59ae135a8 100644 --- a/src/kernel/core/real_time_clock.c +++ b/src/kernel/core/real_time_clock.c @@ -11,7 +11,6 @@ #include #include #include -#include #include diff --git a/src/kernel/core/scheduler.c b/src/kernel/core/scheduler.c index 4964c001d6..6f3c210182 100644 --- a/src/kernel/core/scheduler.c +++ b/src/kernel/core/scheduler.c @@ -1,13 +1,15 @@ /* -** Copyright 2002-2004, The Haiku Team. All rights reserved. -** Distributed under the terms of the Haiku License. -** -** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved. -** Distributed under the terms of the NewOS License. -*/ + * Copyright 2002-2004, Axel Dörfler, axeld@pinc-software.de. + * Copyright 2002, Angelo Mottola, a.mottola@libero.it. + * Distributed under the terms of the MIT License. + * + * Copyright 2001-2002, Travis Geiselbrecht. All rights reserved. + * Distributed under the terms of the NewOS License. + */ /* The thread scheduler */ + #include #include @@ -16,6 +18,7 @@ #include #include #include +#include //#define TRACE_SCHEDULER diff --git a/src/kernel/core/sem.c b/src/kernel/core/sem.c index a92d0975be..152eeab346 100644 --- a/src/kernel/core/sem.c +++ b/src/kernel/core/sem.c @@ -1,16 +1,18 @@ /* -** Copyright 2002-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. -** Distributed under the terms of the Haiku License. -** -** Copyright 2001, Travis Geiselbrecht. All rights reserved. -** Distributed under the terms of the NewOS License. -*/ + * Copyright 2002-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. + * Distributed under the terms of the MIT License. + * + * Copyright 2001, Travis Geiselbrecht. All rights reserved. + * Distributed under the terms of the NewOS License. + */ /* Semaphore code */ + #include #include +#include #include #include #include @@ -22,8 +24,8 @@ #include #include -#define TRACE_SEM 0 -#if TRACE_SEM +//#define TRACE_SEM +#ifdef TRACE_SEM # define TRACE(x) dprintf x # define TRACE_BLOCK(x) dprintf x #else diff --git a/src/kernel/core/syscalls.c b/src/kernel/core/syscalls.c index 57b2c53fe6..2d932eaee8 100644 --- a/src/kernel/core/syscalls.c +++ b/src/kernel/core/syscalls.c @@ -11,8 +11,8 @@ #include #include #include +#include #include -#include #include #include #include diff --git a/src/kernel/core/team.c b/src/kernel/core/team.c index 91ac8e79bc..7b77c001ec 100644 --- a/src/kernel/core/team.c +++ b/src/kernel/core/team.c @@ -21,6 +21,10 @@ #include #include #include +#include +#include +#include +#include #include #include diff --git a/src/kernel/core/thread.c b/src/kernel/core/thread.c index e32b4f2d15..f7bd9911cc 100644 --- a/src/kernel/core/thread.c +++ b/src/kernel/core/thread.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include