white space cleanup
This commit is contained in:
@@ -343,7 +343,7 @@ apm_init(kernel_args *args)
|
||||
// use the BIOS data segment as data segment for APM
|
||||
|
||||
if (info.data_segment_length == 0) {
|
||||
args->platform_args.apm.data_segment_length = B_PAGE_SIZE
|
||||
args->platform_args.apm.data_segment_length = B_PAGE_SIZE
|
||||
- info.data_segment_base;
|
||||
}
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ load_cpufreq_module()
|
||||
} else
|
||||
put_module(name);
|
||||
} else
|
||||
sCPUPerformanceModule = current;
|
||||
sCPUPerformanceModule = current;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ load_cpuidle_module()
|
||||
} else
|
||||
put_module(name);
|
||||
} else
|
||||
sCPUIdleModule = current;
|
||||
sCPUIdleModule = current;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -394,7 +394,7 @@ remove_check_set(ParanoiaCheckSet* set)
|
||||
}
|
||||
|
||||
|
||||
static ParanoiaCheckSet*
|
||||
static ParanoiaCheckSet*
|
||||
lookup_check_set(const void* object)
|
||||
{
|
||||
int slot = (addr_t)object % PARANOIA_HASH_SIZE;
|
||||
|
||||
@@ -92,7 +92,7 @@ DMABuffer::Dump() const
|
||||
|
||||
|
||||
DMAResource::DMAResource()
|
||||
:
|
||||
:
|
||||
fScratchVecs(NULL)
|
||||
{
|
||||
mutex_init(&fLock, "dma resource");
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
* Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
** Distributed under the terms of the Haiku License.
|
||||
*/
|
||||
/*
|
||||
* Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
* Distributed under the terms of the Haiku License.
|
||||
*/
|
||||
|
||||
|
||||
#include <setjmp.h>
|
||||
|
||||
@@ -2,7 +2,7 @@ SubDir HAIKU_TOP src system kernel posix ;
|
||||
|
||||
UsePrivateHeaders shared ;
|
||||
|
||||
KernelMergeObject kernel_posix.o :
|
||||
KernelMergeObject kernel_posix.o :
|
||||
realtime_sem.cpp
|
||||
xsi_message_queue.cpp
|
||||
xsi_semaphore.cpp
|
||||
|
||||
@@ -1011,7 +1011,7 @@ _user_xsi_semctl(int semaphoreID, int semaphoreNumber, int command,
|
||||
if (!semaphoreSet->HasPermission()) {
|
||||
TRACE_ERROR(("xsi_semctl: calling process has not "
|
||||
"permission on semaphore %d, key %d\n",
|
||||
semaphoreSet->ID(), (int)semaphoreSet->IpcKey()));
|
||||
semaphoreSet->ID(), (int)semaphoreSet->IpcKey()));
|
||||
result = EACCES;
|
||||
} else {
|
||||
struct semid_ds sem;
|
||||
@@ -1034,7 +1034,7 @@ _user_xsi_semctl(int semaphoreID, int semaphoreNumber, int command,
|
||||
if (!semaphoreSet->HasPermission()) {
|
||||
TRACE_ERROR(("xsi_semctl: calling process has not "
|
||||
"permission on semaphore %d, key %d\n",
|
||||
semaphoreSet->ID(), (int)semaphoreSet->IpcKey()));
|
||||
semaphoreSet->ID(), (int)semaphoreSet->IpcKey()));
|
||||
return EACCES;
|
||||
}
|
||||
key_t key = semaphoreSet->IpcKey();
|
||||
|
||||
@@ -450,7 +450,7 @@ public:
|
||||
private:
|
||||
bool fPrintStackTrace;
|
||||
addr_t fAddressFilter;
|
||||
team_id fTeamFilter;
|
||||
team_id fTeamFilter;
|
||||
thread_id fThreadFilter;
|
||||
};
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ int _kstatfs_(dev_t device, void *whatever, int fd, const char *path, fs_info *i
|
||||
int mount(const char *filesystem, const char *where, const char *device, ulong flags,
|
||||
void *parms, int len);
|
||||
int unmount(const char *path);
|
||||
long get_nth_pci_info(long index, pci_info *info);
|
||||
long get_nth_pci_info(long index, pci_info *info);
|
||||
|
||||
|
||||
int
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
* Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
@@ -15,7 +15,7 @@ find_thread(const char *name)
|
||||
// in BeOS R5 OS.h as inline function. Do not change storage of thread id.
|
||||
if (!name) {
|
||||
thread_id thread;
|
||||
__asm__ __volatile__ (
|
||||
__asm__ __volatile__ (
|
||||
"movl %%fs:4, %%eax \n\t"
|
||||
: "=a" (thread));
|
||||
return thread;
|
||||
|
||||
@@ -47,7 +47,7 @@ void *
|
||||
tls_get(int32 index)
|
||||
{
|
||||
void *ret;
|
||||
__asm__ __volatile__ (
|
||||
__asm__ __volatile__ (
|
||||
"movl %%fs:(, %1, 4), %0"
|
||||
: "=r" (ret) : "r" (index));
|
||||
return ret;
|
||||
@@ -58,7 +58,7 @@ void **
|
||||
tls_address(int32 index)
|
||||
{
|
||||
void **ret;
|
||||
__asm__ __volatile__ (
|
||||
__asm__ __volatile__ (
|
||||
"movl %%fs:0, %0\n\t"
|
||||
"leal (%0, %1, 4), %0\n\t"
|
||||
: "=&r" (ret) : "r" (index));
|
||||
@@ -69,7 +69,7 @@ tls_address(int32 index)
|
||||
void
|
||||
tls_set(int32 index, void *value)
|
||||
{
|
||||
__asm__ __volatile__ (
|
||||
__asm__ __volatile__ (
|
||||
"movl %1, %%fs:(, %0, 4)"
|
||||
: : "r" (index), "r" (value));
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
* Copyright 2014, Paweł Dziepak, pdziepak@quarnos.org.
|
||||
* Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de.
|
||||
* Distributed under the terms of the MIT License.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
** Copyright 2002, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
** Distributed under the terms of the MIT License.
|
||||
*/
|
||||
/*
|
||||
* Copyright 2002, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
|
||||
#include <OS.h>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
** Copyright 2003, Marcus Overhagen. All rights reserved.
|
||||
** Distributed under the terms of the Haiku License.
|
||||
*/
|
||||
/*
|
||||
* Copyright 2003, Marcus Overhagen. All rights reserved.
|
||||
* Distributed under the terms of the Haiku License.
|
||||
*/
|
||||
|
||||
|
||||
#include <SupportDefs.h>
|
||||
|
||||
@@ -233,7 +233,7 @@ _sPrintf(const char *fmt, ...)
|
||||
va_end(ap);
|
||||
|
||||
if (ret >= 0)
|
||||
_kern_debug_output(buffer);
|
||||
_kern_debug_output(buffer);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//----------------------------------------------------------------------
|
||||
// This software is part of the OpenBeOS distribution and is covered
|
||||
// This software is part of the OpenBeOS distribution and is covered
|
||||
// by the MIT License.
|
||||
//---------------------------------------------------------------------
|
||||
|
||||
@@ -275,7 +275,7 @@ partition_session(int deviceFD, int32 sessionIndex, const char *identifier,
|
||||
\return \c B_OK, if everything went fine, an error code otherwise.
|
||||
*/
|
||||
status_t
|
||||
initialize_volume(const char *where, const char *fileSystem,
|
||||
initialize_volume(const char *where, const char *fileSystem,
|
||||
const char *volumeName, const char *parameters)
|
||||
{
|
||||
// not yet implemented
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
** Copyright 2002, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
** Distributed under the terms of the MIT License.
|
||||
*/
|
||||
/*
|
||||
* Copyright 2002, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
|
||||
#include <OS.h>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
** Copyright 2002-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
** Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
@@ -165,7 +165,7 @@ unnamed_sem_timedwait(sem_t* semaphore, const struct timespec* timeout) {
|
||||
if (result == 0)
|
||||
return 0;
|
||||
|
||||
return _kern_mutex_sem_acquire(sem, NULL,
|
||||
return _kern_mutex_sem_acquire(sem, NULL,
|
||||
timeoutMicros == B_INFINITE_TIMEOUT ? 0 : B_ABSOLUTE_REAL_TIME_TIMEOUT,
|
||||
timeoutMicros);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user