Changeset 96e0748d in mainline for boot/arch/arm32
- Timestamp:
- 2009-02-17T22:47:27Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f89979b
- Parents:
- e662a5f
- Location:
- boot/arch/arm32/loader
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/loader/asm.h
re662a5f r96e0748d 33 33 /** @file 34 34 * @brief Functions implemented in assembly. 35 */ 35 */ 36 36 37 37 … … 41 41 42 42 /** Copies cnt bytes from dst to src. 43 * 43 * 44 44 * @param dst Destination address. 45 45 * @param src Source address. 46 * @param cnt Count of bytes to be copied. 46 * @param cnt Count of bytes to be copied. 47 47 */ 48 48 #define memcpy(dst, src, cnt) __builtin_memcpy((dst), (src), (cnt)) … … 59 59 /** Jumps to the kernel entry point. 60 60 * 61 * @param entry 62 * @param bootinfo 63 * @param bootinfo_size Size of the bootinfo structure.61 * @param entry Kernel entry point address. 62 * @param bootinfo Structure holding information about loaded tasks. 63 * 64 64 */ 65 extern void jump_to_kernel(void *entry, void *bootinfo, 66 unsigned int bootinfo_size) __attribute__((noreturn)); 65 extern void jump_to_kernel(void *entry, void *bootinfo) __attribute__((noreturn)); 67 66 68 67 -
boot/arch/arm32/loader/boot.S
re662a5f r96e0748d 54 54 page_table: 55 55 .skip PTL0_ENTRIES * PTL0_ENTRY_SIZE 56 57 -
boot/arch/arm32/loader/main.c
re662a5f r96e0748d 33 33 /** @file 34 34 * @brief Bootstrap. 35 */ 35 */ 36 36 37 37 … … 40 40 #include "_components.h" 41 41 #include <printf.h> 42 #include <align.h> 42 43 #include <macros.h> 43 44 … … 110 111 111 112 printf("\nBooting the kernel...\n"); 112 jump_to_kernel((void *) KERNEL_VIRTUAL_ADDRESS, &bootinfo , sizeof(bootinfo));113 jump_to_kernel((void *) KERNEL_VIRTUAL_ADDRESS, &bootinfo); 113 114 } 114 115 -
boot/arch/arm32/loader/main.h
re662a5f r96e0748d 33 33 /** @file 34 34 * @brief Boot related declarations. 35 */ 35 */ 36 36 37 37 … … 39 39 #define BOOT_arm32_MAIN_H 40 40 41 42 /** Aligns to the nearest higher address.43 *44 * @param addr Address or number to be aligned.45 * @param align Size of alignment, must be power of 2.46 */47 #define ALIGN_UP(addr, align) (((addr) + ((align) - 1)) & ~((align) - 1))48 41 49 42 /** Maximum number of tasks in the #bootinfo_t struct. */ … … 75 68 /** @} 76 69 */ 77
Note:
See TracChangeset
for help on using the changeset viewer.