Rev 1 | Rev 16 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1 | Rev 15 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | #include <cpu.h> |
29 | #include <cpu.h> |
- | 30 | #include <arch.h> |
|
30 | #include <arch/cpu.h> |
31 | #include <arch/cpu.h> |
31 | #include <mm/heap.h> |
32 | #include <mm/heap.h> |
32 | #include <mm/page.h> |
33 | #include <mm/page.h> |
33 | #include <mm/frame.h> |
34 | #include <mm/frame.h> |
34 | #include <arch/types.h> |
35 | #include <arch/types.h> |
Line 82... | Line 83... | ||
82 | memsetb(frame, PAGE_SIZE, 0); |
83 | memsetb(frame, PAGE_SIZE, 0); |
83 | map_page_to_frame((__address) the, frame, PAGE_CACHEABLE, 1); |
84 | map_page_to_frame((__address) the, frame, PAGE_CACHEABLE, 1); |
84 | } |
85 | } |
85 | #endif /* __SMP__ */ |
86 | #endif /* __SMP__ */ |
86 | 87 | ||
87 | the->cpu = &cpus[config.cpu_active-1]; |
88 | CPU = &cpus[config.cpu_active-1]; |
88 | cpu_identify(); |
89 | cpu_identify(); |
89 | cpu_arch_init(); |
90 | cpu_arch_init(); |
90 | } |
91 | } |