Changeset 4872160 in mainline for kernel/arch/sparc64/include
- Timestamp:
- 2010-05-04T10:44:55Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 568db0f
- Parents:
- bb252ca
- Location:
- kernel/arch/sparc64/include
- Files:
-
- 2 edited
-
arch.h (modified) (2 diffs)
-
boot/boot.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/include/arch.h
rbb252ca r4872160 27 27 */ 28 28 29 /** @addtogroup sparc64 29 /** @addtogroup sparc64 30 30 * @{ 31 31 */ 32 32 /** 33 33 * @file 34 * @brief Various sparc64-specific macros.34 * @brief Various sparc64-specific macros. 35 35 */ 36 36 37 37 #ifndef KERN_sparc64_ARCH_H_ 38 38 #define KERN_sparc64_ARCH_H_ 39 40 #include <arch/boot/boot.h> 39 41 40 42 #if defined (SUN4U) … … 44 46 #endif 45 47 46 #define ASI_AIUP 0x10/** Access to primary context with user privileges. */47 #define ASI_AIUS 0x11/** Access to secondary context with user privileges. */48 #define ASI_AIUP 0x10 /** Access to primary context with user privileges. */ 49 #define ASI_AIUS 0x11 /** Access to secondary context with user privileges. */ 48 50 49 #define NWINDOWS 8/** Number of register window sets. */51 #define NWINDOWS 8 /** Number of register window sets. */ 50 52 51 53 #ifndef __ASM__ 52 54 53 extern void arch_pre_main( void);55 extern void arch_pre_main(bootinfo_t *); 54 56 55 57 #endif /* __ASM__ */ 56 57 58 58 59 #endif -
kernel/arch/sparc64/include/boot/boot.h
rbb252ca r4872160 27 27 */ 28 28 29 /** @addtogroup sparc64 29 /** @addtogroup sparc64 30 30 * @{ 31 31 */ … … 36 36 #define KERN_sparc64_BOOT_H_ 37 37 38 #define VMA 0x40000039 #define LMA VMA38 #define VMA 0x400000 39 #define LMA VMA 40 40 41 41 #ifndef __ASM__ … … 46 46 #include <genarch/ofw/ofw_tree.h> 47 47 48 #define TASKMAP_MAX_RECORDS 3249 #define MEMMAP_MAX_RECORDS 3248 #define TASKMAP_MAX_RECORDS 32 49 #define MEMMAP_MAX_RECORDS 32 50 50 51 #define BOOTINFO_TASK_NAME_BUFLEN 3251 #define BOOTINFO_TASK_NAME_BUFLEN 32 52 52 53 53 typedef struct { 54 void * addr;55 uint32_t size;54 void *addr; 55 size_t size; 56 56 char name[BOOTINFO_TASK_NAME_BUFLEN]; 57 57 } utask_t; 58 58 59 59 typedef struct { 60 uint32_t count;60 size_t cnt; 61 61 utask_t tasks[TASKMAP_MAX_RECORDS]; 62 62 } taskmap_t; 63 63 64 64 typedef struct { 65 uintptr_tstart;66 uint32_t size;65 void *start; 66 size_t size; 67 67 } memzone_t; 68 68 69 69 typedef struct { 70 uint 32_t total;71 uint32_t count;70 uint64_t total; 71 size_t cnt; 72 72 memzone_t zones[MEMMAP_MAX_RECORDS]; 73 73 } memmap_t; … … 76 76 * 77 77 * Must be in sync with bootinfo structure used by the boot loader. 78 * 78 79 */ 79 80 typedef struct { … … 85 86 } bootinfo_t; 86 87 87 extern bootinfo_t bootinfo; 88 extern memmap_t memmap; 89 extern uintptr_t physmem_start; 88 90 89 91 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
