Subversion Repositories HelenOS-historic

Rev

Rev 1022 | Rev 1068 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1022 Rev 1058
Line 27... Line 27...
27
 */
27
 */
28
 
28
 
29
#ifndef __ASM_H__
29
#ifndef __ASM_H__
30
#define __ASM_H__
30
#define __ASM_H__
31
 
31
 
32
void flush_instruction_cache(void);
32
#define PAGE_SIZE 4096
33
void jump_to_kernel(void *code, void *memmap, void *real_mode) __attribute__((noreturn));
-
 
34
void real_mode(void *code, void *memmap);
33
#define PAGE_WIDTH 12
35
 
34
 
-
 
35
#define TRANS_SIZE 1024
-
 
36
#define TRANS_ITEM_SIZE 4
-
 
37
 
-
 
38
#define KERNEL_START_ADDR 0x80002000
-
 
39
 
-
 
40
#ifndef __ASM__
-
 
41
 
-
 
42
extern void *trans[TRANS_SIZE];
-
 
43
 
-
 
44
extern void halt();
36
#define memcpy(dst, src, cnt)  __builtin_memcpy((dst), (src), (cnt))
45
extern void jump_to_kernel(void *memmap, void *trans, unsigned int cnt, void *real_mode) __attribute__((noreturn));
-
 
46
extern void real_mode();
-
 
47
 
-
 
48
#endif
37
 
49
 
38
#endif
50
#endif