Changeset 244f284 in mainline


Ignore:
Timestamp:
2005-05-13T21:45:35Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
eb43679
Parents:
da79d0fd
Message:

IA-64 cosmetics.
Add ski_init_console() and ski_putchar() to ski.c to perform ski specific tasks.

Change the copyright string in main.c to display both copyrights on a new line.

Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • arch/ia64/Makefile.inc

    rda79d0fd r244f284  
    2222        arch/ia64.c \
    2323        arch/fpu_context.c \
    24         arch/context.S
     24        arch/context.S \
     25        arch/ski/ski.c
  • arch/ia64/include/ski/ski.h

    rda79d0fd r244f284  
    3030#define __SKI_H__
    3131
    32 #define SKI_CONSOLE_INIT        20
    33 #define SKI_CONSOLE_PUTC        31
     32#define SKI_INIT_CONSOLE        20
     33#define SKI_PUTCHAR             31
     34
     35extern void ski_init_console(void);
     36extern void ski_putchar(const char ch);
    3437       
    3538#endif
  • arch/ia64/src/fake.s

    rda79d0fd r244f284  
    3434.global before_thread_runs_arch
    3535.global arch_late_init
    36 .global arch_post_mm_init
    37 .global arch_pre_mm_init
    3836.global cpu_arch_init
    3937.global cpu_halt
     
    5553asm_delay_loop:
    5654arch_late_init:
    57 arch_post_mm_init:
    58 arch_pre_mm_init:
    5955cpu_arch_init:
    6056cpu_halt:
  • arch/ia64/src/ia64.c

    rda79d0fd r244f284  
    2727 */
    2828
     29#include <arch.h>
     30#include <arch/ski/ski.h>
     31
     32void arch_pre_mm_init(void)
     33{
     34}
     35
     36void arch_post_mm_init(void)
     37{
     38        ski_init_console();
     39}
  • arch/ia64/src/putchar.c

    rda79d0fd r244f284  
    2828
    2929#include <putchar.h>
    30 #include <arch/types.h>
    3130#include <arch/ski/ski.h>
    3231
    3332void putchar(const char ch)
    3433{
    35         __asm__ (
    36                 "mov r15=%0\n"
    37                 "mov r32=%1\n"          /* r32 is in0 */
    38                 "break 0x80000\n"       /* modifies r8 */
    39                 :
    40                 : "i" (SKI_CONSOLE_PUTC), "r" (ch)
    41                 : "r15", "in0", "r8"
    42         );
    43        
    44         if (ch == '\n') putchar('\r');
     34        ski_putchar(ch);
    4535}
  • arch/ia64/src/start.S

    rda79d0fd r244f284  
    2727#
    2828
    29 #include <arch/ski/ski.h>
    30 
    3129.section K_TEXT_START
    3230.global k_text_start
     
    5250        movl r8 = k_text_start  ;;
    5351        movl r9 = k_text_end    ;;
    54         sub r8 = r9, r8         ;;
     52        sub r8 = r9, r8         
    5553        addl r10 = @gprel(hardcoded_ktext_size), gp;;
    5654        st4 [r10] = r8          ;;
     
    5856        movl r8 = k_data_start  ;;
    5957        movl r9 = k_data_end    ;;
    60         sub r8 = r9, r8         ;;
     58        sub r8 = r9, r8         
    6159        addl r10 = @gprel(hardcoded_kdata_size), gp;;
    6260        st4 [r10] = r8          ;;
     
    6563        st8 [r10] = r1
    6664       
    67         # initialize Ski console using SSC (Simulator System Call)
    68         mov r15=SKI_CONSOLE_INIT
    69         break 0x80000
    70 
    7165        br.call.sptk.many b0=main_bsp
    7266
  • src/main/main.c

    rda79d0fd r244f284  
    5757
    5858char *project = "SPARTAN kernel";
    59 char *copyright = "Copyright (C) 2001-2005 Jakub Jermar, Copyright (C) 2005 HelenOS project";
     59char *copyright = "Copyright (C) 2001-2005 Jakub Jermar\nCopyright (C) 2005 HelenOS project";
    6060
    6161config_t config;
Note: See TracChangeset for help on using the changeset viewer.