Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 1887 → Rev 1888

/trunk/kernel/genarch/include/softint/division.h
26,16 → 26,15
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genarch
/** @addtogroup genarch
* @{
*/
/** @file
*/
 
#ifndef __SOFTINT_DIVISION_H__
#define __SOFTINT_DIVISION_H__
#ifndef KERN_DIVISION_H_
#define KERN_DIVISION_H_
 
 
/* 32bit integer division */
int __divsi3(int a, int b);
 
64,7 → 63,5
 
#endif
 
 
/** @}
/** @}
*/
 
/trunk/kernel/genarch/include/fb/font-8x16.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genarch
/** @addtogroup genarch
* @{
*/
/** @file
*/
 
#ifndef __FONT_8X16_H__
#define __FONT_8X16_H__
#ifndef KERN_FONT_8X16_H_
#define KERN_FONT_8X16_H_
 
#define FONT_GLIPHS 256
#define FONT_SCANLINES 16
42,6 → 42,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/genarch/include/fb/fb.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genarch
/** @addtogroup genarch
* @{
*/
/** @file
*/
 
#ifndef _FB_H_
#define _FB_H_
#ifndef KERN_FB_H_
#define KERN_FB_H_
 
#include <typedefs.h>
#include <arch/types.h>
43,6 → 43,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/genarch/include/mm/as_ht.h
32,8 → 32,8
/** @file
*/
 
#ifndef __AS_HT_H__
#define __AS_HT_H__
#ifndef KERN_AS_HT_H_
#define KERN_AS_HT_H_
 
#include <mm/as.h>
 
/trunk/kernel/genarch/include/mm/page_pt.h
40,8 → 40,8
 
#ifdef CONFIG_PAGE_PT
 
#ifndef __PAGE_PT_H__
#define __PAGE_PT_H__
#ifndef KERN_PAGE_PT_H_
#define KERN_PAGE_PT_H_
 
#include <arch/types.h>
#include <typedefs.h>
/trunk/kernel/genarch/include/mm/asid_fifo.h
26,19 → 26,18
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genarchmm
/** @addtogroup genarchmm
* @{
*/
/** @file
*/
 
#ifndef __ASID_FIFO_H__
#define __ASID_FIFO_H__
#ifndef KERN_ASID_FIFO_H_
#define KERN_ASID_FIFO_H_
 
extern void asid_fifo_init(void);
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/genarch/include/mm/as_pt.h
32,8 → 32,8
/** @file
*/
 
#ifndef __AS_PT_H__
#define __AS_PT_H__
#ifndef KERN_AS_PT_H_
#define KERN_AS_PT_H_
 
#include <mm/as.h>
 
/trunk/kernel/genarch/include/mm/page_ht.h
36,8 → 36,8
 
#ifdef CONFIG_PAGE_HT
 
#ifndef __PAGE_HT_H__
#define __PAGE_HT_H__
#ifndef KERN_PAGE_HT_H_
#define KERN_PAGE_HT_H_
 
#include <mm/page.h>
#include <typedefs.h>
/trunk/kernel/genarch/include/acpi/acpi.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genarch
/** @addtogroup genarch
* @{
*/
/** @file
*/
 
#ifndef __ACPI_H__
#define __ACPI_H__
#ifndef KERN_ACPI_H_
#define KERN_ACPI_H_
 
#include <arch/types.h>
 
88,8 → 88,7
extern void acpi_init(void);
extern int acpi_sdt_check(uint8_t *sdt);
 
#endif /* __ACPI_H__ */
#endif /* KERN_ACPI_H_ */
 
/** @}
/** @}
*/
 
/trunk/kernel/genarch/include/acpi/madt.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genarch
/** @addtogroup genarch
* @{
*/
/** @file
*/
 
#ifndef __MADT_H__
#define __MADT_H__
#ifndef KERN_MADT_H_
#define KERN_MADT_H_
 
#include <genarch/acpi/acpi.h>
#include <arch/smp/apic.h>
143,8 → 143,7
 
extern void acpi_madt_parse(void);
 
#endif /* __MADT_H__ */
#endif /* KERN_MADT_H_ */
 
/** @}
/** @}
*/
 
/trunk/kernel/genarch/src/kbd/ns16550.c
104,7 → 104,8
}
 
/** Wait until the controller reads its data. */
void ns16550_wait(void) {
void ns16550_wait(void)
{
}
 
/* Called from getc(). */
/trunk/kernel/genarch/src/softint/division.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genarch
/** @addtogroup genarch
* @{
*/
/** @file
191,8 → 191,5
return divandmod64(a, b, c);
}
 
 
 
/** @}
/** @}
*/
 
/trunk/kernel/genarch/src/fb/fb.c
304,30 → 304,30
spinlock_lock(&fb_lock);
switch (ch) {
case '\n':
invert_cursor();
position += columns;
position -= position % columns;
break;
case '\r':
invert_cursor();
position -= position % columns;
break;
case '\b':
invert_cursor();
if (position % columns)
position--;
break;
case '\t':
invert_cursor();
do {
draw_char(' ');
position++;
} while ((position % 8) && position < columns * rows);
break;
default:
draw_char(ch);
case '\n':
invert_cursor();
position += columns;
position -= position % columns;
break;
case '\r':
invert_cursor();
position -= position % columns;
break;
case '\b':
invert_cursor();
if (position % columns)
position--;
break;
case '\t':
invert_cursor();
do {
draw_char(' ');
position++;
} while ((position % 8) && position < columns * rows);
break;
default:
draw_char(ch);
position++;
}
if (position >= columns * rows) {
358,31 → 358,31
void fb_init(uintptr_t addr, unsigned int x, unsigned int y, unsigned int bpp, unsigned int scan, bool align)
{
switch (bpp) {
case 8:
rgb2scr = rgb_1byte;
scr2rgb = byte1_rgb;
pixelbytes = 1;
break;
case 16:
rgb2scr = rgb_2byte;
scr2rgb = byte2_rgb;
pixelbytes = 2;
break;
case 24:
rgb2scr = rgb_3byte;
scr2rgb = byte3_rgb;
if (align)
pixelbytes = 4;
else
pixelbytes = 3;
break;
case 32:
rgb2scr = rgb_4byte;
scr2rgb = byte4_rgb;
case 8:
rgb2scr = rgb_1byte;
scr2rgb = byte1_rgb;
pixelbytes = 1;
break;
case 16:
rgb2scr = rgb_2byte;
scr2rgb = byte2_rgb;
pixelbytes = 2;
break;
case 24:
rgb2scr = rgb_3byte;
scr2rgb = byte3_rgb;
if (align)
pixelbytes = 4;
break;
default:
panic("Unsupported bpp");
else
pixelbytes = 3;
break;
case 32:
rgb2scr = rgb_4byte;
scr2rgb = byte4_rgb;
pixelbytes = 4;
break;
default:
panic("Unsupported bpp");
}
unsigned int fbsize = scan * y;
/trunk/kernel/genarch/src/fb/font-8x16.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genarch
/** @addtogroup genarch
* @{
*/
/** @file
4646,6 → 4646,5
 
};
 
/** @}
/** @}
*/
 
/trunk/kernel/genarch/src/mm/as_pt.c
141,4 → 141,3
 
/** @}
*/
 
/trunk/kernel/genarch/src/acpi/madt.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genarch
/** @addtogroup genarch
* @{
*/
/**
243,6 → 243,5
 
#endif /* CONFIG_SMP */
 
/** @}
/** @}
*/
 
/trunk/kernel/genarch/src/acpi/acpi.c
26,8 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
 
/** @addtogroup genarch
/** @addtogroup genarch
* @{
*/
 
183,7 → 182,5
 
}
 
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/func.h
32,8 → 32,8
/** @file
*/
 
#ifndef __FUNC_H__
#define __FUNC_H__
#ifndef KERN_FUNC_H_
#define KERN_FUNC_H_
 
#include <arch/types.h>
#include <typedefs.h>
/trunk/kernel/generic/include/print.h
32,8 → 32,8
/** @file
*/
 
#ifndef __PRINT_H__
#define __PRINT_H__
#ifndef KERN_PRINT_H_
#define KERN_PRINT_H_
 
#include <arch/types.h>
#include <synch/spinlock.h>
/trunk/kernel/generic/include/fpu_context.h
32,8 → 32,8
/** @file
*/
 
#ifndef __FPU_CONTEXT_H__
#define __FPU_CONTEXT_H__
#ifndef KERN_FPU_CONTEXT_H_
#define KERN_FPU_CONTEXT_H_
 
#include <arch/fpu_context.h>
#include <typedefs.h>
48,9 → 48,7
extern void fpu_enable(void);
extern void fpu_disable(void);
 
#endif /* KERN_FPU_CONTEXT_H_ */
 
#endif /* __FPU_CONTEXT_H__ */
 
 
/** @}
*/
/trunk/kernel/generic/include/stackarg.h
32,14 → 32,13
/** @file
*/
 
 
/*
* Variable argument list manipulation macros
* for architectures using stack to pass arguments.
*/
#ifndef __STACKARG_H__
#define __STACKARG_H__
#ifndef KERN_STACKARG_H_
#define KERN_STACKARG_H_
 
#include <arch/types.h>
 
/trunk/kernel/generic/include/byteorder.h
32,8 → 32,8
/** @file
*/
 
#ifndef __BYTEORDER_H__
#define __BYTEORDER_H__
#ifndef KERN_BYTEORDER_H_
#define KERN_BYTEORDER_H_
 
static inline uint64_t uint64_t_byteorder_swap(uint64_t n)
{
/trunk/kernel/generic/include/symtab.h
32,8 → 32,8
/** @file
*/
 
#ifndef __SYMTAB_H__
#define __SYMTAB_H__
#ifndef KERN_SYMTAB_H_
#define KERN_SYMTAB_H_
 
#include <arch/types.h>
 
/trunk/kernel/generic/include/sysinfo/sysinfo.h
32,6 → 32,9
/** @file
*/
 
#ifndef KERN_SYSINFO_H_
#define KERN_SYSINFO_H_
 
#include <arch/types.h>
 
typedef union sysinfo_item_val {
64,7 → 67,6
#define SYSINFO_SUBINFO_TABLE 1
#define SYSINFO_SUBINFO_FUNCTION 2
 
 
typedef unative_t (*sysinfo_val_fn_t)(sysinfo_item_t *root);
typedef unative_t (*sysinfo_subinfo_fn_t)(const char *subname);
 
83,5 → 85,7
unative_t sys_sysinfo_valid(unative_t ptr,unative_t len);
unative_t sys_sysinfo_value(unative_t ptr,unative_t len);
 
#endif
 
/** @}
*/
/trunk/kernel/generic/include/config.h
32,8 → 32,8
/** @file
*/
 
#ifndef __CONFIG_H__
#define __CONFIG_H__
#ifndef KERN_CONFIG_H_
#define KERN_CONFIG_H_
 
#include <arch/types.h>
#include <typedefs.h>
/trunk/kernel/generic/include/elf.h
32,8 → 32,8
/** @file
*/
 
#ifndef __ELF_H__
#define __ELF_H__
#ifndef KERN_ELF_H_
#define KERN_ELF_H_
 
#include <arch/elf.h>
#include <arch/types.h>
/trunk/kernel/generic/include/proc/scheduler.h
32,8 → 32,8
/** @file
*/
 
#ifndef __SCHEDULER_H__
#define __SCHEDULER_H__
#ifndef KERN_SCHEDULER_H_
#define KERN_SCHEDULER_H_
 
#include <synch/spinlock.h>
#include <time/clock.h> /* HZ */
/trunk/kernel/generic/include/proc/uarg.h
32,8 → 32,8
/** @file
*/
 
#ifndef __UARG_H__
#define __UARG_H__
#ifndef KERN_UARG_H_
#define KERN_UARG_H_
 
/** Structure passed to uinit kernel thread as argument. */
typedef struct uspace_arg {
/trunk/kernel/generic/include/proc/task.h
32,8 → 32,8
/** @file
*/
 
#ifndef __TASK_H__
#define __TASK_H__
#ifndef KERN_TASK_H_
#define KERN_TASK_H_
 
#include <typedefs.h>
#include <synch/spinlock.h>
107,6 → 107,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/proc/thread.h
32,8 → 32,8
/** @file
*/
 
#ifndef __THREAD_H__
#define __THREAD_H__
#ifndef KERN_THREAD_H_
#define KERN_THREAD_H_
 
#include <arch/proc/thread.h>
#include <synch/spinlock.h>
/trunk/kernel/generic/include/debug.h
32,8 → 32,8
/** @file
*/
 
#ifndef __DEBUG_H__
#define __DEBUG_H__
#ifndef KERN_DEBUG_H_
#define KERN_DEBUG_H_
 
#include <panic.h>
#include <arch/debug.h>
/trunk/kernel/generic/include/panic.h
32,8 → 32,8
/** @file
*/
 
#ifndef __PANIC_H__
#define __PANIC_H__
#ifndef KERN_PANIC_H_
#define KERN_PANIC_H_
 
#ifdef CONFIG_DEBUG
# define panic(format, ...) panic_printf("Kernel panic in %s() at %s on line %d: " format, __FUNCTION__, __FILE__, __LINE__, ##__VA_ARGS__);
/trunk/kernel/generic/include/userspace.h
32,8 → 32,8
/** @file
*/
 
#ifndef __USERSPACE_H__
#define __USERSPACE_H__
#ifndef KERN_USERSPACE_H_
#define KERN_USERSPACE_H_
 
#include <proc/thread.h>
#include <arch/types.h>
/trunk/kernel/generic/include/interrupt.h
32,8 → 32,8
/** @file
*/
 
#ifndef __INTERRUPT_H__
#define __INTERRUPT_H__
#ifndef KERN_INTERRUPT_H_
#define KERN_INTERRUPT_H_
 
#include <arch/interrupt.h>
#include <typedefs.h>
/trunk/kernel/generic/include/main/kinit.h
26,19 → 26,18
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup main
/** @addtogroup main
* @{
*/
/** @file
*/
 
#ifndef __KINIT_H__
#define __KINIT_H__
#ifndef KERN_KINIT_H_
#define KERN_KINIT_H_
 
extern void kinit(void *arg);
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/main/main.h
32,8 → 32,8
/** @file
*/
#ifndef __MAIN_H__
#define __MAIN_H__
#ifndef KERN_MAIN_H_
#define KERN_MAIN_H_
 
#include <typedefs.h>
 
/trunk/kernel/generic/include/main/version.h
26,19 → 26,19
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup main
/** @addtogroup main
* @{
*/
/** @file
*/
 
#ifndef __VERSION_H__
#define __VERSION_H__
#ifndef KERN_VERSION_H_
#define KERN_VERSION_H_
 
extern void version_print(void);
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/main/uinit.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup main
/** @addtogroup main
* @{
*/
/** @file
*/
 
#ifndef __UINIT_H__
#define __UINIT_H__
#ifndef KERN_UINIT_H_
#define KERN_UINIT_H_
 
#include <arch/types.h>
 
41,6 → 41,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/synch/futex.h
32,8 → 32,8
/** @file
*/
 
#ifndef __FUTEX_H__
#define __FUTEX_H__
#ifndef KERN_FUTEX_H_
#define KERN_FUTEX_H_
 
#include <arch/types.h>
#include <typedefs.h>
59,4 → 59,3
 
/** @}
*/
 
/trunk/kernel/generic/include/synch/condvar.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup sync
/** @addtogroup sync
* @{
*/
/** @file
*/
 
#ifndef __CONDVAR_H__
#define __CONDVAR_H__
#ifndef KERN_CONDVAR_H_
#define KERN_CONDVAR_H_
 
#include <arch/types.h>
#include <synch/waitq.h>
56,6 → 56,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/synch/rwlock.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup sync
/** @addtogroup sync
* @{
*/
/** @file
*/
 
#ifndef __RWLOCK_H__
#define __RWLOCK_H__
#ifndef KERN_RWLOCK_H_
#define KERN_RWLOCK_H_
 
#include <arch/types.h>
#include <typedefs.h>
74,7 → 74,5
 
#endif
 
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/synch/mutex.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup sync
/** @addtogroup sync
* @{
*/
/** @file
*/
 
#ifndef __MUTEX_H__
#define __MUTEX_H__
#ifndef KERN_MUTEX_H_
#define KERN_MUTEX_H_
 
#include <arch/types.h>
#include <typedefs.h>
59,6 → 59,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/synch/spinlock.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup sync
/** @addtogroup sync
* @{
*/
/** @file
*/
 
#ifndef __SPINLOCK_H__
#define __SPINLOCK_H__
#ifndef KERN_SPINLOCK_H_
#define KERN_SPINLOCK_H_
 
#include <arch/types.h>
#include <typedefs.h>
116,6 → 116,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/synch/semaphore.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup sync
/** @addtogroup sync
* @{
*/
/** @file
*/
 
#ifndef __SEMAPHORE_H__
#define __SEMAPHORE_H__
#ifndef KERN_SEMAPHORE_H_
#define KERN_SEMAPHORE_H_
 
#include <arch/types.h>
#include <typedefs.h>
58,7 → 58,5
 
#endif
 
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/synch/synch.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup sync
/** @addtogroup sync
* @{
*/
/** @file
*/
 
#ifndef __SYNCH_H__
#define __SYNCH_H__
#ifndef KERN_SYNCH_H_
#define KERN_SYNCH_H_
 
#define SYNCH_NO_TIMEOUT 0 /**< Request with no timeout. */
 
52,6 → 52,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/synch/waitq.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup sync
/** @addtogroup sync
* @{
*/
/** @file
*/
 
#ifndef __WAITQ_H__
#define __WAITQ_H__
#ifndef KERN_WAITQ_H_
#define KERN_WAITQ_H_
 
#include <arch/types.h>
#include <typedefs.h>
71,6 → 71,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/bitops.h
32,8 → 32,8
/** @file
*/
 
#ifndef _BITOPS_H_
#define _BITOPS_H_
#ifndef KERN_BITOPS_H_
#define KERN_BITOPS_H_
 
#include <typedefs.h>
 
/trunk/kernel/generic/include/putchar.h
32,8 → 32,8
/** @file
*/
 
#ifndef __PUTCHAR_H__
#define __PUTCHAR_H__
#ifndef KERN_PUTCHAR_H_
#define KERN_PUTCHAR_H_
 
extern void putchar(const char ch);
 
/trunk/kernel/generic/include/memstr.h
32,8 → 32,8
/** @file
*/
 
#ifndef __MEMSTR_H__
#define __MEMSTR_H__
#ifndef KERN_MEMSTR_H_
#define KERN_MEMSTR_H_
 
#include <typedefs.h>
#include <arch/types.h>
/trunk/kernel/generic/include/smp/smp.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup generic
/** @addtogroup generic
* @{
*/
/** @file
*/
 
#ifndef __SMP_H__
#define __SMP_H__
#ifndef KERN_SMP_H_
#define KERN_SMP_H_
 
#ifdef CONFIG_SMP
extern void smp_init(void);
43,6 → 43,5
 
#endif /* __SMP_H__ */
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/smp/ipi.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup generic
/** @addtogroup generic
* @{
*/
/** @file
*/
 
#ifndef __IPI_H__
#define __IPI_H__
#ifndef KERN_IPI_H_
#define KERN_IPI_H_
 
#ifdef CONFIG_SMP
extern void ipi_broadcast(int ipi);
44,6 → 44,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/ddi/ddi_arg.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericddi
/** @addtogroup genericddi
* @{
*/
/** @file
*/
 
#ifndef __DDI_ARG_H__
#define __DDI_ARG_H__
#ifndef KERN_DDI_ARG_H_
#define KERN_DDI_ARG_H_
 
/** Structure encapsulating arguments for SYS_MAP_PHYSMEM syscall. */
typedef struct {
53,6 → 53,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/ddi/ddi.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericddi
/** @addtogroup genericddi
* @{
*/
/** @file
*/
 
#ifndef __DDI_H__
#define __DDI_H__
#ifndef KERN_DDI_H_
#define KERN_DDI_H_
 
#include <ddi/ddi_arg.h>
#include <arch/types.h>
51,6 → 51,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/printf/printf_core.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup generic
/** @addtogroup generic
* @{
*/
/** @file
*/
 
#ifndef __PRINTF_CORE_H__
#define __PRINTF_CORE_H__
#ifndef KERN_PRINTF_CORE_H_
#define KERN_PRINTF_CORE_H_
 
#include <typedefs.h>
#include <arch/arg.h>
51,6 → 51,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/atomic.h
32,8 → 32,8
/** @file
*/
 
#ifndef __ATOMIC_H__
#define __ATOMIC_H__
#ifndef KERN_ATOMIC_H_
#define KERN_ATOMIC_H_
 
typedef struct atomic {
volatile long count;
/trunk/kernel/generic/include/console/chardev.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericconsole
/** @addtogroup genericconsole
* @{
*/
/** @file
*/
 
#ifndef __CHARDEV_H__
#define __CHARDEV_H__
#ifndef KERN_CHARDEV_H_
#define KERN_CHARDEV_H_
 
#include <typedefs.h>
#include <arch/types.h>
71,8 → 71,7
chardev_operations_t *op);
extern void chardev_push_character(chardev_t *chardev, uint8_t ch);
 
#endif /* __CHARDEV_H__ */
#endif /* KERN_CHARDEV_H_ */
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/console/klog.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericklog
/** @addtogroup genericklog
* @{
*/
/** @file
*/
 
#ifndef _KLOG_H_
#define _KLOG_H_
#ifndef KERN_KLOG_H_
#define KERN_KLOG_H_
 
void klog_init(void);
void klog_printf(const char *fmt, ...);
40,6 → 40,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/console/kconsole.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericconsole
/** @addtogroup genericconsole
* @{
*/
/** @file
*/
 
#ifndef __KCONSOLE_H__
#define __KCONSOLE_H__
#ifndef KERN_KCONSOLE_H_
#define KERN_KCONSOLE_H_
 
#include <typedefs.h>
#include <adt/list.h>
80,6 → 80,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/console/console.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericconsole
/** @addtogroup genericconsole
* @{
*/
/** @file
*/
 
#ifndef __CONSOLE_H__
#define __CONSOLE_H__
#ifndef KERN_CONSOLE_H_
#define KERN_CONSOLE_H_
 
#include <arch/types.h>
#include <typedefs.h>
49,8 → 49,7
extern void arch_grab_console(void);
extern void arch_release_console(void);
 
#endif /* __CHARDEV_H__ */
#endif /* KERN_CONSOLE_H_ */
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/console/cmd.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericconsole
/** @addtogroup genericconsole
* @{
*/
/** @file
*/
 
#ifndef __CMD_H__
#define __CMD_H__
#ifndef KERN_CMD_H_
#define KERN_CMD_H_
 
#include <typedefs.h>
 
42,6 → 42,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/test.h
32,8 → 32,8
/** @file
*/
 
#ifndef __TEST_H__
#define __TEST_H__
#ifndef KERN_TEST_H_
#define KERN_TEST_H_
 
extern void test(void);
 
/trunk/kernel/generic/include/security/cap.h
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup generic
/** @addtogroup generic
* @{
*/
/** @file
89,6 → 89,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/preemption.h
32,8 → 32,8
/** @file
*/
 
#ifndef __PREEMPTION_H__
#define __PREEMPTION_H__
#ifndef KERN_PREEMPTION_H_
#define KERN_PREEMPTION_H_
 
extern void preemption_disable(void);
extern void preemption_enable(void);
/trunk/kernel/generic/include/adt/list.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericadt
/** @addtogroup genericadt
* @{
*/
/** @file
*/
 
#ifndef __LIST_H__
#define __LIST_H__
#ifndef KERN_LIST_H_
#define KERN_LIST_H_
 
#include <arch/types.h>
#include <typedefs.h>
182,6 → 182,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/adt/bitmap.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericadt
/** @addtogroup genericadt
* @{
*/
/** @file
*/
 
#ifndef __BITMAP_H__
#define __BITMAP_H__
#ifndef KERN_BITMAP_H_
#define KERN_BITMAP_H_
 
#include <arch/types.h>
#include <typedefs.h>
52,6 → 52,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/adt/btree.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericadt
/** @addtogroup genericadt
* @{
*/
/** @file
*/
 
#ifndef __BTREE_H__
#define __BTREE_H__
#ifndef KERN_BTREE_H_
#define KERN_BTREE_H_
 
#include <arch/types.h>
#include <typedefs.h>
99,6 → 99,5
extern void btree_print(btree_t *t);
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/adt/fifo.h
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericadt
/** @addtogroup genericadt
* @{
*/
/** @file
42,8 → 42,8
* and use'.
*/
 
#ifndef __FIFO_H__
#define __FIFO_H__
#ifndef KERN_FIFO_H_
#define KERN_FIFO_H_
 
#include <typedefs.h>
#include <mm/slab.h>
118,6 → 118,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/mm/page.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericmm
/** @addtogroup genericmm
* @{
*/
/** @file
*/
 
#ifndef __PAGE_H__
#define __PAGE_H__
#ifndef KERN_PAGE_H_
#define KERN_PAGE_H_
 
#include <arch/mm/asid.h>
#include <arch/types.h>
97,6 → 97,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/mm/asid.h
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericmm
/** @addtogroup genericmm
* @{
*/
/** @file
37,8 → 37,8
* Address Space IDentifiers (ASIDs).
*/
 
#ifndef __ASID_H__
#define __ASID_H__
#ifndef KERN_ASID_H_
#define KERN_ASID_H_
 
#ifndef __ASM__
 
83,7 → 83,5
 
#endif
 
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/mm/slab.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericmm
/** @addtogroup genericmm
* @{
*/
/** @file
*/
 
#ifndef __SLAB_H__
#define __SLAB_H__
#ifndef KERN_SLAB_H_
#define KERN_SLAB_H_
 
#include <adt/list.h>
#include <synch/spinlock.h>
135,6 → 135,5
extern void free(void *obj);
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/mm/tlb.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericmm
/** @addtogroup genericmm
* @{
*/
/** @file
*/
 
#ifndef __TLB_H__
#define __TLB_H__
#ifndef KERN_TLB_H_
#define KERN_TLB_H_
 
#include <arch/mm/asid.h>
#include <arch/types.h>
75,7 → 75,6
# define tlb_shootdown_ipi_recv()
#endif /* CONFIG_SMP */
 
 
/* Export TLB interface that each architecture must implement. */
extern void tlb_arch_init(void);
extern void tlb_print(void);
86,6 → 85,5
extern void tlb_invalidate_pages(asid_t asid, uintptr_t page, count_t cnt);
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/mm/as.h
32,8 → 32,8
/** @file
*/
 
#ifndef __AS_H__
#define __AS_H__
#ifndef KERN_AS_H_
#define KERN_AS_H_
 
/** Address space area flags. */
#define AS_AREA_READ 1
/trunk/kernel/generic/include/mm/buddy.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericmm
/** @addtogroup genericmm
* @{
*/
/** @file
*/
 
#ifndef __BUDDY_H__
#define __BUDDY_H__
#ifndef KERN_BUDDY_H_
#define KERN_BUDDY_H_
 
#include <arch/types.h>
#include <typedefs.h>
55,10 → 55,10
};
 
struct buddy_system {
uint8_t max_order; /**< Maximal order of block which can be stored by buddy system. */
uint8_t max_order; /**< Maximal order of block which can be stored by buddy system. */
link_t *order;
buddy_system_operations_t *op;
void *data; /**< Pointer to be used by the implementation. */
void *data; /**< Pointer to be used by the implementation. */
};
 
extern void buddy_system_create(buddy_system_t *b,
73,6 → 73,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/context.h
32,8 → 32,8
/** @file
*/
 
#ifndef __CONTEXT_H__
#define __CONTEXT_H__
#ifndef KERN_CONTEXT_H_
#define KERN_CONTEXT_H_
 
#include <arch/types.h>
#include <typedefs.h>
/trunk/kernel/generic/include/stdarg.h
32,14 → 32,13
/** @file
*/
 
 
/*
* Variable argument list manipulation macros
* for all architectures with compiler support for __builtin_va_*.
*/
#ifndef __STDARG_H__
#define __STDARG_H__
#ifndef KERN_STDARG_H_
#define KERN_STDARG_H_
 
typedef __builtin_va_list va_list;
 
/trunk/kernel/generic/include/syscall/copy.h
32,8 → 32,8
/** @file
*/
 
#ifndef __COPY_H__
#define __COPY_H__
#ifndef KERN_COPY_H_
#define KERN_COPY_H_
 
#include <typedefs.h>
 
/trunk/kernel/generic/include/syscall/sysarg64.h
35,8 → 35,8
* @brief Wrapper for explicit 64-bit arguments passed to syscalls.
*/
 
#ifndef __SYSARG64_H__
#define __SYSARG64_H__
#ifndef KERN_SYSARG64_H_
#define KERN_SYSARG64_H_
 
typedef struct {
unsigned long long value;
/trunk/kernel/generic/include/ipc/sysipc.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericipc
/** @addtogroup genericipc
* @{
*/
/** @file
*/
 
#ifndef __SYSIPC_H__
#define __SYSIPC_H__
#ifndef KERN_SYSIPC_H_
#define KERN_SYSIPC_H_
 
#include <ipc/ipc.h>
#include <ipc/irq.h>
58,6 → 58,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/ipc/ipc.h
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericipc
/** @addtogroup genericipc
* @{
*/
/** @file
166,7 → 166,7
typedef struct {
unative_t args[IPC_CALL_LEN];
phone_t *phone;
}ipc_data_t;
} ipc_data_t;
 
struct answerbox_s {
SPINLOCK_DECLARE(lock);
217,7 → 217,7
unative_t private; /**< Private data to internal IPC */
 
ipc_data_t data; /**< Data passed from/to userspace */
}call_t;
} call_t;
 
extern void ipc_init(void);
extern call_t * ipc_wait_for_call(answerbox_t *box, uint32_t usec, int flags);
/trunk/kernel/generic/include/ipc/irq.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericipc
/** @addtogroup genericipc
* @{
*/
/** @file
*/
 
#ifndef __IRQ_H__
#define __IRQ_H__
#ifndef KERN_IRQ_H_
#define KERN_IRQ_H_
 
/** Maximum length of IPC IRQ program */
#define IRQ_MAX_PROG_SIZE 10
88,6 → 88,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/ipc/ipcrsc.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericipc
/** @addtogroup genericipc
* @{
*/
/** @file
*/
 
#ifndef __IPCRSC_H__
#define __IPCRSC_H__
#ifndef KERN_IPCRSC_H_
#define KERN_IPCRSC_H_
 
call_t * get_call(unative_t callid);
int phone_alloc(void);
42,6 → 42,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/include/errno.h
32,8 → 32,8
/** @file
*/
 
#ifndef __ERRNO_H__
#define __ERRNO_H__
#ifndef KERN_ERRNO_H_
#define KERN_ERRNO_H_
 
/* 1-255 are kernel error codes, 256-512 are user error codes */
 
/trunk/kernel/generic/include/sort.h
32,8 → 32,8
/** @file
*/
 
#ifndef __SORT_H__
#define __SORT_H__
#ifndef KERN_SORT_H_
#define KERN_SORT_H_
 
#include <arch/types.h>
 
/trunk/kernel/generic/src/synch/rwlock.c
206,35 → 206,35
rc = _mutex_lock_timeout(&rwl->exclusive, usec, flags);
switch (rc) {
case ESYNCH_WOULD_BLOCK:
/*
* release_spinlock() wasn't called
*/
thread_register_call_me(NULL, NULL);
spinlock_unlock(&rwl->lock);
case ESYNCH_TIMEOUT:
case ESYNCH_INTERRUPTED:
/*
* The sleep timed out.
* We just restore interrupt priority level.
*/
case ESYNCH_OK_BLOCKED:
/*
* We were woken with rwl->readers_in already incremented.
* Note that this arrangement avoids race condition between
* two concurrent readers. (Race is avoided if 'exclusive' is
* locked at the same time as 'readers_in' is incremented.
* Same time means both events happen atomically when
* rwl->lock is held.)
*/
interrupts_restore(ipl);
break;
case ESYNCH_OK_ATOMIC:
panic("_mutex_lock_timeout()==ESYNCH_OK_ATOMIC\n");
break;
default:
panic("invalid ESYNCH\n");
break;
case ESYNCH_WOULD_BLOCK:
/*
* release_spinlock() wasn't called
*/
thread_register_call_me(NULL, NULL);
spinlock_unlock(&rwl->lock);
case ESYNCH_TIMEOUT:
case ESYNCH_INTERRUPTED:
/*
* The sleep timed out.
* We just restore interrupt priority level.
*/
case ESYNCH_OK_BLOCKED:
/*
* We were woken with rwl->readers_in already incremented.
* Note that this arrangement avoids race condition between
* two concurrent readers. (Race is avoided if 'exclusive' is
* locked at the same time as 'readers_in' is incremented.
* Same time means both events happen atomically when
* rwl->lock is held.)
*/
interrupts_restore(ipl);
break;
case ESYNCH_OK_ATOMIC:
panic("_mutex_lock_timeout()==ESYNCH_OK_ATOMIC\n");
break;
default:
panic("invalid ESYNCH\n");
break;
}
return rc;
}
/trunk/kernel/generic/src/debug/symtab.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericdebug
/** @addtogroup genericdebug
* @{
*/
 
197,6 → 197,5
}
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/src/ddi/ddi.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericddi
/** @addtogroup genericddi
* @{
*/
205,6 → 205,5
return 0;
}
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/src/printf/printf.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup generic
/** @addtogroup generic
* @{
*/
/** @file
48,7 → 48,5
return ret;
}
 
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/src/printf/snprintf.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup generic
/** @addtogroup generic
* @{
*/
/** @file
48,6 → 48,6
return ret;
}
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/src/printf/sprintf.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup generic
/** @addtogroup generic
* @{
*/
/** @file
47,6 → 47,5
return ret;
}
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/src/printf/vprintf.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup generic
/** @addtogroup generic
* @{
*/
/** @file
53,8 → 53,5
 
}
 
 
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/src/printf/vsnprintf.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup generic
/** @addtogroup generic
* @{
*/
/** @file
100,6 → 100,5
return printf_core(fmt, &ps, ap);
}
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/src/printf/printf_core.c
27,7 → 27,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup generic
/** @addtogroup generic
* @{
*/
/**
496,12 → 496,12
do {
++i;
switch (c = fmt[i]) {
case '#': flags |= __PRINTF_FLAG_PREFIX; break;
case '-': flags |= __PRINTF_FLAG_LEFTALIGNED; break;
case '+': flags |= __PRINTF_FLAG_SHOWPLUS; break;
case ' ': flags |= __PRINTF_FLAG_SPACESIGN; break;
case '0': flags |= __PRINTF_FLAG_ZEROPADDED; break;
default: end = 1;
case '#': flags |= __PRINTF_FLAG_PREFIX; break;
case '-': flags |= __PRINTF_FLAG_LEFTALIGNED; break;
case '+': flags |= __PRINTF_FLAG_SHOWPLUS; break;
case ' ': flags |= __PRINTF_FLAG_SPACESIGN; break;
case '0': flags |= __PRINTF_FLAG_ZEROPADDED; break;
default: end = 1;
};
} while (end == 0);
545,29 → 545,29
}
 
switch (fmt[i++]) {
/** TODO: unimplemented qualifiers:
* t ptrdiff_t - ISO C 99
*/
case 'h': /* char or short */
qualifier = PrintfQualifierShort;
if (fmt[i] == 'h') {
i++;
qualifier = PrintfQualifierByte;
}
break;
case 'l': /* long or long long*/
qualifier = PrintfQualifierLong;
if (fmt[i] == 'l') {
i++;
qualifier = PrintfQualifierLongLong;
}
break;
case 'z': /* unative_t */
qualifier = PrintfQualifierNative;
break;
default:
qualifier = PrintfQualifierInt; /* default type */
--i;
/** TODO: unimplemented qualifiers:
* t ptrdiff_t - ISO C 99
*/
case 'h': /* char or short */
qualifier = PrintfQualifierShort;
if (fmt[i] == 'h') {
i++;
qualifier = PrintfQualifierByte;
}
break;
case 'l': /* long or long long*/
qualifier = PrintfQualifierLong;
if (fmt[i] == 'l') {
i++;
qualifier = PrintfQualifierLongLong;
}
break;
case 'z': /* unative_t */
qualifier = PrintfQualifierNative;
break;
default:
qualifier = PrintfQualifierInt; /* default type */
--i;
}
base = 10;
574,68 → 574,68
 
switch (c = fmt[i]) {
 
/*
* String and character conversions.
*/
case 's':
if ((retval = print_string(va_arg(ap, char*), width, precision, flags, ps)) < 0) {
counter = -counter;
goto out;
};
/*
* String and character conversions.
*/
case 's':
if ((retval = print_string(va_arg(ap, char*), width, precision, flags, ps)) < 0) {
counter = -counter;
goto out;
};
 
counter += retval;
j = i + 1;
goto next_char;
case 'c':
c = va_arg(ap, unsigned int);
if ((retval = print_char(c, width, flags, ps)) < 0) {
counter = -counter;
goto out;
};
counter += retval;
j = i + 1;
goto next_char;
case 'c':
c = va_arg(ap, unsigned int);
if ((retval = print_char(c, width, flags, ps)) < 0) {
counter = -counter;
goto out;
};
counter += retval;
j = i + 1;
goto next_char;
counter += retval;
j = i + 1;
goto next_char;
 
/*
* Integer values
*/
case 'P': /* pointer */
flags |= __PRINTF_FLAG_BIGCHARS;
case 'p':
flags |= __PRINTF_FLAG_PREFIX;
base = 16;
qualifier = PrintfQualifierPointer;
break;
case 'b':
base = 2;
break;
case 'o':
base = 8;
break;
case 'd':
case 'i':
flags |= __PRINTF_FLAG_SIGNED;
case 'u':
break;
case 'X':
flags |= __PRINTF_FLAG_BIGCHARS;
case 'x':
base = 16;
break;
/* percentile itself */
case '%':
j = i;
goto next_char;
/*
* Bad formatting.
*/
default:
/* Unknown format
* now, the j is index of '%' so we will
* print whole bad format sequence
*/
goto next_char;
/*
* Integer values
*/
case 'P': /* pointer */
flags |= __PRINTF_FLAG_BIGCHARS;
case 'p':
flags |= __PRINTF_FLAG_PREFIX;
base = 16;
qualifier = PrintfQualifierPointer;
break;
case 'b':
base = 2;
break;
case 'o':
base = 8;
break;
case 'd':
case 'i':
flags |= __PRINTF_FLAG_SIGNED;
case 'u':
break;
case 'X':
flags |= __PRINTF_FLAG_BIGCHARS;
case 'x':
base = 16;
break;
/* percentile itself */
case '%':
j = i;
goto next_char;
/*
* Bad formatting.
*/
default:
/* Unknown format
* now, j is index of '%' so we will
* print whole bad format sequence
*/
goto next_char;
}
642,37 → 642,37
/* Print integers */
/* print number */
switch (qualifier) {
case PrintfQualifierByte:
size = sizeof(unsigned char);
number = (uint64_t)va_arg(ap, unsigned int);
break;
case PrintfQualifierShort:
size = sizeof(unsigned short);
number = (uint64_t)va_arg(ap, unsigned int);
break;
case PrintfQualifierInt:
size = sizeof(unsigned int);
number = (uint64_t)va_arg(ap, unsigned int);
break;
case PrintfQualifierLong:
size = sizeof(unsigned long);
number = (uint64_t)va_arg(ap, unsigned long);
break;
case PrintfQualifierLongLong:
size = sizeof(unsigned long long);
number = (uint64_t)va_arg(ap, unsigned long long);
break;
case PrintfQualifierPointer:
size = sizeof(void *);
number = (uint64_t)(unsigned long)va_arg(ap, void *);
break;
case PrintfQualifierNative:
size = sizeof(unative_t);
number = (uint64_t)va_arg(ap, unative_t);
break;
default: /* Unknown qualifier */
counter = -counter;
goto out;
case PrintfQualifierByte:
size = sizeof(unsigned char);
number = (uint64_t)va_arg(ap, unsigned int);
break;
case PrintfQualifierShort:
size = sizeof(unsigned short);
number = (uint64_t)va_arg(ap, unsigned int);
break;
case PrintfQualifierInt:
size = sizeof(unsigned int);
number = (uint64_t)va_arg(ap, unsigned int);
break;
case PrintfQualifierLong:
size = sizeof(unsigned long);
number = (uint64_t)va_arg(ap, unsigned long);
break;
case PrintfQualifierLongLong:
size = sizeof(unsigned long long);
number = (uint64_t)va_arg(ap, unsigned long long);
break;
case PrintfQualifierPointer:
size = sizeof(void *);
number = (uint64_t)(unsigned long)va_arg(ap, void *);
break;
case PrintfQualifierNative:
size = sizeof(unative_t);
number = (uint64_t)va_arg(ap, unative_t);
break;
default: /* Unknown qualifier */
counter = -counter;
goto out;
}
if (flags & __PRINTF_FLAG_SIGNED) {
718,7 → 718,5
return counter;
}
 
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/src/printf/vsprintf.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup generic
/** @addtogroup generic
* @{
*/
/** @file
39,7 → 39,5
return vsnprintf(str, (size_t)-1, fmt, ap);
}
 
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/src/console/console.c
27,7 → 27,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericconsole
/** @addtogroup genericconsole
* @{
*/
/** @file
165,6 → 165,5
stdout->op->write(stdout, c);
}
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/src/console/cmd.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericconsole
/** @addtogroup genericconsole
* @{
*/
 
806,6 → 806,5
return 1;
}
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/src/console/chardev.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericconsole
/** @addtogroup genericconsole
* @{
*/
/** @file
74,6 → 74,5
spinlock_unlock(&chardev->lock);
}
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/src/console/klog.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericklog
/** @addtogroup genericklog
* @{
*/
/** @file
105,6 → 105,5
va_end(args);
}
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/src/console/kconsole.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup genericconsole
/** @addtogroup genericconsole
* @{
*/
 
626,6 → 626,5
return found_start;
}
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/src/proc/scheduler.c
374,12 → 374,12
after_thread_ran();
 
switch (THREAD->state) {
case Running:
case Running:
spinlock_unlock(&THREAD->lock);
thread_ready(THREAD);
break;
 
case Exiting:
case Exiting:
repeat:
if (THREAD->detached) {
thread_destroy(THREAD);
405,7 → 405,7
}
break;
case Sleeping:
case Sleeping:
/*
* Prefer the thread after it's woken up.
*/
430,7 → 430,7
 
break;
 
default:
default:
/*
* Entering state is unexpected.
*/
/trunk/kernel/generic/src/security/cap.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup generic
/** @addtogroup generic
* @{
*/
 
177,6 → 177,6
return 0;
}
 
/** @}
/** @}
*/
 
/trunk/kernel/generic/src/syscall/copy.c
105,7 → 105,7
int rc;
ASSERT(THREAD);
ASSERT(!THREAD->in_copy_from_uspace);
ASSERT(!THREAD->in_copy_to_uspace);
if (!KERNEL_ADDRESS_SPACE_SHADOWED) {
if (overlaps((uintptr_t) uspace_dst, size,
118,11 → 118,11
}
ipl = interrupts_disable();
THREAD->in_copy_from_uspace = true;
THREAD->in_copy_to_uspace = true;
rc = memcpy_to_uspace(uspace_dst, src, size);
 
THREAD->in_copy_from_uspace = false;
THREAD->in_copy_to_uspace = false;
 
interrupts_restore(ipl);
return !rc ? EPERM : 0;
/trunk/kernel/generic/src/ipc/ipcrsc.c
96,7 → 96,7
* - The phone is disconnected. EHANGUP response code is sent
* to the calling task. All new calls through this phone
* get a EHUNGUP error code, the task is expected to
* send an sys_ipc_hangup after cleaning up it's internal structures.
* send an sys_ipc_hangup after cleaning up its internal structures.
*
* Call forwarding
*
/trunk/kernel/arch/xen32/include/types.h
32,8 → 32,8
/** @file
*/
 
#ifndef __TYPES_H__
#define __TYPES_H__
#ifndef KERN_xen32_TYPES_H_
#define KERN_xen32_TYPES_H_
 
#define NULL 0
 
/trunk/kernel/arch/xen32/include/pm.h
32,8 → 32,8
/** @file
*/
 
#ifndef __PM_H__
#define __PM_H__
#ifndef KERN_xen32_PM_H_
#define KERN_xen32_PM_H_
 
#define IDT_ITEMS 64
#define GDT_ITEMS 7
/trunk/kernel/arch/xen32/include/boot/boot.h
32,8 → 32,8
/** @file
*/
 
#ifndef __xen32_BOOT_H__
#define __xen32_BOOT_H__
#ifndef KERN_xen32_BOOT_H_
#define KERN_xen32_BOOT_H_
 
#define GUEST_CMDLINE 1024
#define VIRT_CPUS 32
/trunk/kernel/arch/xen32/include/asm.h
34,8 → 34,8
/** @file
*/
 
#ifndef __xen32_ASM_H__
#define __xen32_ASM_H__
#ifndef KERN_xen32_ASM_H_
#define KERN_xen32_ASM_H_
 
#include <arch/pm.h>
#include <arch/types.h>
/trunk/kernel/arch/xen32/include/hypercall.h
26,16 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
#ifndef __xen32_HYPERCALL_H__
#define __xen32_HYPERCALL_H__
#ifndef KERN_xen32_HYPERCALL_H_
#define KERN_xen32_HYPERCALL_H_
 
#include <arch/types.h>
#include <macros.h>
 
 
typedef uint16_t domid_t;
 
 
typedef struct {
uint8_t vector; /**< Exception vector */
uint8_t flags; /**< 0-3: privilege level; 4: clear event enable */
/trunk/kernel/arch/xen32/include/mm/frame.h
32,8 → 32,8
/** @file
*/
 
#ifndef __xen32_FRAME_H__
#define __xen32_FRAME_H__
#ifndef KERN_xen32_FRAME_H_
#define KERN_xen32_FRAME_H_
 
#define FRAME_WIDTH 12 /* 4K */
#define FRAME_SIZE (1 << FRAME_WIDTH)
/trunk/kernel/arch/xen32/include/mm/memory_init.h
33,8 → 33,8
* @ingroup xen32mm
*/
 
#ifndef __xen32_MEMORY_INIT_H__
#define __xen32_MEMORY_INIT_H__
#ifndef KERN_xen32_MEMORY_INIT_H_
#define KERN_xen32_MEMORY_INIT_H_
 
#include <typedefs.h>
 
/trunk/kernel/arch/xen32/include/mm/page.h
32,8 → 32,8
/** @file
*/
 
#ifndef __xen32_PAGE_H__
#define __xen32_PAGE_H__
#ifndef KERN_xen32_PAGE_H_
#define KERN_xen32_PAGE_H_
 
#include <arch/mm/frame.h>
 
/trunk/kernel/arch/xen32/include/mm/asid.h
39,8 → 39,8
* interface.
*/
 
#ifndef __xen32_ASID_H__
#define __xen32_ASID_H__
#ifndef KERN_xen32_ASID_H_
#define KERN_xen32_ASID_H_
 
typedef int asid_t;
 
/trunk/kernel/arch/xen32/include/mm/tlb.h
32,8 → 32,8
/** @file
*/
 
#ifndef __xen32_TLB_H__
#define __xen32_TLB_H__
#ifndef KERN_xen32_TLB_H_
#define KERN_xen32_TLB_H_
 
#define tlb_arch_init()
#define tlb_print()
/trunk/kernel/arch/xen32/include/mm/as.h
32,8 → 32,8
/** @file
*/
 
#ifndef __xen32_AS_H__
#define __xen32_AS_H__
#ifndef KERN_xen32_AS_H_
#define KERN_xen32_AS_H_
 
#define KERNEL_ADDRESS_SPACE_SHADOWED_ARCH 0
 
/trunk/kernel/arch/xen32/include/drivers/xconsole.h
32,8 → 32,8
/** @file
*/
 
#ifndef __XCONSOLE_H__
#define __XCONSOLE_H__
#ifndef KERN_xen32_XCONSOLE_H_
#define KERN_xen32_XCONSOLE_H_
 
#include <arch/types.h>
 
/trunk/kernel/arch/xen32/src/mm/memory_init.c
48,6 → 48,5
printf("Xen memory: %p size: %d (reserved %d)\n", PFN2ADDR(meminfo.start), PFN2ADDR(meminfo.size - meminfo.reserved), PFN2ADDR(meminfo.reserved));
}
 
 
/** @}
*/
/trunk/kernel/arch/xen32/src/interrupt.c
206,4 → 206,3
 
/** @}
*/
 
/trunk/kernel/arch/sparc64/include/context_offset.h
19,4 → 19,3
#define OFFSET_L6 0x80
#define OFFSET_L7 0x88
#define OFFSET_CLEANWIN 0x98
 
/trunk/kernel/arch/sparc64/include/atomic.h
50,20 → 50,15
static inline long atomic_add(atomic_t *val, int i)
{
uint64_t a, b;
volatile uint64_t x = (uint64_t) &val->count;
 
__asm__ volatile (
"0:\n"
"ldx %0, %1\n"
"add %1, %3, %2\n"
"casx %0, %1, %2\n"
"cmp %1, %2\n"
"bne 0b\n" /* The operation failed and must be attempted again if a != b. */
"nop\n"
: "=m" (*((uint64_t *)x)), "=r" (a), "=r" (b)
: "r" (i)
);
do {
volatile uintptr_t x = (uint64_t) &val->count;
 
a = *((uint64_t *) x);
b = a + i;
__asm__ volatile ("casx %0, %1, %2\n": "+m" (*((uint64_t *)x)), "+r" (a), "+r" (b));
} while (a != b);
 
return a;
}
 
/trunk/kernel/arch/sparc64/include/trap/trap_table.h
106,4 → 106,3
 
/** @}
*/
 
/trunk/kernel/arch/sparc64/Makefile.inc
77,7 → 77,6
DEFS += -DKBD_ADDR_OVRD=0x1fff13083f8ULL
DEFS += -DFB_INVERT_COLORS
endif
 
 
/trunk/kernel/arch/sparc64/src/console.c
115,5 → 115,6
z8530_release();
#endif
}
 
/** @}
*/
/trunk/kernel/arch/sparc64/src/trap/trap.c
53,4 → 53,3
 
/** @}
*/
 
/trunk/kernel/arch/sparc64/src/trap/syscall.c
42,10 → 42,7
 
unative_t syscall(int n, istate_t *istate, unative_t a1, unative_t a2, unative_t a3, unative_t a4)
{
if (n >= TT_TRAP_INSTRUCTION(0) && n <= TT_TRAP_INSTRUCTION_LAST)
return syscall_table[n - TT_TRAP_INSTRUCTION(0)](a1, a2, a3, a4);
else
panic("Undefined syscall %d\n", n - TT_TRAP_INSTRUCTION(0));
return syscall_handler(a1, a2, a3, a4, n - TT_TRAP_INSTRUCTION(0));
}
 
/** @}
/trunk/kernel/arch/sparc64/src/mm/as.c
62,4 → 62,3
 
/** @}
*/
 
/trunk/kernel/arch/sparc64/src/mm/page.c
90,7 → 90,7
if (size <= FRAME_SIZE)
order = 0;
else
order = (fnzb32(size - 1) + 1) - FRAME_WIDTH;
order = (fnzb64(size - 1) + 1) - FRAME_WIDTH;
 
/*
* Use virtual addresses that are beyond the limit of physical memory.
/trunk/kernel/arch/ia64/include/interrupt.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64interrupt
/** @addtogroup ia64interrupt
* @{
*/
/** @file
*/
 
#ifndef __ia64_INTERRUPT_H__
#define __ia64_INTERRUPT_H__
#ifndef KERN_ia64_INTERRUPT_H_
#define KERN_ia64_INTERRUPT_H_
 
#include <typedefs.h>
#include <arch/types.h>
123,7 → 123,7
{
return istate->cr_iip;
}
#include <panic.h>
 
static inline int istate_from_uspace(istate_t *istate)
{
return (istate->cr_iip)<0xe000000000000000ULL;
139,10 → 139,7
extern void virtual_interrupt(uint64_t irq, void *param);
extern void disabled_fp_register(uint64_t vector, istate_t *istate);
 
 
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/include/fpu_context.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64
/** @addtogroup ia64
* @{
*/
/** @file
*/
 
#ifndef __ia64_FPU_CONTEXT_H__
#define __ia64_FPU_CONTEXT_H__
#ifndef KERN_ia64_FPU_CONTEXT_H_
#define KERN_ia64_FPU_CONTEXT_H_
 
#define ARCH_HAS_FPU 1
#define FPU_CONTEXT_ALIGN 16
46,9 → 46,7
__r128 fr[FRS];
};
 
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/include/byteorder.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64
/** @addtogroup ia64
* @{
*/
/** @file
*/
 
#ifndef __ia64_BYTEORDER_H__
#define __ia64_BYTEORDER_H__
#ifndef KERN_ia64_BYTEORDER_H_
#define KERN_ia64_BYTEORDER_H_
 
/* IA-64 is little-endian */
#define unative_t_le2host(n) (n)
41,6 → 41,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/include/ski/ski.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64
/** @addtogroup ia64
* @{
*/
/** @file
*/
 
#ifndef __SKI_H__
#define __SKI_H__
#ifndef KERN_ia64_SKI_H_
#define KERN_ia64_SKI_H_
 
#include <arch/types.h>
#include <console/console.h>
51,6 → 51,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/include/types.h
32,8 → 32,8
/** @file
*/
 
#ifndef __TYPES_H__
#define __TYPES_H__
#ifndef KERN_ia64_TYPES_H_
#define KERN_ia64_TYPES_H_
 
#define NULL 0
 
70,4 → 70,3
 
/** @}
*/
 
/trunk/kernel/arch/ia64/include/stack.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64
/** @addtogroup ia64
* @{
*/
/** @file
*/
 
#ifndef __ia64_STACK_H__
#define __ia64_STACK_H__
#ifndef KERN_ia64_STACK_H_
#define KERN_ia64_STACK_H_
 
#define STACK_ITEM_SIZE 8
#define STACK_ALIGNMENT 16
42,6 → 42,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/include/elf.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64
/** @addtogroup ia64
* @{
*/
/** @file
*/
 
#ifndef __ia64_ELF_H__
#define __ia64_ELF_H__
#ifndef KERN_ia64_ELF_H_
#define KERN_ia64_ELF_H_
 
#define ELF_MACHINE EM_IA_64
#define ELF_DATA_ENCODING ELFDATA2LSB
41,6 → 41,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/include/memstr.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64
/** @addtogroup ia64
* @{
*/
/** @file
*/
 
#ifndef __ia64_MEMSTR_H__
#define __ia64_MEMSTR_H__
#ifndef KERN_ia64_MEMSTR_H_
#define KERN_ia64_MEMSTR_H_
 
#define memcpy(dst, src, cnt) __builtin_memcpy((dst), (src), (cnt))
 
44,6 → 44,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/include/arg.h
26,19 → 26,18
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64
/** @addtogroup ia64
* @{
*/
/** @file
*/
 
#ifndef __ia64_ARG_H__
#define __ia64_ARG_H__
#ifndef KERN_ia64_ARG_H_
#define KERN_ia64_ARG_H_
 
#include <stdarg.h>
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/include/smp/atomic.h
File deleted
/trunk/kernel/arch/ia64/include/atomic.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64
/** @addtogroup ia64
* @{
*/
/** @file
*/
 
#ifndef __ia64_ATOMIC_H__
#define __ia64_ATOMIC_H__
#ifndef KERN_ia64_ATOMIC_H_
#define KERN_ia64_ATOMIC_H_
 
/** Atomic addition.
*
62,6 → 62,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/include/proc/task.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64proc
/** @addtogroup ia64proc
* @{
*/
/** @file
*/
 
#ifndef __ia64_TASK_H__
#define __ia64_TASK_H__
#ifndef KERN_ia64_TASK_H_
#define KERN_ia64_TASK_H_
 
typedef struct {
} task_arch_t;
43,6 → 43,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/include/asm.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64
/** @addtogroup ia64
* @{
*/
/** @file
*/
 
#ifndef __ia64_ASM_H__
#define __ia64_ASM_H__
#ifndef KERN_ia64_ASM_H_
#define KERN_ia64_ASM_H_
 
#include <config.h>
#include <arch/types.h>
281,6 → 281,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/include/mm/frame.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64mm
/** @addtogroup ia64mm
* @{
*/
/** @file
*/
 
#ifndef __ia64_FRAME_H__
#define __ia64_FRAME_H__
#ifndef KERN_ia64_FRAME_H_
#define KERN_ia64_FRAME_H_
 
#define FRAME_WIDTH 14 /* 16K */
#define FRAME_SIZE (1<<FRAME_WIDTH)
50,6 → 50,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/include/mm/memory_init.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64mm
/** @addtogroup ia64mm
* @{
*/
/** @file
*/
 
#ifndef __ia64_MEMORY_INIT_H__
#define __ia64_MEMORY_INIT_H__
#ifndef KERN_ia64_MEMORY_INIT_H_
#define KERN_ia64_MEMORY_INIT_H_
 
#include <config.h>
 
41,6 → 41,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/include/mm/page.h
33,8 → 33,8
/** @file
*/
 
#ifndef __ia64_PAGE_H__
#define __ia64_PAGE_H__
#ifndef KERN_ia64_PAGE_H_
#define KERN_ia64_PAGE_H_
 
#include <arch/mm/frame.h>
 
/trunk/kernel/arch/ia64/include/mm/asid.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64mm
/** @addtogroup ia64mm
* @{
*/
/** @file
*/
 
#ifndef __ia64_ASID_H__
#define __ia64_ASID_H__
#ifndef KERN_ia64_ASID_H_
#define KERN_ia64_ASID_H_
 
#ifndef __ASM__
 
62,6 → 62,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/include/mm/tlb.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64mm
/** @addtogroup ia64mm
* @{
*/
/** @file
*/
 
#ifndef __ia64_TLB_H__
#define __ia64_TLB_H__
#ifndef KERN_ia64_TLB_H_
#define KERN_ia64_TLB_H_
 
#define tlb_arch_init()
#define tlb_print()
100,6 → 100,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/include/mm/vhpt.h
1,41 → 1,40
/*
* Copyright (C) 2006 Jakub Vana
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* - The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* Copyright (C) 2006 Jakub Vana
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* - The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64mm
/** @addtogroup ia64mm
* @{
*/
/** @file
*/
#ifndef KERN_ia64_VHPT_H_
#define KERN_ia64_VHPT_H_
 
#ifndef __ia64_VHPT_H__
#define __ia64_VHPT_H__
 
#include <arch/mm/tlb.h>
#include <arch/mm/page.h>
 
55,10 → 54,7
void vhpt_invalidate_all(void);
void vhpt_invalidate_asid(asid_t asid);
 
 
#endif
 
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/include/mm/as.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64mm
/** @addtogroup ia64mm
* @{
*/
/** @file
*/
 
#ifndef __ia64_AS_H__
#define __ia64_AS_H__
#ifndef KERN_ia64_AS_H_
#define KERN_ia64_AS_H_
 
#define KERNEL_ADDRESS_SPACE_SHADOWED_ARCH 0
 
48,6 → 48,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/include/context.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64
/** @addtogroup ia64
* @{
*/
/** @file
*/
 
#ifndef __ia64_CONTEXT_H__
#define __ia64_CONTEXT_H__
#ifndef KERN_ia64_CONTEXT_H_
#define KERN_ia64_CONTEXT_H_
 
#include <arch/types.h>
#include <arch/register.h>
132,6 → 132,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/include/register.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64
/** @addtogroup ia64
* @{
*/
/** @file
*/
 
#ifndef __ia64_REGISTER_H__
#define __ia64_REGISTER_H__
#ifndef KERN_ia64_REGISTER_H_
#define KERN_ia64_REGISTER_H_
 
#define CR_IVR_MASK 0xf
#define PSR_IC_MASK 0x2000
274,6 → 274,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/include/debug.h
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64debug ia64
/** @addtogroup ia64debug ia64
* @ingroup debug
* @{
*/
33,11 → 33,10
/** @file
*/
 
#ifndef __ia64_DEBUG_H__
#define __ia64_DEBUG_H__
#ifndef KERN_ia64_DEBUG_H_
#define KERN_ia64_DEBUG_H_
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/include/barrier.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64
/** @addtogroup ia64
* @{
*/
/** @file
*/
 
#ifndef __ia64_BARRIER_H__
#define __ia64_BARRIER_H__
#ifndef KERN_ia64_BARRIER_H_
#define KERN_ia64_BARRIER_H_
 
/*
* TODO: Implement true IA-64 memory barriers for macros below.
50,6 → 50,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/include/pal/pal.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64
/** @addtogroup ia64
* @{
*/
/** @file
*/
 
#ifndef __ia64_PAL_H__
#define __ia64_PAL_H__
#ifndef KERN_ia64_PAL_H_
#define KERN_ia64_PAL_H_
 
#define PAL_OK 0 /**< Call completed without error. */
#define PAL_UNIMPL -1 /**< Unimplemented procedure. */
95,8 → 95,8
#define PAL_PMI_ENTRYPOINT 32
 
/*
Ski PTCE data
*/
* Ski PTCE data
*/
#define PAL_PTCE_INFO_BASE() (0x100000000LL)
#define PAL_PTCE_INFO_COUNT1() (2)
#define PAL_PTCE_INFO_COUNT2() (3)
103,9 → 103,7
#define PAL_PTCE_INFO_STRIDE1() (0x10000000)
#define PAL_PTCE_INFO_STRIDE2() (0x2000)
 
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/include/cpu.h
32,8 → 32,8
/** @file
*/
 
#ifndef __ia64_CPU_H__
#define __ia64_CPU_H__
#ifndef KERN_ia64_CPU_H_
#define KERN_ia64_CPU_H_
 
#include <arch/types.h>
#include <typedefs.h>
/trunk/kernel/arch/ia64/include/drivers/it.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64
/** @addtogroup ia64
* @{
*/
/** @file
*/
 
#ifndef __ia64_IT_H__
#define __ia64_IT_H__
#ifndef KERN_ia64_IT_H_
#define KERN_ia64_IT_H_
 
/*
* Unfortunately, Ski does not emulate PAL,
48,6 → 48,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/src/proc/scheduler.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64proc
/** @addtogroup ia64proc
* @{
*/
/** @file
88,6 → 88,5
{
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/src/ia64.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64
/** @addtogroup ia64
* @{
*/
/** @file
152,6 → 152,5
kbd_uspace=kbd_release;
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/src/ski/ski.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64
/** @addtogroup ia64
* @{
*/
/** @file
158,7 → 158,6
kb_disable = true;
}
 
 
static chardev_operations_t ski_ops = {
.resume = ski_kb_enable,
.suspend = ski_kb_disable,
166,7 → 165,6
.read = ski_getchar_blocking
};
 
 
/** Initialize debug console
*
* Issue SSC (Simulator System Call) to
188,6 → 186,7
stdout = &ski_console;
 
}
 
/** Setup console sysinfo (i.e. Keyboard IRQ)
*
* Because sysinfo neads memory allocation/dealocation
200,6 → 199,5
sysinfo_set_item_val("kbd.irq",NULL,IRQ_KBD);
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/src/putchar.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64
/** @addtogroup ia64
* @{
*/
/** @file
40,6 → 40,5
ski_write(ch);
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/src/mm/vhpt.c
31,13 → 31,11
*/
/** @file
*/
 
#include <arch/mm/vhpt.h>
#include <mm/frame.h>
#include <print.h>
 
 
static vhpt_entry_t* vhpt_base;
 
uintptr_t vhpt_set_up(void)
/trunk/kernel/arch/ia64/src/mm/as.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64mm
/** @addtogroup ia64mm
* @{
*/
/** @file
85,6 → 85,5
interrupts_restore(ipl);
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/src/mm/frame.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64mm
/** @addtogroup ia64mm
* @{
*/
/** @file
54,6 → 54,5
frame_mark_unavailable(ADDR2PFN(ROM_BASE), ROM_SIZE >> FRAME_WIDTH);
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/src/mm/page.c
27,7 → 27,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia64mm
/** @addtogroup ia64mm
* @{
*/
/** @file
263,6 → 263,5
v->present.tag.tag_word = tag;
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia64/src/interrupt.c
216,12 → 216,7
istate->cr_ipsr.ri++;
}
 
if (istate->in4 < SYSCALL_END)
return syscall_table[istate->in4](istate->in0, istate->in1, istate->in2, istate->in3);
else
panic("Undefined syscall %d", istate->in4);
return -1;
return syscall_handler(istate->in0, istate->in1, istate->in2, istate->in3, istate->in4);
}
 
void universal_handler(uint64_t vector, istate_t *istate)
/trunk/kernel/arch/ppc32/include/context_offset.h
44,6 → 44,3
#define OFFSET_FR31 0x88
#define OFFSET_FPSCR 0x90
 
/** @}
*/
 
/trunk/kernel/arch/ppc32/include/asm/regname.h
32,8 → 32,8
/** @file
*/
 
#ifndef __ppc32_REGNAME_H__
#define __ppc32_REGNAME_H__
#ifndef KERN_ppc32_REGNAME_H_
#define KERN_ppc32_REGNAME_H_
 
/* Condition Register Bit Fields */
#define cr0 0
/trunk/kernel/arch/ppc32/include/interrupt.h
32,14 → 32,13
/** @file
*/
 
#ifndef __ppc32_INTERRUPT_H__
#define __ppc32_INTERRUPT_H__
#ifndef KERN_ppc32_INTERRUPT_H_
#define KERN_ppc32_INTERRUPT_H_
 
#include <arch/exception.h>
 
#define IRQ_COUNT 64
 
 
#define IVT_ITEMS (16 + IRQ_COUNT)
#define INT_OFFSET 16
 
/trunk/kernel/arch/ppc32/include/exception.h
32,10 → 32,10
/** @file
*/
 
#ifndef __ppc32_EXCEPTION_H__
#define __ppc32_EXCEPTION_H__
#ifndef KERN_ppc32_EXCEPTION_H_
#define KERN_ppc32_EXCEPTION_H_
 
#ifndef __ppc32_TYPES_H__
#ifndef KERN_ppc32_TYPES_H_
# include <arch/types.h>
#endif
 
/trunk/kernel/arch/ppc32/include/fpu_context.h
26,16 → 26,16
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc32
/** @addtogroup ppc32
* @{
*/
/** @file
*/
 
#ifndef __ppc32_FPU_CONTEXT_H__
#define __ppc32_FPU_CONTEXT_H__
#ifndef KERN_ppc32_FPU_CONTEXT_H_
#define KERN_ppc32_FPU_CONTEXT_H_
 
#ifndef __ppc32_TYPES_H__
#ifndef KERN_ppc32_TYPES_H_
# include <arch/types.h>
#endif
 
63,6 → 63,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc32/include/byteorder.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc32
/** @addtogroup ppc32
* @{
*/
/** @file
*/
 
#ifndef __ppc32_BYTEORDER_H__
#define __ppc32_BYTEORDER_H__
#ifndef KERN_ppc32_BYTEORDER_H_
#define KERN_ppc32_BYTEORDER_H_
 
#include <arch/types.h>
#include <byteorder.h>
69,6 → 69,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc32/include/cpuid.h
32,8 → 32,8
/** @file
*/
 
#ifndef __ppc32_CPUID_H__
#define __ppc32_CPUID_H__
#ifndef KERN_ppc32_CPUID_H_
#define KERN_ppc32_CPUID_H_
 
#include <arch/types.h>
 
/trunk/kernel/arch/ppc32/include/types.h
32,8 → 32,8
/** @file
*/
 
#ifndef __ppc32_TYPES_H__
#define __ppc32_TYPES_H__
#ifndef KERN_ppc32_TYPES_H_
#define KERN_ppc32_TYPES_H_
 
#define NULL 0
 
/trunk/kernel/arch/ppc32/include/elf.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc32
/** @addtogroup ppc32
* @{
*/
/** @file
*/
 
#ifndef __ppc32_ELF_H__
#define __ppc32_ELF_H__
#ifndef KERN_ppc32_ELF_H_
#define KERN_ppc32_ELF_H_
 
#define ELF_MACHINE EM_PPC
#define ELF_DATA_ENCODING ELFDATA2MSB
41,6 → 41,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc32/include/memstr.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc32
/** @addtogroup ppc32
* @{
*/
/** @file
*/
 
#ifndef __ppc32_MEMSTR_H__
#define __ppc32_MEMSTR_H__
#ifndef KERN_ppc32_MEMSTR_H_
#define KERN_ppc32_MEMSTR_H_
 
#define memcpy(dst, src, cnt) __builtin_memcpy((dst), (src), (cnt))
 
44,6 → 44,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc32/include/arg.h
26,19 → 26,18
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc32
/** @addtogroup ppc32
* @{
*/
/** @file
*/
 
#ifndef __ppc32_ARG_H__
#define __ppc32_ARG_H__
#ifndef KERN_ppc32_ARG_H_
#define KERN_ppc32_ARG_H_
 
#include <stdarg.h>
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc32/include/atomic.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc32
/** @addtogroup ppc32
* @{
*/
/** @file
*/
 
#ifndef __ppc32_ATOMIC_H__
#define __ppc32_ATOMIC_H__
#ifndef KERN_ppc32_ATOMIC_H_
#define KERN_ppc32_ATOMIC_H_
 
static inline void atomic_inc(atomic_t *val)
{
93,6 → 93,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc32/include/boot/boot.h
32,8 → 32,8
/** @file
*/
 
#ifndef __ppc32_BOOT_H__
#define __ppc32_BOOT_H__
#ifndef KERN_ppc32_BOOT_H_
#define KERN_ppc32_BOOT_H_
 
#define BOOT_OFFSET 0x8000
 
/trunk/kernel/arch/ppc32/include/proc/task.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc32proc
/** @addtogroup ppc32proc
* @{
*/
/** @file
*/
 
#ifndef __ppc32_TASK_H__
#define __ppc32_TASK_H__
#ifndef KERN_ppc32_TASK_H_
#define KERN_ppc32_TASK_H_
 
typedef struct {
} task_arch_t;
43,6 → 43,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc32/include/asm.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc32
/** @addtogroup ppc32
* @{
*/
/** @file
*/
 
#ifndef __ppc32_ASM_H__
#define __ppc32_ASM_H__
#ifndef KERN_ppc32_ASM_H_
#define KERN_ppc32_ASM_H_
 
#include <arch/types.h>
#include <config.h>
151,6 → 151,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc32/include/faddr.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc32
/** @addtogroup ppc32
* @{
*/
/** @file
*/
 
#ifndef __ppc32_FADDR_H__
#define __ppc32_FADDR_H__
#ifndef KERN_ppc32_FADDR_H_
#define KERN_ppc32_FADDR_H_
 
#include <arch/types.h>
 
41,6 → 41,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc32/include/mm/frame.h
32,8 → 32,8
/** @file
*/
 
#ifndef __ppc32_FRAME_H__
#define __ppc32_FRAME_H__
#ifndef KERN_ppc32_FRAME_H_
#define KERN_ppc32_FRAME_H_
 
#define FRAME_WIDTH 12 /* 4K */
#define FRAME_SIZE (1 << FRAME_WIDTH)
/trunk/kernel/arch/ppc32/include/mm/memory_init.h
32,8 → 32,8
/** @file
*/
 
#ifndef __ppc32_MEMORY_INIT_H__
#define __ppc32_MEMORY_INIT_H__
#ifndef KERN_ppc32_MEMORY_INIT_H_
#define KERN_ppc32_MEMORY_INIT_H_
 
#include <typedefs.h>
 
/trunk/kernel/arch/ppc32/include/mm/asid.h
32,8 → 32,8
/** @file
*/
 
#ifndef __ppc32_ASID_H__
#define __ppc32_ASID_H__
#ifndef KERN_ppc32_ASID_H_
#define KERN_ppc32_ASID_H_
 
#include <arch/types.h>
 
/trunk/kernel/arch/ppc32/include/mm/tlb.h
32,8 → 32,8
/** @file
*/
 
#ifndef __ppc32_TLB_H__
#define __ppc32_TLB_H__
#ifndef KERN_ppc32_TLB_H_
#define KERN_ppc32_TLB_H_
 
typedef struct {
unsigned v : 1; /**< Valid */
/trunk/kernel/arch/ppc32/include/mm/as.h
32,8 → 32,8
/** @file
*/
 
#ifndef __ppc32_AS_H__
#define __ppc32_AS_H__
#ifndef KERN_ppc32_AS_H_
#define KERN_ppc32_AS_H_
 
#define KERNEL_ADDRESS_SPACE_SHADOWED_ARCH 0
 
/trunk/kernel/arch/ppc32/include/context.h
26,16 → 26,16
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc32
/** @addtogroup ppc32
* @{
*/
/** @file
*/
 
#ifndef __ppc32_CONTEXT_H__
#define __ppc32_CONTEXT_H__
#ifndef KERN_ppc32_CONTEXT_H_
#define KERN_ppc32_CONTEXT_H_
 
#ifndef __ppc32_TYPES_H__
#ifndef KERN_ppc32_TYPES_H_
# include <arch/types.h>
#endif
 
73,6 → 73,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc32/include/debug.h
26,17 → 26,16
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc32debug
/** @addtogroup ppc32debug
* @{
*/
/** @file
*/
 
#ifndef __ppc32_DEBUG_H__
#define __ppc32_DEBUG_H__
#ifndef KERN_ppc32_DEBUG_H_
#define KERN_ppc32_DEBUG_H_
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc32/include/barrier.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc32
/** @addtogroup ppc32
* @{
*/
/** @file
*/
 
#ifndef __ppc32_BARRIER_H__
#define __ppc32_BARRIER_H__
#ifndef KERN_ppc32_BARRIER_H_
#define KERN_ppc32_BARRIER_H_
 
#define CS_ENTER_BARRIER() asm volatile ("" ::: "memory")
#define CS_LEAVE_BARRIER() asm volatile ("" ::: "memory")
44,6 → 44,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc32/include/cpu.h
32,8 → 32,8
/** @file
*/
 
#ifndef __ppc32_CPU_H__
#define __ppc32_CPU_H__
#ifndef KERN_ppc32_CPU_H_
#define KERN_ppc32_CPU_H_
 
#include <typedefs.h>
 
/trunk/kernel/arch/ppc32/include/drivers/pic.h
32,8 → 32,8
/** @file
*/
 
#ifndef __PIC_H_
#define __PIC_H_
#ifndef KERN_ppc32_PIC_H_
#define KERN_ppc32_PIC_H_
 
#define PIC_PENDING_LOW 8
#define PIC_PENDING_HIGH 4
/trunk/kernel/arch/ppc32/include/drivers/cuda.h
32,8 → 32,8
/** @file
*/
 
#ifndef __CUDA_H__
#define __CUDA_H__
#ifndef KERN_ppc32_CUDA_H_
#define KERN_ppc32_CUDA_H_
 
#include <arch/types.h>
#include <typedefs.h>
/trunk/kernel/arch/ppc32/src/ddi/ddi.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc32ddi
/** @addtogroup ppc32ddi
* @{
*/
/** @file
52,6 → 52,5
return 0;
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc32/src/drivers/pic.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc32
/** @addtogroup ppc32
* @{
*/
/** @file
90,6 → 90,5
return -1;
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/include/context_offset.h
9,6 → 9,3
#define OFFSET_R15 0x38
#define OFFSET_IPL 0x40
 
/** @}
*/
 
/trunk/kernel/arch/amd64/include/interrupt.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64interrupt
/** @addtogroup amd64interrupt
* @{
*/
/** @file
*/
 
#ifndef __ia32_INTERRUPT_H__
#define __ia32_INTERRUPT_H__
#ifndef KERN_amd64_INTERRUPT_H_
#define KERN_amd64_INTERRUPT_H_
 
#include <arch/types.h>
#include <arch/pm.h>
128,6 → 128,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/include/byteorder.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64
/** @addtogroup amd64
* @{
*/
/** @file
*/
 
#ifndef __amd64_BYTEORDER_H__
#define __amd64_BYTEORDER_H__
#ifndef KERN_amd64_BYTEORDER_H_
#define KERN_amd64_BYTEORDER_H_
 
/* AMD64 is little-endian */
#define unative_t_le2host(n) (n)
41,6 → 41,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/include/cpuid.h
32,8 → 32,8
/** @file
*/
 
#ifndef __amd64_CPUID_H__
#define __amd64_CPUID_H__
#ifndef KERN_amd64_CPUID_H_
#define KERN_amd64_CPUID_H_
 
#define AMD_CPUID_EXTENDED 0x80000001
#define AMD_EXT_NOEXECUTE 20
60,7 → 60,7
 
extern uint64_t rdtsc(void);
 
#endif /* __ASM__ */
#endif /* !def __ASM__ */
#endif
 
/** @}
/trunk/kernel/arch/amd64/include/types.h
32,8 → 32,8
/** @file
*/
 
#ifndef __amd64_TYPES_H__
#define __amd64_TYPES_H__
#ifndef KERN_amd64_TYPES_H_
#define KERN_amd64_TYPES_H_
 
#define NULL 0
 
/trunk/kernel/arch/amd64/include/elf.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64
/** @addtogroup amd64
* @{
*/
/** @file
*/
 
#ifndef __amd64_ELF_H__
#define __amd64_ELF_H__
#ifndef KERN_amd64_ELF_H_
#define KERN_amd64_ELF_H_
 
#define ELF_MACHINE EM_X86_64
#define ELF_DATA_ENCODING ELFDATA2LSB
41,6 → 41,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/include/memstr.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64
/** @addtogroup amd64
* @{
*/
/** @file
*/
 
#ifndef __amd64_MEMSTR_H__
#define __amd64_MEMSTR_H__
#ifndef KERN_amd64_MEMSTR_H_
#define KERN_amd64_MEMSTR_H_
 
/** Copy memory
*
141,6 → 141,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/include/arg.h
26,19 → 26,19
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64
/** @addtogroup amd64
* @{
*/
/** @file
*/
 
#ifndef __amd64_ARG_H__
#define __amd64_ARG_H__
#ifndef KERN_amd64_ARG_H_
#define KERN_amd64_ARG_H_
 
#include <stdarg.h>
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/include/ddi/ddi.h
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64ddi
/** @addtogroup amd64ddi
* @{
*/
 
35,13 → 35,12
* @brief amd64 specific DDI declarations and macros.
*/
 
#ifndef __amd64_DDI_H__
#define __amd64_DDI_H__
#ifndef KERN_amd64_DDI_H_
#define KERN_amd64_DDI_H_
 
extern void io_perm_bitmap_install(void);
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/include/syscall.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64
/** @addtogroup amd64
* @{
*/
/** @file
*/
 
#ifndef __amd64_SYSCALL_H__
#define __amd64_SYSCALL_H__
#ifndef KERN_amd64_SYSCALL_H_
#define KERN_amd64_SYSCALL_H_
 
#include <arch/types.h>
 
41,6 → 41,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/include/atomic.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64
/** @addtogroup amd64
* @{
*/
/** @file
*/
 
#ifndef __amd64_ATOMIC_H__
#define __amd64_ATOMIC_H__
#ifndef KERN_amd64_ATOMIC_H_
#define KERN_amd64_ATOMIC_H_
 
#include <arch/types.h>
#include <arch/barrier.h>
125,6 → 125,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/include/pm.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64
/** @addtogroup amd64
* @{
*/
/** @file
*/
 
#ifndef __amd64_PM_H__
#define __amd64_PM_H__
#ifndef KERN_amd64_PM_H_
#define KERN_amd64_PM_H_
 
#ifndef __ASM__
# include <arch/types.h>
194,6 → 194,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/include/boot/boot.h
32,12 → 32,12
/** @file
*/
 
#ifndef __amd64_BOOT_H__
#define __amd64_BOOT_H__
#ifndef KERN_amd64_BOOT_H_
#define KERN_amd64_BOOT_H_
 
#define BOOT_OFFSET 0x108000
#define BOOT_OFFSET 0x108000
#define AP_BOOT_OFFSET 0x8000
#define BOOT_STACK_SIZE 0x400
#define BOOT_STACK_SIZE 0x400
 
#define MULTIBOOT_HEADER_MAGIC 0x1BADB002
#define MULTIBOOT_HEADER_FLAGS 0x00010003
/trunk/kernel/arch/amd64/include/asm.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64
/** @addtogroup amd64
* @{
*/
/** @file
*/
 
#ifndef __amd64_ASM_H__
#define __amd64_ASM_H__
#ifndef KERN_amd64_ASM_H_
#define KERN_amd64_ASM_H_
 
#include <arch/pm.h>
#include <arch/types.h>
274,12 → 274,10
GEN_WRITE_REG(dr6);
GEN_WRITE_REG(dr7);
 
 
extern size_t interrupt_handler_size;
extern void interrupt_handlers(void);
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/include/faddr.h
32,8 → 32,8
/** @file
*/
 
#ifndef __amd64_FADDR_H__
#define __amd64_FADDR_H__
#ifndef KERN_amd64_FADDR_H_
#define KERN_amd64_FADDR_H_
 
#include <arch/types.h>
 
/trunk/kernel/arch/amd64/include/mm/frame.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64mm
/** @addtogroup amd64mm
* @{
*/
/** @file
*/
 
#ifndef __amd64_FRAME_H__
#define __amd64_FRAME_H__
#ifndef KERN_amd64_FRAME_H_
#define KERN_amd64_FRAME_H_
 
#ifndef __ASM__
#include <arch/types.h>
42,7 → 42,6
#define FRAME_WIDTH 12 /* 4K */
#define FRAME_SIZE (1<<FRAME_WIDTH)
 
 
#ifndef __ASM__
extern uintptr_t last_frame;
extern void frame_arch_init(void);
50,6 → 49,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/include/mm/page.h
44,8 → 44,8
* ATTENTION - PA2KA(KA2PA(x)) != x if 'x' is in kernel
*/
 
#ifndef __amd64_PAGE_H__
#define __amd64_PAGE_H__
#ifndef KERN_amd64_PAGE_H_
#define KERN_amd64_PAGE_H_
 
#include <arch/mm/frame.h>
 
/trunk/kernel/arch/amd64/include/mm/ptl.h
26,16 → 26,15
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64mm
/** @addtogroup amd64mm
* @{
*/
/** @file
*/
 
#ifndef KERN_amd64_PTL_H_
#define KERN_amd64_PTL_H_
 
#ifndef __amd64_PTL_H_
#define __amd64_PTL_H_
 
#define PTL_NO_EXEC (1<<63)
#define PTL_ACCESSED (1<<5)
#define PTL_CACHE_DISABLE (1<<4)
48,6 → 47,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/include/mm/tlb.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64mm
/** @addtogroup amd64mm
* @{
*/
/** @file
*/
 
#ifndef __amd64_TLB_H__
#define __amd64_TLB_H__
#ifndef KERN_amd64_TLB_H_
#define KERN_amd64_TLB_H_
 
#define tlb_arch_init()
#define tlb_print()
40,6 → 40,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/include/mm/as.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64mm
/** @addtogroup amd64mm
* @{
*/
/** @file
*/
 
#ifndef __amd64_AS_H__
#define __amd64_AS_H__
#ifndef KERN_amd64_AS_H_
#define KERN_amd64_AS_H_
 
#define KERNEL_ADDRESS_SPACE_SHADOWED_ARCH 0
 
50,6 → 50,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/include/debugger.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64debug
/** @addtogroup amd64debug
* @{
*/
/** @file
*/
 
#ifndef __amd64_DEBUGGER_H__
#define __amd64_DEBUGGER_H__
#ifndef KERN_amd64_DEBUGGER_H_
#define KERN_amd64_DEBUGGER_H_
 
#include <arch/types.h>
 
53,6 → 53,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/include/context.h
26,16 → 26,16
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64
/** @addtogroup amd64
* @{
*/
/** @file
*/
 
#ifndef __amd64_CONTEXT_H__
#define __amd64_CONTEXT_H__
#ifndef KERN_amd64_CONTEXT_H_
#define KERN_amd64_CONTEXT_H_
 
#ifndef __amd64_TYPES_H__
#ifndef KERN_amd64_TYPES_H_
# include <arch/types.h>
#endif
 
66,6 → 66,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/include/cpu.h
32,8 → 32,8
/** @file
*/
 
#ifndef __amd64_CPU_H__
#define __amd64_CPU_H__
#ifndef KERN_amd64_CPU_H_
#define KERN_amd64_CPU_H_
 
#define RFLAGS_IF (1 << 9)
#define RFLAGS_RF (1 << 16)
/trunk/kernel/arch/amd64/include/drivers/vesa.h
26,22 → 26,19
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64
/** @addtogroup amd64
* @{
*/
/** @file
*/
 
#ifndef __VESA_H__
#define __VESA_H__
#ifndef KERN_amd64_VESA_H_
#define KERN_amd64_VESA_H_
 
 
int vesa_present(void);
void vesa_init(void);
 
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/src/syscall.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64
/** @addtogroup amd64
* @{
*/
/** @file
67,6 → 67,5
write_msr(AMD_MSR_SFMASK, 0x200);
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/src/pm.c
27,7 → 27,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64
/** @addtogroup amd64
* @{
*/
/** @file
240,6 → 240,5
tr_load(gdtselector(TSS_DES));
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/src/ddi/ddi.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64ddi
/** @addtogroup amd64ddi
* @{
*/
/** @file
162,6 → 162,5
CPU->arch.iomapver_copy = ver;
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/src/proc/scheduler.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64proc
/** @addtogroup amd64proc
* @{
*/
/** @file
80,6 → 80,5
{
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/src/proc/task.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64proc
/** @addtogroup amd64proc
* @{
*/
/** @file
56,6 → 56,5
free(t->arch.iomap.map);
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/src/debugger.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64debug
/** @addtogroup amd64debug
* @{
*/
/** @file
382,6 → 382,5
#endif
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/src/mm/memory_init.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64mm
/** @addtogroup amd64mm
* @{
*/
/** @file
75,7 → 75,5
 
}
 
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/src/mm/page.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64mm
/** @addtogroup amd64mm
* @{
*/
/** @file
215,6 → 215,5
return virtaddr;
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/src/userspace.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64
/** @addtogroup amd64
* @{
*/
/** @file
77,6 → 77,5
;
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/amd64/src/interrupt.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64interrupt
/** @addtogroup amd64interrupt
* @{
*/
/** @file
182,6 → 182,5
trap_virtual_enable_irqs(1 << irq);
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/context_offset.h
43,7 → 43,3
#define OFFSET_FR30 0x80
#define OFFSET_FR31 0x88
#define OFFSET_FPSCR 0x90
 
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/asm/regname.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64
/** @addtogroup ppc64
* @{
*/
/** @file
*/
 
#ifndef __ppc64_REGNAME_H__
#define __ppc64_REGNAME_H__
#ifndef KERN_ppc64_REGNAME_H_
#define KERN_ppc64_REGNAME_H_
 
/* Condition Register Bit Fields */
#define cr0 0
211,6 → 211,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/interrupt.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64interrupt
/** @addtogroup ppc64interrupt
* @{
*/
/** @file
*/
 
#ifndef __ppc64_INTERRUPT_H__
#define __ppc64_INTERRUPT_H__
#ifndef KERN_ppc64_INTERRUPT_H_
#define KERN_ppc64_INTERRUPT_H_
 
#include <arch/exception.h>
 
48,6 → 48,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/exception.h
26,16 → 26,16
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64
/** @addtogroup ppc64
* @{
*/
/** @file
*/
 
#ifndef __ppc64_EXCEPTION_H__
#define __ppc64_EXCEPTION_H__
#ifndef KERN_ppc64_EXCEPTION_H_
#define KERN_ppc64_EXCEPTION_H_
 
#ifndef __ppc64_TYPES_H__
#ifndef KERN_ppc64_TYPES_H_
# include <arch/types.h>
#endif
 
100,6 → 100,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/fpu_context.h
26,16 → 26,16
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64
/** @addtogroup ppc64
* @{
*/
/** @file
*/
 
#ifndef __ppc64_FPU_CONTEXT_H__
#define __ppc64_FPU_CONTEXT_H__
#ifndef KERN_ppc64_FPU_CONTEXT_H_
#define KERN_ppc64_FPU_CONTEXT_H_
 
#ifndef __ppc64_TYPES_H__
#ifndef KERN_ppc64_TYPES_H_
# include <arch/types.h>
#endif
 
63,6 → 63,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/byteorder.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64
/** @addtogroup ppc64
* @{
*/
/** @file
*/
 
#ifndef __ppc64_BYTEORDER_H__
#define __ppc64_BYTEORDER_H__
#ifndef KERN_ppc64_BYTEORDER_H_
#define KERN_ppc64_BYTEORDER_H_
 
#include <arch/types.h>
#include <byteorder.h>
69,6 → 69,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/cpuid.h
32,8 → 32,8
/** @file
*/
 
#ifndef __ppc64_CPUID_H__
#define __ppc64_CPUID_H__
#ifndef KERN_ppc64_CPUID_H_
#define KERN_ppc64_CPUID_H_
 
#include <arch/types.h>
 
/trunk/kernel/arch/ppc64/include/types.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64
/** @addtogroup ppc64
* @{
*/
/** @file
*/
 
#ifndef __ppc64_TYPES_H__
#define __ppc64_TYPES_H__
#ifndef KERN_ppc64_TYPES_H_
#define KERN_ppc64_TYPES_H_
 
#define NULL 0
 
65,6 → 65,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/elf.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64
/** @addtogroup ppc64
* @{
*/
/** @file
*/
 
#ifndef __ppc64_ELF_H__
#define __ppc64_ELF_H__
#ifndef KERN_ppc64_ELF_H_
#define KERN_ppc64_ELF_H_
 
#define ELF_MACHINE EM_PPC64
#define ELF_DATA_ENCODING ELFDATA2MSB
41,6 → 41,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/memstr.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64
/** @addtogroup ppc64
* @{
*/
/** @file
*/
 
#ifndef __ppc64_MEMSTR_H__
#define __ppc64_MEMSTR_H__
#ifndef KERN_ppc64_MEMSTR_H_
#define KERN_ppc64_MEMSTR_H_
 
#define memcpy(dst, src, cnt) __builtin_memcpy((dst), (src), (cnt))
 
44,6 → 44,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/arg.h
26,19 → 26,18
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64
/** @addtogroup ppc64
* @{
*/
/** @file
*/
 
#ifndef __ppc64_ARG_H__
#define __ppc64_ARG_H__
#ifndef KERN_ppc64_ARG_H_
#define KERN_ppc64_ARG_H_
 
#include <stdarg.h>
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/atomic.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64
/** @addtogroup ppc64
* @{
*/
/** @file
*/
 
#ifndef __ppc64_ATOMIC_H__
#define __ppc64_ATOMIC_H__
#ifndef KERN_ppc64_ATOMIC_H_
#define KERN_ppc64_ATOMIC_H_
 
static inline void atomic_inc(atomic_t *val)
{
93,6 → 93,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/boot/boot.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64
/** @addtogroup ppc64
* @{
*/
/** @file
*/
 
#ifndef __ppc64_BOOT_H__
#define __ppc64_BOOT_H__
#ifndef KERN_ppc64_BOOT_H_
#define KERN_ppc64_BOOT_H_
 
#define BOOT_OFFSET 0x4000
 
88,6 → 88,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/proc/task.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64proc
/** @addtogroup ppc64proc
* @{
*/
/** @file
*/
 
#ifndef __ppc64_TASK_H__
#define __ppc64_TASK_H__
#ifndef KERN_ppc64_TASK_H_
#define KERN_ppc64_TASK_H_
 
typedef struct {
} task_arch_t;
43,6 → 43,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/proc/thread.h
46,4 → 46,3
 
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/faddr.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64
/** @addtogroup ppc64
* @{
*/
/** @file
*/
 
#ifndef __ppc64_FADDR_H__
#define __ppc64_FADDR_H__
#ifndef KERN_ppc64_FADDR_H_
#define KERN_ppc64_FADDR_H_
 
#include <arch/types.h>
 
41,6 → 41,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/asm.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64
/** @addtogroup ppc64
* @{
*/
/** @file
*/
 
#ifndef __ppc64_ASM_H__
#define __ppc64_ASM_H__
#ifndef KERN_ppc64_ASM_H_
#define KERN_ppc64_ASM_H_
 
#include <arch/types.h>
#include <config.h>
157,6 → 157,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/mm/frame.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64mm
/** @addtogroup ppc64mm
* @{
*/
/** @file
*/
 
#ifndef __ppc64_FRAME_H__
#define __ppc64_FRAME_H__
#ifndef KERN_ppc64_FRAME_H_
#define KERN_ppc64_FRAME_H_
 
#define FRAME_WIDTH 12 /* 4K */
#define FRAME_SIZE (1 << FRAME_WIDTH)
52,6 → 52,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/mm/memory_init.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64mm
/** @addtogroup ppc64mm
* @{
*/
/** @file
*/
 
#ifndef __ppc64_MEMORY_INIT_H__
#define __ppc64_MEMORY_INIT_H__
#ifndef KERN_ppc64_MEMORY_INIT_H_
#define KERN_ppc64_MEMORY_INIT_H_
 
#include <typedefs.h>
 
43,6 → 43,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/mm/page.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64mm
/** @addtogroup ppc64mm
* @{
*/
/** @file
*/
 
#ifndef __ppc64_PAGE_H__
#define __ppc64_PAGE_H__
#ifndef KERN_ppc64_PAGE_H_
#define KERN_ppc64_PAGE_H_
 
#include <arch/mm/frame.h>
 
158,6 → 158,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/mm/asid.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64mm
/** @addtogroup ppc64mm
* @{
*/
/** @file
*/
 
#ifndef __ppc64_ASID_H__
#define __ppc64_ASID_H__
#ifndef KERN_ppc64_ASID_H_
#define KERN_ppc64_ASID_H_
 
typedef int asid_t;
 
44,6 → 44,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/mm/tlb.h
26,18 → 26,16
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64mm
/** @addtogroup ppc64mm
* @{
*/
/** @file
*/
 
#ifndef __ppc64_TLB_H__
#define __ppc64_TLB_H__
#ifndef KERN_ppc64_TLB_H_
#define KERN_ppc64_TLB_H_
 
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/mm/as.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64mm
/** @addtogroup ppc64mm
* @{
*/
/** @file
*/
 
#ifndef __ppc64_AS_H__
#define __ppc64_AS_H__
#ifndef KERN_ppc64_AS_H_
#define KERN_ppc64_AS_H_
 
#define KERNEL_ADDRESS_SPACE_SHADOWED_ARCH 0
 
50,6 → 50,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/context.h
26,16 → 26,16
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64
/** @addtogroup ppc64
* @{
*/
/** @file
*/
 
#ifndef __ppc64_CONTEXT_H__
#define __ppc64_CONTEXT_H__
#ifndef KERN_ppc64_CONTEXT_H_
#define KERN_ppc64_CONTEXT_H_
 
#ifndef __ppc64_TYPES_H__
#ifndef KERN_ppc64_TYPES_H_
# include <arch/types.h>
#endif
 
73,6 → 73,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/debug.h
26,17 → 26,16
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64debug
/** @addtogroup ppc64debug
* @{
*/
/** @file
*/
 
#ifndef __ppc64_DEBUG_H__
#define __ppc64_DEBUG_H__
#ifndef KERN_ppc64_DEBUG_H_
#define KERN_ppc64_DEBUG_H_
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/barrier.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64
/** @addtogroup ppc64
* @{
*/
/** @file
*/
 
#ifndef __ppc64_BARRIER_H__
#define __ppc64_BARRIER_H__
#ifndef KERN_ppc64_BARRIER_H_
#define KERN_ppc64_BARRIER_H_
 
#define CS_ENTER_BARRIER() asm volatile ("" ::: "memory")
#define CS_LEAVE_BARRIER() asm volatile ("" ::: "memory")
44,6 → 44,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/include/cpu.h
32,8 → 32,8
/** @file
*/
 
#ifndef __ppc64_CPU_H__
#define __ppc64_CPU_H__
#ifndef KERN_ppc64_CPU_H_
#define KERN_ppc64_CPU_H_
 
#include <typedefs.h>
 
/trunk/kernel/arch/ppc64/src/ddi/ddi.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64ddi
/** @addtogroup ppc64ddi
* @{
*/
/** @file
52,6 → 52,5
return 0;
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/src/proc/scheduler.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64proc
/** @addtogroup ppc64proc
* @{
*/
/** @file
59,6 → 59,5
{
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/src/mm/frame.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64mm
/** @addtogroup ppc64mm
* @{
*/
/** @file
67,6 → 67,5
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/src/mm/memory_init.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64mm
/** @addtogroup ppc64mm
* @{
*/
/** @file
52,6 → 52,5
printf("base: %#x size: %#x\n", bootinfo.memmap.zones[i].start, bootinfo.memmap.zones[i].size);
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/src/mm/page.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64mm
/** @addtogroup ppc64mm
* @{
*/
/** @file
303,6 → 303,5
return virtaddr;
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ppc64/src/interrupt.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ppc64interrupt
/** @addtogroup ppc64interrupt
* @{
*/
/** @file
71,6 → 71,5
/* TODO */
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/mips32/include/asm/regname.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_REGNAME_H_
#define __mips32_REGNAME_H_
#ifndef KERN_mips32_REGNAME_H_
#define KERN_mips32_REGNAME_H_
 
#define zero 0
#define at 1
91,8 → 91,7
#define depc 24
#define eepc 30
 
#endif /* KERN_mips32_REGNAME_H_ */
 
#endif /* _REGNAME_H_ */
 
/** @}
*/
/trunk/kernel/arch/mips32/include/asm/boot.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_BOOT_H_
#define __mips32_BOOT_H_
#ifndef KERN_mips32_BOOT_H_
#define KERN_mips32_BOOT_H_
 
 
/* Temporary stack size for boot process */
43,4 → 43,3
 
/** @}
*/
 
/trunk/kernel/arch/mips32/include/interrupt.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_INTERRUPT_H__
#define __mips32_INTERRUPT_H__
#ifndef KERN_mips32_INTERRUPT_H_
#define KERN_mips32_INTERRUPT_H_
 
#include <arch/exception.h>
 
/trunk/kernel/arch/mips32/include/exception.h
32,10 → 32,10
/** @file
*/
 
#ifndef __mips32_EXCEPTION_H__
#define __mips32_EXCEPTION_H__
#ifndef KERN_mips32_EXCEPTION_H_
#define KERN_mips32_EXCEPTION_H_
 
#ifndef __mips32_TYPES_H__
#ifndef KERN_mips32_TYPES_H_
# include <arch/types.h>
#endif
 
/trunk/kernel/arch/mips32/include/fpu_context.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_FPU_CONTEXT_H__
#define __mips32_FPU_CONTEXT_H__
#ifndef KERN_mips32_FPU_CONTEXT_H_
#define KERN_mips32_FPU_CONTEXT_H_
 
#include <arch/types.h>
 
/trunk/kernel/arch/mips32/include/byteorder.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_BYTEORDER_H__
#define __mips32_BYTEORDER_H__
#ifndef KERN_mips32_BYTEORDER_H_
#define KERN_mips32_BYTEORDER_H_
 
#include <arch/types.h>
#include <byteorder.h>
/trunk/kernel/arch/mips32/include/console.h
32,10 → 32,9
/** @file
*/
 
#ifndef __mips32_CONSOLE_H__
#define __mips32_CONSOLE_H__
#ifndef KERN_mips32_CONSOLE_H_
#define KERN_mips32_CONSOLE_H_
 
 
void console_init(void);
 
#endif
/trunk/kernel/arch/mips32/include/cache.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_CACHE_H__
#define __mips32_CACHE_H__
#ifndef KERN_mips32_CACHE_H_
#define KERN_mips32_CACHE_H_
 
#include <typedefs.h>
 
/trunk/kernel/arch/mips32/include/boot.h
26,8 → 26,8
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
#ifndef __mips32_BOOT_H__
#define __mips32_BOOT_H__
#ifndef KERN_mips32_BOOT_H_
#define KERN_mips32_BOOT_H_
 
#define TASKMAP_MAX_RECORDS 32
 
/trunk/kernel/arch/mips32/include/types.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_TYPES_H__
#define __mips32_TYPES_H__
#ifndef KERN_mips32_TYPES_H_
#define KERN_mips32_TYPES_H_
 
#define NULL 0
 
/trunk/kernel/arch/mips32/include/stack.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_STACK_H__
#define __mips32_STACK_H__
#ifndef KERN_mips32_STACK_H_
#define KERN_mips32_STACK_H_
 
#define STACK_ITEM_SIZE 4
#define STACK_ALIGNMENT 8
/trunk/kernel/arch/mips32/include/elf.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_ELF_H__
#define __mips32_ELF_H__
#ifndef KERN_mips32_ELF_H_
#define KERN_mips32_ELF_H_
 
#define ELF_MACHINE EM_MIPS
 
/trunk/kernel/arch/mips32/include/memstr.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_MEMSTR_H__
#define __mips32_MEMSTR_H__
#ifndef KERN_mips32_MEMSTR_H_
#define KERN_mips32_MEMSTR_H_
 
#define memcpy(dst, src, cnt) __builtin_memcpy((dst), (src), (cnt))
 
/trunk/kernel/arch/mips32/include/arg.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_ARG_H__
#define __mips32_ARG_H__
#ifndef KERN_mips32_ARG_H_
#define KERN_mips32_ARG_H_
 
#include <arch/types.h>
 
/trunk/kernel/arch/mips32/include/atomic.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_ATOMIC_H__
#define __mips32_ATOMIC_H__
#ifndef KERN_mips32_ATOMIC_H_
#define KERN_mips32_ATOMIC_H_
 
#define atomic_inc(x) ((void) atomic_add(x, 1))
#define atomic_dec(x) ((void) atomic_add(x, -1))
/trunk/kernel/arch/mips32/include/proc/task.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup mips32proc
/** @addtogroup mips32proc
* @{
*/
/** @file
*/
 
#ifndef __mips32_TASK_H__
#define __mips32_TASK_H__
#ifndef KERN_mips32_TASK_H_
#define KERN_mips32_TASK_H_
 
typedef struct {
} task_arch_t;
43,6 → 43,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/mips32/include/asm.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_ASM_H__
#define __mips32_ASM_H__
#ifndef KERN_mips32_ASM_H_
#define KERN_mips32_ASM_H_
 
#include <arch/types.h>
#include <typedefs.h>
/trunk/kernel/arch/mips32/include/faddr.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_FADDR_H__
#define __mips32_FADDR_H__
#ifndef KERN_mips32_FADDR_H_
#define KERN_mips32_FADDR_H_
 
#include <arch/types.h>
 
/trunk/kernel/arch/mips32/include/cp0.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_CP0_H__
#define __mips32_CP0_H__
#ifndef KERN_mips32_CP0_H_
#define KERN_mips32_CP0_H_
 
#include <arch/types.h>
#include <arch/mm/tlb.h>
/trunk/kernel/arch/mips32/include/mm/frame.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_FRAME_H__
#define __mips32_FRAME_H__
#ifndef KERN_mips32_FRAME_H_
#define KERN_mips32_FRAME_H_
 
#define FRAME_WIDTH 14 /* 16K */
#define FRAME_SIZE (1<<FRAME_WIDTH)
/trunk/kernel/arch/mips32/include/mm/memory_init.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_MEMORY_INIT_H__
#define __mips32_MEMORY_INIT_H__
#ifndef KERN_mips32_MEMORY_INIT_H_
#define KERN_mips32_MEMORY_INIT_H_
 
#include <config.h>
 
/trunk/kernel/arch/mips32/include/mm/page.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_PAGE_H__
#define __mips32_PAGE_H__
#ifndef KERN_mips32_PAGE_H_
#define KERN_mips32_PAGE_H_
 
#include <arch/mm/frame.h>
 
/trunk/kernel/arch/mips32/include/mm/asid.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_ASID_H__
#define __mips32_ASID_H__
#ifndef KERN_mips32_ASID_H_
#define KERN_mips32_ASID_H_
 
#include <arch/types.h>
 
45,4 → 45,3
 
/** @}
*/
 
/trunk/kernel/arch/mips32/include/mm/tlb.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_TLB_H__
#define __mips32_TLB_H__
#ifndef KERN_mips32_TLB_H_
#define KERN_mips32_TLB_H_
 
#include <arch/exception.h>
#include <typedefs.h>
/trunk/kernel/arch/mips32/include/mm/as.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_AS_H__
#define __mips32_AS_H__
#ifndef KERN_mips32_AS_H_
#define KERN_mips32_AS_H_
 
#define KERNEL_ADDRESS_SPACE_SHADOWED_ARCH 0
 
/trunk/kernel/arch/mips32/include/debugger.h
32,8 → 32,8
/** @file
*/
 
#ifndef _mips32_DEBUGGER_H_
#define _mips32_DEBUGGER_H_
#ifndef KERN_mips32_DEBUGGER_H_
#define KERN_mips32_DEBUGGER_H_
 
#include <typedefs.h>
#include <arch/exception.h>
/trunk/kernel/arch/mips32/include/context.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_CONTEXT_H__
#define __mips32_CONTEXT_H__
#ifndef KERN_mips32_CONTEXT_H_
#define KERN_mips32_CONTEXT_H_
 
#include <align.h>
#include <arch/stack.h>
/trunk/kernel/arch/mips32/include/debug.h
32,11 → 32,9
/** @file
*/
 
#ifndef __mips32_DEBUG_H__
#define __mips23_DEBUG_H__
#ifndef KERN_mips32_DEBUG_H_
#define KERN_mips23_DEBUG_H_
 
 
 
/** simulator enters the trace mode */
#define ___traceon() asm volatile ( "\t.word\t0x39\n");
/** simulator leaves the trace mode */
48,7 → 46,6
/** simulator enters interactive mode */
#define ___intmode() asm volatile ( "\t.word\t0x29\n");
 
 
#endif
 
/** @}
/trunk/kernel/arch/mips32/include/barrier.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_BARRIER_H__
#define __mips32_BARRIER_H__
#ifndef KERN_mips32_BARRIER_H_
#define KERN_mips32_BARRIER_H_
 
/*
* TODO: implement true MIPS memory barriers for macros below.
49,4 → 49,3
 
/** @}
*/
 
/trunk/kernel/arch/mips32/include/cpu.h
32,8 → 32,8
/** @file
*/
 
#ifndef __mips32_CPU_H__
#define __mips32_CPU_H__
#ifndef KERN_mips32_CPU_H_
#define KERN_mips32_CPU_H_
 
#include <arch/types.h>
 
/trunk/kernel/arch/mips32/include/drivers/serial.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup mips32
/** @addtogroup mips32
* @{
*/
/** @file
*/
 
#ifndef __DRV_SERIAL_H__
#define __DRV_SERIAL_H__
#ifndef KERN_mips32_SERIAL_H_
#define KERN_mips32_SERIAL_H_
 
#include <console/chardev.h>
 
67,6 → 67,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/mips32/include/drivers/arc.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup mips32
/** @addtogroup mips32
* @{
*/
/** @file
*/
 
#ifndef __mips32_ARC_H__
#define __mips32_ARC_H__
#ifndef KERN_mips32_ARC_H_
#define KERN_mips32_ARC_H_
 
#include <arch/types.h>
#include <console/chardev.h>
53,7 → 53,7
CmResourceTypeVendor,
CmResourceTypeProductName,
CmResourceTypeSerialNumber
}cm_resource_type;
} cm_resource_type;
 
typedef struct {
uint8_t type;
74,7 → 74,7
unsigned long length;
}memory;
}u;
}__attribute__ ((packed)) cm_resource_descriptor;
} __attribute__ ((packed)) cm_resource_descriptor;
 
typedef struct {
uint16_t version;
81,7 → 81,7
uint16_t revision;
unsigned long count;
cm_resource_descriptor descr[1];
}__attribute__ ((packed)) cm_resource_list;
} __attribute__ ((packed)) cm_resource_list;
 
typedef enum {
SystemClass = 0,
137,7 → 137,7
GIOAdapter,
TPUAdapter,
Anonymous
}arc_component_type;
} arc_component_type;
 
typedef enum {
Failed = 1,
147,7 → 147,7
ConsoleOut = 16,
Input = 32,
Output = 64
}arc_component_flags;
} arc_component_flags;
 
typedef struct {
arc_component_class class;
182,18 → 182,18
LoadedProgram,
FirmwareTemporary,
FirmwarePermanent
}arc_memorytype_t;
} arc_memorytype_t;
 
typedef struct {
arc_memorytype_t type;
uint32_t basepage; /* *4096 = baseaddr */
uint32_t basecount;
}arc_memdescriptor_t;
} arc_memdescriptor_t;
 
typedef struct {
char vendorid[8];
char prodid[8];
}arc_sysid_t;
} arc_sysid_t;
 
typedef struct {
long (*load)(void); /* ... */
254,7 → 254,7
uint32_t privvectorlen;
void *privvector;
uint32_t adaptercount;
}__attribute__ ((packed)) arc_sbp;
} __attribute__ ((packed)) arc_sbp;
 
extern int arc_init(void);
extern int arc_enabled(void);
265,4 → 265,3
 
/** @}
*/
 
/trunk/kernel/arch/mips32/include/drivers/msim.h
26,18 → 26,18
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup mips32
/** @addtogroup mips32
* @{
*/
/** @file
*/
 
#ifndef _MSIM_H_
#define _MSIM_H_
#ifndef KERN_mips32_MSIM_H_
#define KERN_mips32_MSIM_H_
 
#include <console/chardev.h>
 
#define MSIM_VIDEORAM 0xB0000000
#define MSIM_VIDEORAM 0xB0000000
/** Address of 'keyboard' device. */
#define MSIM_KBD_ADDRESS 0xB0000000
#define MSIM_KBD_IRQ 2
48,6 → 48,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/mips32/src/console.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup mips32
/** @addtogroup mips32
* @{
*/
/** @file
64,6 → 64,5
msim_kbd_release();
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/mips32/src/cache.c
44,4 → 44,3
 
/** @}
*/
 
/trunk/kernel/arch/mips32/src/mips32.c
32,7 → 32,6
/** @file
*/
 
 
#include <arch.h>
#include <arch/boot.h>
#include <arch/cp0.h>
179,6 → 178,5
return 0;
}
 
 
/** @}
*/
/trunk/kernel/arch/mips32/src/ddi/ddi.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup mips32ddi
/** @addtogroup mips32ddi
* @{
*/
/** @file
55,6 → 55,5
return 0;
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/mips32/src/debugger.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup mips32debug
/** @addtogroup mips32debug
* @{
*/
/** @file
383,6 → 383,5
spinlock_unlock(&bkpoint_lock);
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/mips32/src/mm/as.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup mips32mm
/** @addtogroup mips32mm
* @{
*/
/** @file
72,7 → 72,5
interrupts_restore(ipl);
}
 
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/mips32/src/mm/page.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup mips32mm
/** @addtogroup mips32mm
* @{
*/
/** @file
50,6 → 50,5
return physaddr + 0xa0000000;
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/mips32/src/interrupt.c
143,4 → 143,3
 
/** @}
*/
 
/trunk/kernel/arch/mips32/src/drivers/serial.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup mips32
/** @addtogroup mips32
* @{
*/
/** @file
143,6 → 143,5
stdout = &console;
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/mips32/src/drivers/arc.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup mips32
/** @addtogroup mips32
* @{
*/
/** @file
407,7 → 407,5
config.memory_size = total;
}
 
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/mips32/src/drivers/msim.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup mips32
/** @addtogroup mips32
* @{
*/
/** @file
126,6 → 126,5
int_register(MSIM_KBD_IRQ, "user_interrupt", oldvector);
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/interrupt.h
32,8 → 32,8
/** @file
*/
 
#ifndef __ia32_INTERRUPT_H__
#define __ia32_INTERRUPT_H__
#ifndef KERN_ia32_INTERRUPT_H_
#define KERN_ia32_INTERRUPT_H_
 
#include <arch/types.h>
#include <arch/pm.h>
126,4 → 126,3
 
/** @}
*/
 
/trunk/kernel/arch/ia32/include/fpu_context.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
*/
 
#ifndef __ia32_FPU_CONTEXT_H__
#define __ia32_FPU_CONTEXT_H__
#ifndef KERN_ia32_FPU_CONTEXT_H_
#define KERN_ia32_FPU_CONTEXT_H_
 
#include <arch/types.h>
 
48,9 → 48,7
uint8_t fpu[512]; /* FXSAVE & FXRSTOR storage area */
};
 
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/byteorder.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
*/
 
#ifndef __ia32_BYTEORDER_H__
#define __ia32_BYTEORDER_H__
#ifndef KERN_ia32_BYTEORDER_H_
#define KERN_ia32_BYTEORDER_H_
 
/* IA-32 is little-endian */
#define unative_t_le2host(n) (n)
41,6 → 41,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/cpuid.h
32,8 → 32,8
/** @file
*/
 
#ifndef __ia32_CPUID_H__
#define __ia32_CPUID_H__
#ifndef KERN_ia32_CPUID_H_
#define KERN_ia32_CPUID_H_
 
#include <arch/types.h>
 
117,4 → 117,3
 
/** @}
*/
 
/trunk/kernel/arch/ia32/include/types.h
32,8 → 32,8
/** @file
*/
 
#ifndef __TYPES_H__
#define __TYPES_H__
#ifndef KERN_ia32_TYPES_H_
#define KERN_ia32_TYPES_H_
 
#define NULL 0
 
/trunk/kernel/arch/ia32/include/elf.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
*/
 
#ifndef __ia32_ELF_H__
#define __ia32_ELF_H__
#ifndef KERN_ia32_ELF_H_
#define KERN_ia32_ELF_H_
 
#define ELF_MACHINE EM_386
#define ELF_DATA_ENCODING ELFDATA2LSB
41,6 → 41,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/bios/bios.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
*/
 
#ifndef __BIOS_H__
#define __BIOS_H__
#ifndef KERN_ia32_BIOS_H_
#define KERN_ia32_BIOS_H_
 
#include <arch/types.h>
 
43,8 → 43,7
 
extern void bios_init(void);
 
#endif /* __BIOS_H__ */
#endif /* KERN_ia32_BIOS_H_ */
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/memstr.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
*/
 
#ifndef __ia32_MEMSTR_H__
#define __ia32_MEMSTR_H__
#ifndef KERN_ia32_MEMSTR_H_
#define KERN_ia32_MEMSTR_H_
 
/** Copy memory
*
147,6 → 147,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/arg.h
26,19 → 26,18
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
*/
 
#ifndef __ia32_ARG_H__
#define __ia32_ARG_H__
#ifndef KERN_ia32_ARG_H_
#define KERN_ia32_ARG_H_
 
#include <stackarg.h>
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/smp/apic.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
*/
 
#ifndef __APIC_H__
#define __APIC_H__
#ifndef KERN_ia32_APIC_H_
#define KERN_ia32_APIC_H_
 
#include <arch/types.h>
#include <cpu.h>
366,6 → 366,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/smp/mps.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
*/
 
#ifndef __MPS_H__
#define __MPS_H__
#ifndef KERN_ia32_MPS_H_
#define KERN_ia32_MPS_H_
 
#include <arch/types.h>
#include <typedefs.h>
130,6 → 130,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/smp/smp.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
*/
 
#ifndef __ia32_SMP_H__
#define __ia32_SMP_H__
#ifndef KERN_ia32_SMP_H_
#define KERN_ia32_SMP_H_
 
#include <arch/types.h>
#include <typedefs.h>
51,6 → 51,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/smp/ap.h
26,19 → 26,18
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
*/
 
#ifndef __AP_H__
#define __AP_H__
#ifndef KERN_ia32_AP_H_
#define KERN_ia32_AP_H_
 
extern void ap_boot(void);
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/ddi/ddi.h
34,8 → 34,8
* @brief ia32 specific DDI declarations and macros.
*/
 
#ifndef __ia32_DDI_H__
#define __ia32_DDI_H__
#ifndef KERN_ia32_DDI_H_
#define KERN_ia32_DDI_H_
 
extern void io_perm_bitmap_install(void);
 
43,4 → 43,3
 
/** @}
*/
 
/trunk/kernel/arch/ia32/include/atomic.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
*/
 
#ifndef __ia32_ATOMIC_H__
#define __ia32_ATOMIC_H__
#ifndef KERN_ia32_ATOMIC_H_
#define KERN_ia32_ATOMIC_H_
 
#include <arch/types.h>
#include <arch/barrier.h>
124,6 → 124,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/pm.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
*/
 
#ifndef __PM_H__
#define __PM_H__
#ifndef KERN_ia32_PM_H_
#define KERN_ia32_PM_H_
 
#define IDT_ITEMS 64
#define GDT_ITEMS 7
178,6 → 178,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/boot/memmap.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
*/
 
#ifndef __ia32_MEMMAP_H__
#define __ia32_MEMMAP_H__
#ifndef KERN_ia32_MEMMAP_H_
#define KERN_ia32_MEMMAP_H_
 
/* E820h memory range types - other values*/
/* Free memory */
73,6 → 73,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/boot/boot.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
*/
 
#ifndef __ia32_BOOT_H__
#define __ia32_BOOT_H__
#ifndef KERN_ia32_BOOT_H_
#define KERN_ia32_BOOT_H_
 
#define BOOT_OFFSET 0x108000
#define AP_BOOT_OFFSET 0x8000
46,6 → 46,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/asm.h
27,14 → 27,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
*/
 
#ifndef __ia32_ASM_H__
#define __ia32_ASM_H__
#ifndef KERN_ia32_ASM_H_
#define KERN_ia32_ASM_H_
 
#include <arch/pm.h>
#include <arch/types.h>
296,6 → 296,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/faddr.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
*/
 
#ifndef __ia32_FADDR_H__
#define __ia32_FADDR_H__
#ifndef KERN_ia32_FADDR_H_
#define KERN_ia32_FADDR_H_
 
#include <arch/types.h>
 
41,6 → 41,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/mm/frame.h
26,19 → 26,18
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32mm
/** @addtogroup ia32mm
* @{
*/
/** @file
*/
 
#ifndef __ia32_FRAME_H__
#define __ia32_FRAME_H__
#ifndef KERN_ia32_FRAME_H_
#define KERN_ia32_FRAME_H_
 
#define FRAME_WIDTH 12 /* 4K */
#define FRAME_SIZE (1<<FRAME_WIDTH)
 
 
#ifdef KERNEL
#ifndef __ASM__
 
53,6 → 52,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/mm/memory_init.h
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32mm
/** @addtogroup ia32mm
* @{
*/
/** @file
33,8 → 33,8
* @ingroup ia32mm, am64mm
*/
 
#ifndef __ia32_MEMORY_INIT_H__
#define __ia32_MEMORY_INIT_H__
#ifndef KERN_ia32_MEMORY_INIT_H_
#define KERN_ia32_MEMORY_INIT_H_
 
#include <typedefs.h>
 
44,6 → 44,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/mm/page.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32mm
/** @addtogroup ia32mm
* @{
*/
/** @file
*/
 
#ifndef __ia32_PAGE_H__
#define __ia32_PAGE_H__
#ifndef KERN_ia32_PAGE_H_
#define KERN_ia32_PAGE_H_
 
#include <arch/mm/frame.h>
 
168,6 → 168,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/mm/asid.h
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32mm
/** @addtogroup ia32mm
* @{
*/
/** @file
39,8 → 39,8
* interface.
*/
 
#ifndef __ia32_ASID_H__
#define __ia32_ASID_H__
#ifndef KERN_ia32_ASID_H_
#define KERN_ia32_ASID_H_
 
typedef int asid_t;
 
51,6 → 51,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/mm/tlb.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32mm
/** @addtogroup ia32mm
* @{
*/
/** @file
*/
 
#ifndef __ia32_TLB_H__
#define __ia32_TLB_H__
#ifndef KERN_ia32_TLB_H_
#define KERN_ia32_TLB_H_
 
#define tlb_arch_init()
#define tlb_print()
40,6 → 40,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/mm/as.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32mm
/** @addtogroup ia32mm
* @{
*/
/** @file
*/
 
#ifndef __ia32_AS_H__
#define __ia32_AS_H__
#ifndef KERN_ia32_AS_H_
#define KERN_ia32_AS_H_
 
#define KERNEL_ADDRESS_SPACE_SHADOWED_ARCH 0
 
50,6 → 50,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/context.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
*/
 
#ifndef __ia32_CONTEXT_H__
#define __ia32_CONTEXT_H__
#ifndef KERN_ia32_CONTEXT_H_
#define KERN_ia32_CONTEXT_H_
 
#include <arch/types.h>
 
63,6 → 63,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/debug.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup amd64debug
/** @addtogroup amd64debug
* @{
*/
/** @file
*/
 
#ifndef __ia32_DEBUG_H__
#define __ia32_DEBUG_H__
#ifndef KERN_ia32_DEBUG_H_
#define KERN_ia32_DEBUG_H_
 
#include <arch/asm.h>
 
41,6 → 41,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/barrier.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
*/
 
#ifndef __ia32_BARRIER_H__
#define __ia32_BARRIER_H__
#ifndef KERN_ia32_BARRIER_H_
#define KERN_ia32_BARRIER_H_
 
/*
* NOTE:
86,6 → 86,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/cpu.h
32,8 → 32,8
/** @file
*/
 
#ifndef __ia32_CPU_H__
#define __ia32_CPU_H__
#ifndef KERN_ia32_CPU_H_
#define KERN_ia32_CPU_H_
 
#include <typedefs.h>
#include <arch/pm.h>
/trunk/kernel/arch/ia32/include/drivers/i8254.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
*/
 
#ifndef __I8254_H__
#define __I8254_H__
#ifndef KERN_ia32_I8254_H_
#define KERN_ia32_I8254_H_
 
#include <arch/types.h>
 
43,6 → 43,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/drivers/ega.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
*/
 
#ifndef __EGA_H__
#define __EGA_H__
#ifndef KERN_ia32_EGA_H_
#define KERN_ia32_EGA_H_
 
#define VIDEORAM 0xb8000
#define ROW 80
44,6 → 44,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/drivers/vesa.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
*/
 
#ifndef __VESA_H__
#define __VESA_H__
#ifndef KERN_ia32_VESA_H_
#define KERN_ia32_VESA_H_
 
extern int vesa_present(void);
extern void vesa_init(void);
40,6 → 40,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/drivers/i8259.h
26,14 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
*/
 
#ifndef __I8259_H__
#define __I8259_H__
#ifndef KERN_ia32_I8259_H_
#define KERN_ia32_I8259_H_
 
#include <arch/types.h>
#include <arch/interrupt.h>
53,6 → 53,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/include/drivers/i8042.h
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
36,8 → 36,8
* This file implements ia32 specific access to i8042 registers.
*/
 
#ifndef __ia32_I8042_H__
#define __ia32_I8042_H__
#ifndef KERN_ia32_I8042_H_
#define KERN_ia32_I8042_H_
 
#include <arch/asm.h>
#include <arch/types.h>
67,6 → 67,5
 
#endif
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/src/ia32.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
155,6 → 155,5
i8042_release();
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/src/bios/bios.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
43,6 → 43,5
ebda = *((uint16_t *) BIOS_EBDA_PTR) * 0x10;
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/src/pm.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
236,6 → 236,5
gdtr_load(&cpugdtr);
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/src/smp/mps.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
430,6 → 430,5
 
#endif /* CONFIG_SMP */
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/src/smp/smp.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
180,6 → 180,5
 
#endif /* CONFIG_SMP */
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/src/smp/ipi.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
44,6 → 44,5
 
#endif /* CONFIG_SMP */
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/src/smp/apic.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
577,6 → 577,5
 
#endif /* CONFIG_SMP */
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/src/proc/thread.c
45,4 → 45,3
 
/** @}
*/
 
/trunk/kernel/arch/ia32/src/mm/tlb.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32mm
/** @addtogroup ia32mm
* @{
*/
/** @file
67,6 → 67,5
invlpg(page + i * PAGE_SIZE);
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/src/mm/as.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32mm
/** @addtogroup ia32mm
* @{
*/
/** @file
42,6 → 42,5
as_operations = &as_pt_operations;
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/src/mm/frame.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32mm
/** @addtogroup ia32mm
* @{
*/
/** @file
143,6 → 143,5
}
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/src/mm/memory_init.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32mm
/** @addtogroup ia32mm
* @{
*/
/** @file
75,7 → 75,5
 
}
 
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/src/mm/page.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32mm
/** @addtogroup ia32mm
* @{
*/
/** @file
117,6 → 117,5
}
}
 
/** @}
/** @}
*/
 
/trunk/kernel/arch/ia32/src/userspace.c
26,7 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup ia32
/** @addtogroup ia32
* @{
*/
/** @file
83,6 → 83,5
;
}
 
/** @}
/** @}
*/
 
/trunk/uspace/fb/fb.c
33,10 → 33,10
* @ingroup fbs
* @{
*/
 
/** @file
*/
 
 
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
1253,7 → 1253,6
return 0;
}
 
 
/**
* @}
*/
/trunk/uspace/libc/arch/sparc64/include/atomic.h
49,20 → 49,15
static inline long atomic_add(atomic_t *val, int i)
{
uint64_t a, b;
volatile uint64_t x = (uint64_t) &val->count;
 
__asm__ volatile (
"0:\n"
"ldx %0, %1\n"
"add %1, %3, %2\n"
"casx %0, %1, %2\n"
"cmp %1, %2\n"
"bne 0b\n" /* The operation failed and must be attempted again if a != b. */
"nop\n"
: "=m" (*((uint64_t *)x)), "=r" (a), "=r" (b)
: "r" (i)
);
do {
volatile uintptr_t x = (uint64_t) &val->count;
 
a = *((uint64_t *) x);
b = a + i;
__asm__ volatile ("casx %0, %1, %2\n": "+m" (*((uint64_t *)x)), "+r" (a), "+r" (b));
} while (a != b);
 
return a;
}