/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 |
; |
} |
/** @} |
/** @} |
*/ |