Rev 2131 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2131 | Rev 2159 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /* |
1 | /* |
2 | * Copyright (c) 2003-2004 Jakub Jermar |
2 | * Copyright (c) 2007 Michal Kebrt |
3 | * All rights reserved. |
3 | * All rights reserved. |
4 | * |
4 | * |
5 | * Redistribution and use in source and binary forms, with or without |
5 | * Redistribution and use in source and binary forms, with or without |
6 | * modification, are permitted provided that the following conditions |
6 | * modification, are permitted provided that the following conditions |
7 | * are met: |
7 | * are met: |
Line 32... | Line 32... | ||
32 | /** @file |
32 | /** @file |
33 | */ |
33 | */ |
34 | 34 | ||
35 | 35 | ||
36 | #include <arch.h> |
36 | #include <arch.h> |
- | 37 | #include <arch/boot.h> |
|
- | 38 | #include <config.h> |
|
- | 39 | ||
- | 40 | bootinfo_t bootinfo; |
|
- | 41 | ||
- | 42 | static void aux_write(char * str) { |
|
- | 43 | while (*str) { |
|
- | 44 | *((char *)0x10000000) = *str; |
|
- | 45 | ++str; |
|
- | 46 | } |
|
- | 47 | } |
|
37 | 48 | ||
38 | void arch_pre_main(void) |
49 | void arch_pre_main(void) |
39 | { |
50 | { |
40 | /* TODO */ |
51 | int i; |
- | 52 | ||
- | 53 | init.cnt = bootinfo.cnt; |
|
- | 54 | ||
- | 55 | for (i = 0; i < bootinfo.cnt; ++i) { |
|
- | 56 | init.tasks[i].addr = bootinfo.tasks[i].addr; |
|
- | 57 | init.tasks[i].size = bootinfo.tasks[i].size; |
|
- | 58 | aux_write("X\n"); |
|
- | 59 | } |
|
- | 60 | ||
41 | } |
61 | } |
42 | 62 | ||
43 | void arch_pre_mm_init(void) |
63 | void arch_pre_mm_init(void) |
44 | { |
64 | { |
45 | /* TODO */ |
65 | /* TODO */ |