Changeset 34d9ab28 in mainline


Ignore:
Timestamp:
2005-10-26T00:07:17Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
807d2d4
Parents:
81e1396
Message:

Create genarch directory.
Move ppc32 ofw.[ch] to genarch.
Fix prototype for ofw_call() to return address instead of int (please review).
Fix copyright notice in sparc64/boot/boot.S.

Files:
1 added
6 edited
2 moved

Legend:

Unmodified
Added
Removed
  • Makefile

    r81e1396 r34d9ab28  
    11include Makefile.config
    22include arch/$(ARCH)/Makefile.inc
     3include genarch/Makefile.inc
    34
    45sources=src/cpu/cpu.c \
     
    5152endif
    5253arch_objects:=$(addsuffix .o,$(basename $(arch_sources)))
     54genarch_objects:=$(addsuffix .o,$(basename $(genarch_sources)))
    5355objects:=$(addsuffix .o,$(basename $(sources)))
    5456
     
    6163config:
    6264        find src/ include/ -name arch -type l -exec rm \{\} \;
     65        find src/ include/ -name genarch -type l -exec rm \{\} \;       
    6366        ln -s ../arch/$(ARCH)/src/ src/arch
    6467        ln -s ../arch/$(ARCH)/include/ include/arch
     68        ln -s ../genarch/src/ src/genarch
     69        ln -s ../genarch/include/ include/genarch
    6570
    6671depend:
    67         $(CC) $(CFLAGS) -M $(arch_sources) $(sources) >Makefile.depend
     72        $(CC) $(CFLAGS) -M $(arch_sources) $(genarch_sources) $(sources) >Makefile.depend
    6873
    6974build: kernel.bin boot
    7075
    7176clean:
    72         find src/ arch/$(ARCH)/src/ test/ -name '*.o' -exec rm \{\} \;
     77        find src/ arch/$(ARCH)/src/ genarch/src/ test/ -name '*.o' -exec rm \{\} \;
    7378        -rm *.bin kernel.map kernel.map.pre kernel.objdump src/debug/real_map.bin
    7479        $(MAKE) -C arch/$(ARCH)/boot/ clean
     
    7681dist-clean:
    7782        find src/ include/ -name arch -type l -exec rm \{\} \;
     83        find src/ include/ -name genarch -type l -exec rm \{\} \;       
    7884        -rm Makefile.depend
    7985        -$(MAKE) clean
    8086
    81 src/debug/real_map.bin: $(arch_objects) $(objects) $(test_objects) arch/$(ARCH)/_link.ld
     87src/debug/real_map.bin: $(arch_objects) $(genarch_objects) $(objects) $(test_objects) arch/$(ARCH)/_link.ld
    8288        $(OBJCOPY) -I binary -O $(BFD_NAME) -B $(BFD_ARCH) --prefix-sections=symtab Makefile src/debug/empty_map.o
    83         $(LD) -T arch/$(ARCH)/_link.ld $(LFLAGS) $(arch_objects) $(objects) $(test_objects) src/debug/empty_map.o -o $@ -Map kernel.map.pre
    84         $(OBJDUMP) -t $(arch_objects) $(objects) $(test_objects) > kernel.objdump
     89        $(LD) -T arch/$(ARCH)/_link.ld $(LFLAGS) $(arch_objects) $(genarch_objects) $(objects) $(test_objects) src/debug/empty_map.o -o $@ -Map kernel.map.pre
     90        $(OBJDUMP) -t $(arch_objects) $(genarch_objects) $(objects) $(test_objects) > kernel.objdump
    8591        tools/genmap.py kernel.map.pre kernel.objdump src/debug/real_map.bin
    8692
     
    8995
    9096
    91 kernel.bin: $(arch_objects) $(objects) $(test_objects) arch/$(ARCH)/_link.ld src/debug/real_map.o
    92         $(LD) -T arch/$(ARCH)/_link.ld $(LFLAGS) $(arch_objects) $(objects) $(test_objects) src/debug/real_map.o -o $@ -Map kernel.map
     97kernel.bin: $(arch_objects) $(genarch_objects) $(objects) $(test_objects) arch/$(ARCH)/_link.ld src/debug/real_map.o
     98        $(LD) -T arch/$(ARCH)/_link.ld $(LFLAGS) $(arch_objects) $(genarch_objects) $(objects) $(test_objects) src/debug/real_map.o -o $@ -Map kernel.map
    9399
    94100%.o: %.S
  • arch/ppc32/Makefile.inc

    r81e1396 r34d9ab28  
    3030        src/arch/mm/memory_init.c \
    3131        src/arch/mm/page.c \
    32         src/arch/drivers/ofw.c \
    3332        src/arch/fmath.c
  • arch/ppc32/include/arch.h

    r81e1396 r34d9ab28  
    3030#define __ppc32_ARCH_H__
    3131
    32 #include <arch/drivers/ofw.h>
     32#include <genarch/firmware/ofw/ofw.h>
    3333
    3434#ifdef early_mapping
  • arch/ppc32/src/mm/memory_init.c

    r81e1396 r34d9ab28  
    2828
    2929#include <arch/mm/memory_init.h>
    30 #include <arch/drivers/ofw.h>
     30#include <genarch/firmware/ofw/ofw.h>
    3131#include <panic.h>
    3232
  • arch/sparc64/boot/boot.S

    r81e1396 r34d9ab28  
    11#
    2 # Copyright (C) 2005 Martin Decky
     2# Copyright (C) 2005 Jakub Jermar
    33# All rights reserved.
    44#
  • arch/sparc64/src/dummy.s

    r81e1396 r34d9ab28  
    5656.global page_arch_init
    5757.global panic_printf
    58 .global putchar
    5958.global userspace
    6059
     
    8887page_arch_init:
    8988panic_printf:
    90 putchar:
    9189userspace:
    9290
  • genarch/include/firmware/ofw/ofw.h

    r81e1396 r34d9ab28  
    5454extern void ofw_init(void);
    5555extern void ofw_done(void);
    56 extern int ofw_call(const char *service, const int nargs, const int nret, ...);
     56extern __address ofw_call(const char *service, const int nargs, const int nret, ...);
    5757extern void ofw_putchar(const char ch);
    5858extern phandle ofw_find_device(const char *name);
  • genarch/src/firmware/ofw/ofw.c

    r81e1396 r34d9ab28  
    2727 */
    2828
    29 #include <arch/drivers/ofw.h>
     29#include <genarch/firmware/ofw/ofw.h>
    3030#include <arch/asm.h>
    3131#include <stdarg.h>
    3232#include <cpu.h>
     33#include <arch/types.h>
    3334
    3435ofw_entry ofw;
     
    5354}
    5455
    55 int ofw_call(const char *service, const int nargs, const int nret, ...)
     56__address ofw_call(const char *service, const int nargs, const int nret, ...)
    5657{
    5758        va_list list;
Note: See TracChangeset for help on using the changeset viewer.