Changeset c621f4aa in mainline for uspace/app/sbi/src/mytypes.h
- Timestamp:
- 2010-07-25T10:11:13Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 377cce8
- Parents:
- 24a2517 (diff), a2da43c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 moved
-
uspace/app/sbi/src/mytypes.h (moved) (moved from boot/arch/ppc32/loader/asm.h ) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sbi/src/mytypes.h
r24a2517 rc621f4aa 1 1 /* 2 * Copyright (c) 20 06 Martin Decky2 * Copyright (c) 2010 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 #ifndef BOOT_ppc32_ASM_H_30 #define BOOT_ppc32_ASM_H_29 #ifndef MYTYPES_H_ 30 #define MYTYPES_H_ 31 31 32 #define PAGE_WIDTH 12 33 #define PAGE_SIZE (1 << PAGE_WIDTH) 32 /** Boolean type compatible with builtin C 'boolean' operators. */ 33 typedef enum { 34 b_false = 0, 35 b_true = 1 36 } bool_t; 34 37 35 #define TRANS_SIZE 1024 36 #define BOOT_OFFSET 0x8000 38 /** Node state for walks. */ 39 typedef enum { 40 ws_unvisited, 41 ws_active, 42 ws_visited 43 } walk_state_t; 37 44 38 #define BALLOC_MAX_SIZE (128 * 1024) 45 /** Static vs. nonstatic */ 46 typedef enum { 47 sn_nonstatic, 48 sn_static 49 } statns_t; 39 50 40 #ifndef __ASM__ 51 /** Error return codes. */ 52 #include <errno.h> 53 #define EOK 0 41 54 42 #include "types.h" 43 #include "main.h" 44 #include "ofwarch.h" 45 46 #define PA2KA(x) (((uintptr_t) (x)) + 0x80000000) 47 48 extern uint8_t balloc_base[BALLOC_MAX_SIZE]; 49 extern uintptr_t trans[TRANS_SIZE]; 50 51 extern void halt(); 52 extern void jump_to_kernel(void *bootinfo, unsigned int bootinfo_size, 53 uintptr_t trans[], unsigned int kernel_size, void *real_mode) __attribute__((noreturn)); 54 extern void real_mode(); 55 56 #else 57 58 #define PA2KA(x) ((x) + 0x80000000) 55 #include "bigint_t.h" 56 #include "builtin_t.h" 57 #include "cspan_t.h" 58 #include "input_t.h" 59 #include "intmap_t.h" 60 #include "lex_t.h" 61 #include "list_t.h" 62 #include "parse_t.h" 63 #include "rdata_t.h" 64 #include "run_t.h" 65 #include "stree_t.h" 66 #include "strtab_t.h" 67 #include "stype_t.h" 68 #include "tdata_t.h" 59 69 60 70 #endif 61 62 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
