Changeset d9f81af3 in mainline


Ignore:
Timestamp:
2005-09-01T01:08:51Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
75d5721
Parents:
470c468
Message:

Fixed bad type in frame.c.
Amd64 prints banner.

Files:
6 edited
1 moved

Legend:

Unmodified
Added
Removed
  • arch/amd64/Makefile.inc

    r470c468 rd9f81af3  
    2828        arch/amd64.c \
    2929        arch/bios/bios.c \
    30         arch/interrupt.c
     30        arch/interrupt.c \
     31        arch/mm/frame.c \
     32        arch/mm/page.c \
     33        arch/mm/tlb.c
  • arch/amd64/include/asm.h

    r470c468 rd9f81af3  
    140140static inline __u32 read_cr2(void) { __u64 v; __asm__ volatile ("movq %%cr2,%0" : "=r" (v)); return v; }
    141141
     142/** Write CR3
     143 *
     144 * Write value to CR3.
     145 *
     146 * @param v Value to be written.
     147 */
     148static inline void write_cr3(__u64 v) { __asm__ volatile ("movq %0,%%cr3\n" : : "r" (v)); }
     149
     150/** Read CR3
     151 *
     152 * Return value in CR3
     153 *
     154 * @return Value read.
     155 */
     156static inline __u32 read_cr3(void) { __u64 v; __asm__ volatile ("movq %%cr3,%0" : "=r" (v)); return v; }
     157
     158/** Set priority level low
     159 *
     160 * Enable interrupts and return previous
     161 * value of EFLAGS.
     162 */
     163
     164
    142165
    143166extern size_t interrupt_handler_size;
  • arch/amd64/src/boot/memmap.S

    r470c468 rd9f81af3  
    120120
    121121e820counter:
    122         .byte 0xff
     122        .byte 0x0
    123123
    124124e820table:
    125         .space  (32*E820_RECORD_SIZE),0xff # space for 32 records, each E820_RECORD_SIZE bytes long
     125        .space  (32*E820_RECORD_SIZE),0x0 # space for 32 records, each E820_RECORD_SIZE bytes long
  • arch/amd64/src/dummy.s

    r470c468 rd9f81af3  
    3636.global cpu_sleep
    3737.global cpu_print_report
    38 .global get_memory_size
    3938.global arch_late_init
    4039.global calibrate_delay_loop
    4140.global cpu_halt
    42 .global page_arch_init
    43 .global frame_arch_init
    4441.global dummy
    4542.global rdtsc
     
    4946.global interrupt_handler_size
    5047.global interrupt_handlers
     48.global memory_print_map
     49.global get_memory_size
     50
     51get_memory_size:
     52        movq $4*1024*1024, %rax
     53        ret
    5154
    5255interrupt_handler_size:
     
    6164cpu_sleep:
    6265cpu_print_report:
    63 get_memory_size:
    6466arch_late_init:
    6567calibrate_delay_loop:
    6668cpu_halt:
    67 page_arch_init:
    68 frame_arch_init:
    6969reset_TS_flag:
    70 fpu_init:       
     70fpu_init:
     71memory_print_map:       
    7172       
    7273dummy:
  • arch/amd64/src/mm/page.c

    r470c468 rd9f81af3  
    11/*
    2  * Copyright (C) 2005 Martin Decky
     2 * Copyright (C) 2001-2004 Jakub Jermar
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 #ifndef __amd64_MEMORY_INIT_H__
    30 #define __amd64_MEMORY_INIT_H__
     29#include <mm/page.h>
     30#include <arch/mm/page.h>
    3131
    32 #include <config.h>
    33 
    34 size_t get_memory_size(void);
    35 
    36 #endif
     32void page_arch_init(void)
     33{
     34}
  • src/build.amd64

    r470c468 rd9f81af3  
    66# Create links to ia32 architecture
    77for a in drivers bios interrupt.c; do
    8   ln -sf ../../../arch/ia32/src/$a ../arch/amd64/src/
     8  ln -sf ../../ia32/src/$a ../arch/amd64/src/
     9done
     10for a in frame.c tlb.c; do
     11  ln -sf ../../../ia32/src/mm/$a ../arch/amd64/src/mm
    912done
    1013
    1114for a in ega.h i8042.h i8259.h i8254.h cpuid.h interrupt.h bios; do
    12   ln -sf ../../../arch/ia32/include/$a ../arch/amd64/include/
     15  ln -sf ../../ia32/include/$a ../arch/amd64/include/
    1316done
     17ln -sf ../../../ia32/include/mm/memory_init.h ../arch/amd64/include/mm/
    1418
    1519make dist-clean ARCH=ia32
  • src/mm/frame.c

    r470c468 rd9f81af3  
    192192void frame_region_not_free(__address start, __address stop)
    193193{
    194         __u32 i;
     194        __address a;
    195195
    196196        start /= FRAME_SIZE;
    197197        stop /= FRAME_SIZE;
    198         for (i = start; i <= stop; i++)
    199                 frame_not_free(i * FRAME_SIZE);
    200 }
     198        for (a = start; a <= stop; a++)
     199                frame_not_free(a * FRAME_SIZE);
     200}
Note: See TracChangeset for help on using the changeset viewer.