Index: kernel/arch/abs32le/include/arch/asm.h
===================================================================
--- kernel/arch/abs32le/include/arch/asm.h	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/abs32le/include/arch/asm.h	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -46,8 +46,10 @@
 NO_TRACE static inline __attribute__((noreturn)) void cpu_halt(void)
 {
-	/* On real hardware this should stop processing further
-	   instructions on the CPU (and possibly putting it into
-	   low-power mode) without any possibility of exitting
-	   this function. */
+	/*
+	 * On real hardware this should stop processing further
+	 * instructions on the CPU (and possibly putting it into
+	 * low-power mode) without any possibility of exitting
+	 * this function.
+	 */
 
 	while (true)
@@ -57,8 +59,10 @@
 NO_TRACE static inline void cpu_sleep(void)
 {
-	/* On real hardware this should put the CPU into low-power
-	   mode. However, the CPU is free to continue processing
-	   futher instructions any time. The CPU also wakes up
-	   upon an interrupt. */
+	/*
+	 * On real hardware this should put the CPU into low-power
+	 * mode. However, the CPU is free to continue processing
+	 * futher instructions any time. The CPU also wakes up
+	 * upon an interrupt.
+	 */
 }
 
Index: kernel/arch/abs32le/include/arch/atomic.h
===================================================================
--- kernel/arch/abs32le/include/arch/atomic.h	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/abs32le/include/arch/atomic.h	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -47,6 +47,8 @@
     REQUIRES(val->count < ATOMIC_COUNT_MAX)
 {
-	/* On real hardware the increment has to be done
-	   as an atomic action. */
+	/*
+	 * On real hardware the increment has to be done
+	 * as an atomic action.
+	 */
 
 	val->count++;
@@ -58,6 +60,8 @@
     REQUIRES(val->count > ATOMIC_COUNT_MIN)
 {
-	/* On real hardware the decrement has to be done
-	   as an atomic action. */
+	/*
+	 * On real hardware the decrement has to be done
+	 * as an atomic action.
+	 */
 
 	val->count--;
@@ -69,7 +73,9 @@
     REQUIRES(val->count < ATOMIC_COUNT_MAX)
 {
-	/* On real hardware both the storing of the previous
-	   value and the increment have to be done as a single
-	   atomic action. */
+	/*
+	 * On real hardware both the storing of the previous
+	 * value and the increment have to be done as a single
+	 * atomic action.
+	 */
 
 	atomic_count_t prev = val->count;
@@ -84,7 +90,9 @@
     REQUIRES(val->count > ATOMIC_COUNT_MIN)
 {
-	/* On real hardware both the storing of the previous
-	   value and the decrement have to be done as a single
-	   atomic action. */
+	/*
+	 * On real hardware both the storing of the previous
+	 * value and the decrement have to be done as a single
+	 * atomic action.
+	 */
 
 	atomic_count_t prev = val->count;
@@ -101,7 +109,9 @@
     REQUIRES_EXTENT_MUTABLE(val)
 {
-	/* On real hardware the retrieving of the original
-	   value and storing 1 have to be done as a single
-	   atomic action. */
+	/*
+	 * On real hardware the retrieving of the original
+	 * value and storing 1 have to be done as a single
+	 * atomic action.
+	 */
 
 	atomic_count_t prev = val->count;
Index: kernel/arch/abs32le/include/arch/istate.h
===================================================================
--- kernel/arch/abs32le/include/arch/istate.h	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/abs32le/include/arch/istate.h	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -65,6 +65,8 @@
     REQUIRES_EXTENT_MUTABLE(istate)
 {
-	/* On real hardware this checks whether the interrupted
-	   context originated from user space. */
+	/*
+	 * On real hardware this checks whether the interrupted
+	 * context originated from user space.
+	 */
 
 	return !(istate->ip & UINT32_C(0x80000000));
Index: kernel/arch/abs32le/src/userspace.c
===================================================================
--- kernel/arch/abs32le/src/userspace.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/abs32le/src/userspace.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -41,6 +41,8 @@
 void userspace(uspace_arg_t *kernel_uarg)
 {
-	/* On real hardware this switches the CPU to user
-	   space mode and jumps to kernel_uarg->uspace_entry. */
+	/*
+	 * On real hardware this switches the CPU to user
+	 * space mode and jumps to kernel_uarg->uspace_entry.
+	 */
 
 	while (true)
Index: kernel/arch/amd64/include/arch/boot/memmap_struct.h
===================================================================
--- kernel/arch/amd64/include/arch/boot/memmap_struct.h	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/amd64/include/arch/boot/memmap_struct.h	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -1,3 +1,4 @@
-/* Copyright (c) 2016 Jakub Jermar
+/*
+ * Copyright (c) 2016 Jakub Jermar
  * All rights reserved.
  *
Index: kernel/arch/amd64/include/arch/context_struct.h
===================================================================
--- kernel/arch/amd64/include/arch/context_struct.h	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/amd64/include/arch/context_struct.h	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -1,3 +1,4 @@
-/* Copyright (c) 2014 Jakub Jermar
+/*
+ * Copyright (c) 2014 Jakub Jermar
  * All rights preserved.
  *
@@ -46,5 +47,6 @@
 
 typedef struct context {
-	/* We include only registers that must be preserved
+	/*
+	 * We include only registers that must be preserved
 	 * during function call.
 	 */
Index: kernel/arch/amd64/include/arch/istate_struct.h
===================================================================
--- kernel/arch/amd64/include/arch/istate_struct.h	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/amd64/include/arch/istate_struct.h	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -1,3 +1,4 @@
-/* Copyright (c) 2014 Jakub Jermar
+/*
+ * Copyright (c) 2014 Jakub Jermar
  * All rights reserved.
  *
Index: kernel/arch/amd64/include/arch/kseg_struct.h
===================================================================
--- kernel/arch/amd64/include/arch/kseg_struct.h	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/amd64/include/arch/kseg_struct.h	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -1,3 +1,4 @@
-/* Copyright (c) 2016 Jakub Jermar
+/*
+ * Copyright (c) 2016 Jakub Jermar
  * All rights reserved.
  *
Index: kernel/arch/amd64/src/fpu_context.c
===================================================================
--- kernel/arch/amd64/src/fpu_context.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/amd64/src/fpu_context.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -57,6 +57,8 @@
 {
 	/* TODO: Zero all SSE, MMX etc. registers */
-	/* Default value of SCR register is 0x1f80,
-	 * it masks all FPU exceptions*/
+	/*
+	 * Default value of SCR register is 0x1f80,
+	 * it masks all FPU exceptions
+	 */
 	asm volatile (
 	    "fninit\n"
Index: kernel/arch/amd64/src/kseg.c
===================================================================
--- kernel/arch/amd64/src/kseg.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/amd64/src/kseg.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -42,5 +42,5 @@
  * Allocate and initialize a per-CPU structure to be accessible via the
  * GS_KERNEL segment register.
- **/
+ */
 void kseg_init(void)
 {
Index: kernel/arch/amd64/src/pm.c
===================================================================
--- kernel/arch/amd64/src/pm.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/amd64/src/pm.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -268,7 +268,9 @@
 		tss_p = &tss;
 	} else {
-		/* We are going to use malloc, which may return
+		/*
+		 * We are going to use malloc, which may return
 		 * non boot-mapped pointer, initialize the CR3 register
-		 * ahead of page_init */
+		 * ahead of page_init
+		 */
 		write_cr3((uintptr_t) AS_KERNEL->genarch.page_table);
 
Index: kernel/arch/amd64/src/syscall.c
===================================================================
--- kernel/arch/amd64/src/syscall.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/amd64/src/syscall.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -52,5 +52,6 @@
 	/* Setup syscall entry address */
 
-	/* This is _mess_ - the 64-bit CS is argument + 16,
+	/*
+	 * This is _mess_ - the 64-bit CS is argument + 16,
 	 * the SS is argument + 8. The order is:
 	 * +0(KDATA_DES), +8(UDATA_DES), +16(UTEXT_DES)
@@ -60,5 +61,6 @@
 	    ((uint64_t) (GDT_SELECTOR(KTEXT_DES) | PL_KERNEL) << 32));
 	write_msr(AMD_MSR_LSTAR, (uint64_t)syscall_entry);
-	/* Mask RFLAGS on syscall
+	/*
+	 * Mask RFLAGS on syscall
 	 * - disable interrupts, until we exchange the stack register
 	 *   (mask the IF bit)
Index: kernel/arch/arm32/include/arch/context_struct.h
===================================================================
--- kernel/arch/arm32/include/arch/context_struct.h	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/arm32/include/arch/context_struct.h	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -34,5 +34,6 @@
 // XXX: This struct must match assembly code in src/context.S
 
-/* Thread context containing registers that must be preserved across
+/*
+ * Thread context containing registers that must be preserved across
  * function calls.
  */
Index: kernel/arch/arm32/include/arch/fpu_context.h
===================================================================
--- kernel/arch/arm32/include/arch/fpu_context.h	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/arm32/include/arch/fpu_context.h	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -42,5 +42,6 @@
 #define FPU_CONTEXT_ALIGN    8
 
-/* ARM Architecture reference manual, p B-1529.
+/*
+ * ARM Architecture reference manual, p B-1529.
  */
 typedef struct {
Index: kernel/arch/arm32/include/arch/mm/page_armv4.h
===================================================================
--- kernel/arch/arm32/include/arch/mm/page_armv4.h	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/arm32/include/arch/mm/page_armv4.h	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -64,5 +64,6 @@
 	unsigned should_be_zero : 1;
 
-	/* Pointer to the coarse 2nd level page table (holding entries for small
+	/*
+	 * Pointer to the coarse 2nd level page table (holding entries for small
 	 * (4KB) or large (64KB) pages. ARM also supports fine 2nd level page
 	 * tables that may hold even tiny pages (1KB) but they are bigger (4KB
@@ -80,6 +81,8 @@
 	unsigned cacheable : 1;
 
-	/* access permissions for each of 4 subparts of a page
-	 * (for each 1KB when small pages used */
+	/*
+	 * access permissions for each of 4 subparts of a page
+	 * (for each 1KB when small pages used
+	 */
 	unsigned access_permission_0 : 2;
 	unsigned access_permission_1 : 2;
Index: kernel/arch/arm32/include/arch/mm/page_armv6.h
===================================================================
--- kernel/arch/arm32/include/arch/mm/page_armv6.h	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/arm32/include/arch/mm/page_armv6.h	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -66,5 +66,6 @@
 	unsigned should_be_zero_1 : 1;
 
-	/* Pointer to the coarse 2nd level page table (holding entries for small
+	/*
+	 * Pointer to the coarse 2nd level page table (holding entries for small
 	 * (4KB) or large (64KB) pages. ARM also supports fine 2nd level page
 	 * tables that may hold even tiny pages (1KB) but they are bigger (4KB
@@ -279,6 +280,8 @@
 	}
 
-	/* Shareable is ignored for devices (non-cacheable),
-	 * turn it off for normal memory. */
+	/*
+	 * Shareable is ignored for devices (non-cacheable),
+	 * turn it off for normal memory.
+	 */
 	p->shareable = 0;
 
Index: kernel/arch/arm32/src/cpu/cpu.c
===================================================================
--- kernel/arch/arm32/src/cpu/cpu.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/arm32/src/cpu/cpu.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -147,13 +147,18 @@
 	/* Unaligned access is supported on armv6+ */
 #if defined(PROCESSOR_ARCH_armv7_a) | defined(PROCESSOR_ARCH_armv6)
-	/* Enable unaligned access, RAZ/WI prior to armv6
+	/*
+	 * Enable unaligned access, RAZ/WI prior to armv6
 	 * switchable on armv6, RAO/WI writes on armv7,
 	 * see ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition
-	 * L.3.1 (p. 2456) */
+	 * L.3.1 (p. 2456)
+	 */
 	control_reg |= SCTLR_UNALIGNED_EN_FLAG;
-	/* Disable alignment checks, this turns unaligned access to undefined,
-	 * unless U bit is set. */
+	/*
+	 * Disable alignment checks, this turns unaligned access to undefined,
+	 * unless U bit is set.
+	 */
 	control_reg &= ~SCTLR_ALIGN_CHECK_EN_FLAG;
-	/* Enable caching, On arm prior to armv7 there is only one level
+	/*
+	 * Enable caching, On arm prior to armv7 there is only one level
 	 * of caches. Data cache is coherent.
 	 * "This means that the behavior of accesses from the same observer to
@@ -169,5 +174,6 @@
 #endif
 #ifdef PROCESSOR_ARCH_armv7_a
-	/* ICache coherency is elaborated on in barrier.h.
+	/*
+	 * ICache coherency is elaborated on in barrier.h.
 	 * VIPT and PIPT caches need maintenance only on code modify,
 	 * so it should be safe for general use.
Index: kernel/arch/arm32/src/exception.c
===================================================================
--- kernel/arch/arm32/src/exception.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/arm32/src/exception.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -66,5 +66,6 @@
 static void install_handler(unsigned handler_addr, unsigned *vector)
 {
-	/* relative address (related to exc. vector) of the word
+	/*
+	 * Relative address (related to exc. vector) of the word
 	 * where handler's address is stored
 	 */
@@ -72,9 +73,9 @@
 	    PREFETCH_OFFSET;
 
-	/* make it LDR instruction and store at exception vector */
+	/* Make it LDR instruction and store at exception vector */
 	*vector = handler_address_ptr | LDR_OPCODE;
 	smc_coherence(vector);
 
-	/* store handler's address */
+	/* Store handler's address */
 	*(vector + EXC_VECTORS) = handler_addr;
 
Index: kernel/arch/arm32/src/mach/beagleboardxm/beagleboardxm.c
===================================================================
--- kernel/arch/arm32/src/mach/beagleboardxm/beagleboardxm.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/arm32/src/mach/beagleboardxm/beagleboardxm.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -106,6 +106,8 @@
 	omap_irc_init(beagleboard.irc_addr);
 
-	/* Initialize timer. Use timer1, because it is in WKUP power domain
-	 * (always on) and has special capabilities for precise 1ms ticks */
+	/*
+	 * Initialize timer. Use timer1, because it is in WKUP power domain
+	 * (always on) and has special capabilities for precise 1ms ticks
+	 */
 	amdm37x_gpt_timer_ticks_init(&beagleboard.timer,
 	    AMDM37x_GPT1_BASE_ADDRESS, AMDM37x_GPT1_SIZE, HZ);
@@ -161,5 +163,6 @@
 	}
 	/** amdm37x manual ch. 12.5.2 (p. 2428) places irc ack at the end
-	 * of ISR. DO this to avoid strange behavior. */
+	 * of ISR. DO this to avoid strange behavior.
+	 */
 	omap_irc_irq_ack(beagleboard.irc_addr);
 }
Index: kernel/arch/arm32/src/mm/page_fault.c
===================================================================
--- kernel/arch/arm32/src/mm/page_fault.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/arm32/src/mm/page_fault.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -153,6 +153,8 @@
 	}
 
-	/* See ARM Architecture reference manual ARMv7-A and ARMV7-R edition
-	 * A5.3 (PDF p. 206) */
+	/*
+	 * See ARM Architecture reference manual ARMv7-A and ARMV7-R edition
+	 * A5.3 (PDF p. 206)
+	 */
 	static const struct {
 		uint32_t mask;
Index: kernel/arch/ia32/include/arch/boot/memmap_struct.h
===================================================================
--- kernel/arch/ia32/include/arch/boot/memmap_struct.h	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/ia32/include/arch/boot/memmap_struct.h	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -1,3 +1,4 @@
-/* Copyright (c) 2014 Jakub Jermar
+/*
+ * Copyright (c) 2014 Jakub Jermar
  * All rights preserved.
  *
Index: kernel/arch/ia32/include/arch/context_struct.h
===================================================================
--- kernel/arch/ia32/include/arch/context_struct.h	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/ia32/include/arch/context_struct.h	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -1,3 +1,4 @@
-/* Copyright (c) 2014 Jakub Jermar
+/*
+ * Copyright (c) 2014 Jakub Jermar
  * All rights preserved.
  *
Index: kernel/arch/ia32/include/arch/istate_struct.h
===================================================================
--- kernel/arch/ia32/include/arch/istate_struct.h	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/ia32/include/arch/istate_struct.h	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -1,3 +1,4 @@
-/* Copyright (c) 2014 Jakub Jermar
+/*
+ * Copyright (c) 2014 Jakub Jermar
  * All rights preserved.
  *
Index: kernel/arch/ia32/src/smp/smp.c
===================================================================
--- kernel/arch/ia32/src/smp/smp.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/ia32/src/smp/smp.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -156,5 +156,6 @@
 		 */
 
-		/* XXX Flag FRAME_LOW_4_GiB was removed temporarily,
+		/*
+		 * XXX Flag FRAME_LOW_4_GiB was removed temporarily,
 		 * it needs to be replaced by a generic fuctionality of
 		 * the memory subsystem
Index: kernel/arch/ia64/include/arch/context_struct.h
===================================================================
--- kernel/arch/ia64/include/arch/context_struct.h	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/ia64/include/arch/context_struct.h	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -1,3 +1,4 @@
-/* Copyright (c) 2014 Jakub Jermar
+/*
+ * Copyright (c) 2014 Jakub Jermar
  * All rights preserved.
  *
Index: kernel/arch/ia64/include/arch/istate_struct.h
===================================================================
--- kernel/arch/ia64/include/arch/istate_struct.h	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/ia64/include/arch/istate_struct.h	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -1,3 +1,4 @@
-/* Copyright (c) 2014 Jakub Jermar
+/*
+ * Copyright (c) 2014 Jakub Jermar
  * All rights preserved.
  *
Index: kernel/arch/mips32/include/arch/atomic.h
===================================================================
--- kernel/arch/mips32/include/arch/atomic.h	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/mips32/include/arch/atomic.h	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -47,5 +47,5 @@
 #define atomic_predec(x)  atomic_add(x, -1)
 
-/* Atomic addition of immediate value.
+/** Atomic addition of immediate value.
  *
  * @param val Memory location to which will be the immediate value added.
@@ -53,5 +53,4 @@
  *
  * @return Value after addition.
- *
  */
 NO_TRACE static inline atomic_count_t atomic_add(atomic_t *val,
Index: kernel/arch/mips32/src/exception.c
===================================================================
--- kernel/arch/mips32/src/exception.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/mips32/src/exception.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -132,7 +132,9 @@
 	debugger_bpoint(istate);
 #else
-	/* it is necessary to not re-execute BREAK instruction after
-	   returning from Exception handler
-	   (see page 138 in R4000 Manual for more information) */
+	/*
+	 * It is necessary to not re-execute BREAK instruction after
+	 * returning from Exception handler
+	 * (see page 138 in R4000 Manual for more information)
+	 */
 	istate->epc += 4;
 #endif
Index: kernel/arch/mips32/src/mips32.c
===================================================================
--- kernel/arch/mips32/src/mips32.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/mips32/src/mips32.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -49,5 +49,6 @@
 #include <arch/machine_func.h>
 
-/* Size of the code jumping to the exception handler code
+/*
+ * Size of the code jumping to the exception handler code
  * - J+NOP
  */
@@ -70,5 +71,6 @@
 arch_ops_t *arch_ops = &mips32_ops;
 
-/* Why the linker moves the variable 64K away in assembler
+/*
+ * Why the linker moves the variable 64K away in assembler
  * when not in .text section?
  */
Index: kernel/arch/mips32/src/mm/frame.c
===================================================================
--- kernel/arch/mips32/src/mm/frame.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/mips32/src/mm/frame.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -243,5 +243,6 @@
 
 #if defined(MACHINE_lmalta) || defined(MACHINE_bmalta)
-	/* Blacklist memory regions used by YAMON.
+	/*
+	 * Blacklist memory regions used by YAMON.
 	 *
 	 * The YAMON User's Manual vaguely says the following physical addresses
Index: kernel/arch/ppc32/src/mm/frame.c
===================================================================
--- kernel/arch/ppc32/src/mm/frame.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/ppc32/src/mm/frame.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -93,6 +93,8 @@
 	frame_common_arch_init(true);
 
-	/* First is exception vector, second is 'implementation specific',
-	   third and fourth is reserved, other contain real mode code */
+	/*
+	 * First is exception vector, second is 'implementation specific',
+	 * third and fourth is reserved, other contain real mode code
+	 */
 	frame_mark_unavailable(0, 8);
 
Index: kernel/arch/sparc64/src/smp/sun4v/smp.c
===================================================================
--- kernel/arch/sparc64/src/smp/sun4v/smp.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/arch/sparc64/src/smp/sun4v/smp.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -191,7 +191,7 @@
 
 		/*
- 		 * if failed in previous CPUs, don't try
- 		 * to detect physical cores any more
- 		 */
+		 * if failed in previous CPUs, don't try
+		 * to detect physical cores any more
+		 */
 		if (exec_unit_assign_error)
 			continue;
@@ -250,5 +250,5 @@
 			    exec_units[i].strand_count : max_core_strands;
 
-		/* detecting execution unit failed */
+			/* detecting execution unit failed */
 		} else {
 			exec_unit_assign_error = 1;
@@ -260,8 +260,8 @@
 
 	/*
- 	 * A fallback code which will be executed if finding out which
- 	 * execution units belong to particular CPUs fails. Pretend there
- 	 * exists just one execution unit and all CPUs belong to it.
- 	 */
+	 * A fallback code which will be executed if finding out which
+	 * execution units belong to particular CPUs fails. Pretend there
+	 * exists just one execution unit and all CPUs belong to it.
+	 */
 	if (exec_unit_assign_error) {
 		bsp_exec_unit_index = 0;
@@ -288,8 +288,8 @@
 
 	/*
- 	 * Reorder the execution units array elements and the cpuid array
- 	 * elements so that the BSP will always be the very first CPU of
- 	 * the very first execution unit.
- 	 */
+	 * Reorder the execution units array elements and the cpuid array
+	 * elements so that the BSP will always be the very first CPU of
+	 * the very first execution unit.
+	 */
 	exec_unit_t temp_exec_unit = exec_units[0];
 	exec_units[0] = exec_units[bsp_exec_unit_index];
Index: kernel/genarch/include/genarch/drivers/am335x/timer_regs.h
===================================================================
--- kernel/genarch/include/genarch/drivers/am335x/timer_regs.h	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/genarch/include/genarch/drivers/am335x/timer_regs.h	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -41,5 +41,6 @@
 typedef struct am335x_timer_regs {
 
-	/* This read only register contains the
+	/*
+	 * This read only register contains the
 	 * revision number of the module
 	 */
@@ -60,5 +61,6 @@
 	ioport32_t const pad1[3];
 
-	/* This register allows controlling various
+	/*
+	 * This register allows controlling various
 	 * parameters of the OCP interface.
 	 */
Index: kernel/genarch/include/genarch/multiboot/multiboot_info_struct.h
===================================================================
--- kernel/genarch/include/genarch/multiboot/multiboot_info_struct.h	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/genarch/include/genarch/multiboot/multiboot_info_struct.h	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -1,3 +1,4 @@
-/* Copyright (c) 2016 Jakub Jermar
+/*
+ * Copyright (c) 2016 Jakub Jermar
  * All rights preserved.
  *
Index: kernel/genarch/include/genarch/multiboot/multiboot_memmap_struct.h
===================================================================
--- kernel/genarch/include/genarch/multiboot/multiboot_memmap_struct.h	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/genarch/include/genarch/multiboot/multiboot_memmap_struct.h	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -1,3 +1,4 @@
-/* Copyright (c) 2016 Jakub Jermar
+/*
+ * Copyright (c) 2016 Jakub Jermar
  * All rights preserved.
  *
Index: kernel/genarch/src/drivers/omap/uart.c
===================================================================
--- kernel/genarch/src/drivers/omap/uart.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/genarch/src/drivers/omap/uart.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -116,6 +116,8 @@
 	uart->regs->fcr = OMAP_UART_FCR_FIFO_EN_FLAG;
 
-	/* Enable fine granularity for RX FIFO and set trigger level to 1,
-	 * TX FIFO, trigger level is irrelevant*/
+	/*
+	 * Enable fine granularity for RX FIFO and set trigger level to 1,
+	 * TX FIFO, trigger level is irrelevant
+	 */
 	uart->regs->lcr = 0xBF;              /* Sets config mode B */
 	uart->regs->scr = OMAP_UART_SCR_RX_TRIG_GRANU1_FLAG;
Index: kernel/genarch/src/softint/multiplication.c
===================================================================
--- kernel/genarch/src/softint/multiplication.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/genarch/src/softint/multiplication.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -117,6 +117,8 @@
 	t2 += t1;
 
-	/* t2 & (1ull << 63) - if this bit is set in unsigned long long,
-	 * result does not fit in signed one */
+	/*
+	 * t2 & (1ull << 63) - if this bit is set in unsigned long long,
+	 * result does not fit in signed one
+	 */
 	if (SOFTINT_CHECK_OF && ((t2 < t1) || (t2 & (1ull << 63)))) {
 		// error, overflow
Index: kernel/genarch/src/srln/srln.c
===================================================================
--- kernel/genarch/src/srln/srln.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/genarch/src/srln/srln.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -106,6 +106,8 @@
 		}
 
-		/* Replace carriage return with line feed
-		   and suppress any following line feed */
+		/*
+		 * Replace carriage return with line feed
+		 * and suppress any following line feed
+		 */
 		if ((ch == '\n') && (cr)) {
 			cr = false;
Index: kernel/generic/include/adt/btree.h
===================================================================
--- kernel/generic/include/adt/btree.h	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/generic/include/adt/btree.h	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -78,5 +78,6 @@
 	/**
 	 * Link connecting leaf-level nodes. Defined only when this node is a
-	 * leaf. */
+	 * leaf.
+	 */
 	link_t leaf_link;
 
Index: kernel/generic/include/adt/cht.h
===================================================================
--- kernel/generic/include/adt/cht.h	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/generic/include/adt/cht.h	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -46,5 +46,6 @@
 /** Concurrent hash table node link. */
 typedef struct cht_link {
-	/* Must be placed first.
+	/*
+	 * Must be placed first.
 	 *
 	 * The function pointer (rcu_link.func) is used to store the item's
Index: kernel/generic/src/console/cmd.c
===================================================================
--- kernel/generic/src/console/cmd.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/generic/src/console/cmd.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -1421,6 +1421,8 @@
 	printf("%s (%s)\n", test->name, test->desc);
 
-	/* Update and read thread accounting
-	   for benchmarking */
+	/*
+	 * Update and read thread accounting
+	 * for benchmarking
+	 */
 	irq_spinlock_lock(&TASK->lock, true);
 	uint64_t ucycles0, kcycles0;
@@ -1474,6 +1476,8 @@
 		printf("%s (%u/%u) ... ", test->name, i + 1, cnt);
 
-		/* Update and read thread accounting
-		   for benchmarking */
+		/*
+		 * Update and read thread accounting
+		 * for benchmarking
+		 */
 		irq_spinlock_lock(&TASK->lock, true);
 		uint64_t ucycles0, kcycles0;
Index: kernel/generic/src/ipc/event.c
===================================================================
--- kernel/generic/src/ipc/event.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/generic/src/ipc/event.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -354,6 +354,5 @@
  * @return ELIMIT on unknown event type.
  * @return ENOENT if the notification of the given type is not
-           subscribed.
- *
+ *         subscribed.
  */
 sys_errno_t sys_ipc_event_unsubscribe(sysarg_t evno)
Index: kernel/generic/src/ipc/ipc.c
===================================================================
--- kernel/generic/src/ipc/ipc.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/generic/src/ipc/ipc.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -33,5 +33,6 @@
  */
 
-/* Lock ordering
+/*
+ * Lock ordering
  *
  * First the answerbox, then the phone.
Index: kernel/generic/src/ipc/ipcrsc.c
===================================================================
--- kernel/generic/src/ipc/ipcrsc.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/generic/src/ipc/ipcrsc.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -33,5 +33,6 @@
  */
 
-/* IPC resources management
+/*
+ * IPC resources management
  *
  * The goal of this source code is to properly manage IPC resources and allow
Index: kernel/generic/src/ipc/irq.c
===================================================================
--- kernel/generic/src/ipc/irq.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/generic/src/ipc/irq.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -514,5 +514,5 @@
 }
 
-/* IRQ top-half handler.
+/** IRQ top-half handler.
  *
  * We expect interrupts to be disabled and the irq->lock already held.
Index: kernel/generic/src/lib/str.c
===================================================================
--- kernel/generic/src/lib/str.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/generic/src/lib/str.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -225,6 +225,8 @@
 		return EINVAL;
 
-	/* Unsigned version of ch (bit operations should only be done
-	   on unsigned types). */
+	/*
+	 * Unsigned version of ch (bit operations should only be done
+	 * on unsigned types).
+	 */
 	uint32_t cc = (uint32_t) ch;
 
@@ -735,5 +737,5 @@
  * @param ch      Character to insert to.
  * @param pos     Character index where to insert.
- @ @param max_pos Characters in the buffer.
+ * @param max_pos Characters in the buffer.
  *
  * @return True if the insertion was sucessful, false if the position
@@ -934,6 +936,8 @@
 		return EINVAL;
 
-	/* Check whether we are at the end of
-	   the string in strict mode */
+	/*
+	 * Check whether we are at the end of
+	 * the string in strict mode
+	 */
 	if ((strict) && (*lendptr != 0))
 		return EINVAL;
Index: kernel/generic/src/lib/str_error.c
===================================================================
--- kernel/generic/src/lib/str_error.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/generic/src/lib/str_error.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -31,5 +31,6 @@
 #include <str.h>
 
-/* The arrays below are automatically generated from the same file that
+/*
+ * The arrays below are automatically generated from the same file that
  * errno.h constants are generated from. Triple-include of the same list
  * with redefinitions of __errno() macro are used to ensure that the
@@ -61,5 +62,6 @@
 static int find_errno(errno_t e)
 {
-	/* Just a dumb linear search.
+	/*
+	 * Just a dumb linear search.
 	 * There too few entries to warrant anything smarter.
 	 */
Index: kernel/generic/src/main/main.c
===================================================================
--- kernel/generic/src/main/main.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/generic/src/main/main.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -95,5 +95,6 @@
 #include <cap/cap.h>
 
-/* Ensure [u]int*_t types are of correct size.
+/*
+ * Ensure [u]int*_t types are of correct size.
  *
  * Probably, this is not the best place for such tests
Index: kernel/generic/src/mm/as.c
===================================================================
--- kernel/generic/src/mm/as.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/generic/src/mm/as.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -477,5 +477,6 @@
 	if (addr >= bound) {
 		if (guarded) {
-			/* Leave an unmapped page between the lower
+			/*
+			 * Leave an unmapped page between the lower
 			 * bound and the area's start address.
 			 */
@@ -499,5 +500,6 @@
 
 			if (guarded || area->flags & AS_AREA_GUARD) {
-				/* We must leave an unmapped page
+				/*
+				 * We must leave an unmapped page
 				 * between the two areas.
 				 */
Index: kernel/generic/src/printf/vsnprintf.c
===================================================================
--- kernel/generic/src/printf/vsnprintf.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/generic/src/printf/vsnprintf.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -70,5 +70,6 @@
 
 	if (left == 1) {
-		/* We have only one free byte left in buffer
+		/*
+		 * We have only one free byte left in buffer
 		 * -> store trailing zero
 		 */
@@ -79,5 +80,6 @@
 
 	if (left <= size) {
-		/* We do not have enough space for the whole string
+		/*
+		 * We do not have enough space for the whole string
 		 * with the trailing zero => print only a part
 		 * of string
@@ -92,5 +94,6 @@
 		}
 
-		/* Put trailing zero at end, but not count it
+		/*
+		 * Put trailing zero at end, but not count it
 		 * into data->len so it could be rewritten next time
 		 */
@@ -104,5 +107,6 @@
 	data->len += size;
 
-	/* Put trailing zero at end, but not count it
+	/*
+	 * Put trailing zero at end, but not count it
 	 * into data->len so it could be rewritten next time
 	 */
@@ -140,5 +144,6 @@
 
 		if (left == 1) {
-			/* We have only one free byte left in buffer
+			/*
+			 * We have only one free byte left in buffer
 			 * -> store trailing zero
 			 */
@@ -154,5 +159,6 @@
 	}
 
-	/* Put trailing zero at end, but not count it
+	/*
+	 * Put trailing zero at end, but not count it
 	 * into data->len so it could be rewritten next time
 	 */
Index: kernel/generic/src/proc/thread.c
===================================================================
--- kernel/generic/src/proc/thread.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/generic/src/proc/thread.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -621,6 +621,8 @@
 void thread_sleep(uint32_t sec)
 {
-	/* Sleep in 1000 second steps to support
-	   full argument range */
+	/*
+	 * Sleep in 1000 second steps to support
+	 * full argument range
+	 */
 	while (sec > 0) {
 		uint32_t period = (sec > 1000) ? 1000 : sec;
Index: kernel/generic/src/synch/waitq.c
===================================================================
--- kernel/generic/src/synch/waitq.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/generic/src/synch/waitq.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -441,5 +441,6 @@
 	THREAD->sleep_queue = wq;
 
-	/* Must be before entry to scheduler, because there are multiple
+	/*
+	 * Must be before entry to scheduler, because there are multiple
 	 * return vectors.
 	 */
Index: kernel/generic/src/synch/workqueue.c
===================================================================
--- kernel/generic/src/synch/workqueue.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/generic/src/synch/workqueue.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -424,5 +424,5 @@
  *                  until func() is entered.
  * @param func      User supplied function to invoke in a worker thread.
-
+ *
  * @return false if work queue is shutting down; function is not
  *               queued for further processing.
@@ -444,5 +444,5 @@
  *                  until func() is entered.
  * @param func      User supplied function to invoke in a worker thread.
-
+ *
  * @return false if work queue is shutting down; function is not
  *               queued for further processing.
@@ -469,5 +469,5 @@
  * @param func      User supplied function to invoke in a worker thread.
  * @param can_block May adding this work item block?
-
+ *
  * @return false if work queue is shutting down; function is not
  *               queued for further processing.
Index: kernel/generic/src/sysinfo/stats.c
===================================================================
--- kernel/generic/src/sysinfo/stats.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/generic/src/sysinfo/stats.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -222,5 +222,5 @@
 }
 
-/* Produce task statistics
+/** Produce task statistics
  *
  * Summarize task information into task statistics.
@@ -324,5 +324,5 @@
 }
 
-/* Produce thread statistics
+/** Produce thread statistics
  *
  * Summarize thread information into thread statistics.
Index: kernel/generic/src/sysinfo/sysinfo.c
===================================================================
--- kernel/generic/src/sysinfo/sysinfo.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/generic/src/sysinfo/sysinfo.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -232,5 +232,6 @@
 			i++;
 
-		/* Check for perfect name and path match
+		/*
+		 * Check for perfect name and path match
 		 * -> item is already present.
 		 */
@@ -251,5 +252,6 @@
 				    &(cur->subtree.table));
 			default:
-				/* Subtree items handled by a function, this
+				/*
+				 * Subtree items handled by a function, this
 				 * cannot be overriden by a constant item.
 				 */
@@ -258,5 +260,6 @@
 		}
 
-		/* No match and no more siblings to check
+		/*
+		 * No match and no more siblings to check
 		 * -> create a new sibling item.
 		 */
@@ -457,6 +460,8 @@
 	sysinfo_item_t *item = sysinfo_create_path(name, root);
 
-	/* Change the type of the subtree only if it is not already
-	   a fixed subtree */
+	/*
+	 * Change the type of the subtree only if it is not already
+	 * a fixed subtree
+	 */
 	if ((item != NULL) && (item->subtree_type != SYSINFO_SUBTREE_TABLE)) {
 		item->subtree_type = SYSINFO_SUBTREE_FUNCTION;
@@ -559,6 +564,8 @@
 void sysinfo_dump(sysinfo_item_t *root)
 {
-	/* Avoid other functions to mess with sysinfo
-	   while we are dumping it */
+	/*
+	 * Avoid other functions to mess with sysinfo
+	 * while we are dumping it
+	 */
 	mutex_lock(&sysinfo_lock);
 
Index: kernel/test/mm/slab2.c
===================================================================
--- kernel/test/mm/slab2.c	(revision fac0ac7be7d127e6cc5c186e3c497bea39ed2e3b)
+++ kernel/test/mm/slab2.c	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
@@ -197,5 +197,6 @@
 static void multitest(int size)
 {
-	/* Start 8 threads that just allocate as much as possible,
+	/*
+	 * Start 8 threads that just allocate as much as possible,
 	 * then release everything, then again allocate, then release
 	 */
