Changeset b169619 in mainline for boot


Ignore:
Timestamp:
2023-10-27T17:38:32Z (2 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, topic/msim-upgrade, topic/simplify-dev-export
Children:
44e8541
Parents:
c89ae25
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-27 13:19:20)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-27 17:38:32)
Message:

Deduplicate mem functions

There are a number of functions which are copied between
kernel, libc, and potentially boot too. mem*() functions
are first such offenders. All this duplicate code will
be moved to directory 'common'.

Location:
boot
Files:
1 added
1 deleted
18 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/arm32/meson.build

    rc89ae25 rb169619  
    6565        'src/mm.c',
    6666        'src/putchar.c',
     67        '../../../common/stdc/mem.c',
    6768        '../../genarch/src/division.c',
    68         '../../generic/src/memstr.c',
    6969        '../../generic/src/printf_core.c',
    7070        '../../generic/src/vprintf.c',
  • boot/arch/arm32/src/main.c

    rc89ae25 rb169619  
    4040#include <halt.h>
    4141#include <printf.h>
    42 #include <memstr.h>
     42#include <mem.h>
    4343#include <version.h>
    4444#include <macros.h>
  • boot/arch/arm64/meson.build

    rc89ae25 rb169619  
    4848        'src/main.c',
    4949        'src/relocate.c',
     50        '../../../common/stdc/mem.c',
    5051        '../../genarch/src/efi.c',
    5152        '../../generic/src/gzip.c',
    5253        '../../generic/src/inflate.c',
    5354        '../../generic/src/kernel.c',
    54         '../../generic/src/memstr.c',
    5555        '../../generic/src/payload.c',
    5656        '../../generic/src/printf.c',
  • boot/arch/arm64/src/main.c

    rc89ae25 rb169619  
    4646#include <kernel.h>
    4747#include <macros.h>
    48 #include <memstr.h>
     48#include <mem.h>
    4949#include <payload.h>
    5050#include <printf.h>
  • boot/arch/ia64/meson.build

    rc89ae25 rb169619  
    4141        'src/pal_asm.S',
    4242        'src/putchar.c',
     43        '../../../common/stdc/mem.c',
    4344        '../../genarch/src/efi.c',
    4445        '../../genarch/src/division.c',
    4546        '../../generic/src/balloc.c',
    46         '../../generic/src/memstr.c',
    4747        '../../generic/src/printf_core.c',
    4848        '../../generic/src/vprintf.c',
  • boot/arch/ia64/src/main.c

    rc89ae25 rb169619  
    3737#include <halt.h>
    3838#include <printf.h>
    39 #include <memstr.h>
     39#include <mem.h>
    4040#include <version.h>
    4141#include <macros.h>
  • boot/arch/mips32/meson.build

    rc89ae25 rb169619  
    4242        'src/main.c',
    4343        'src/putchar.c',
     44        '../../../common/stdc/mem.c',
    4445        '../../genarch/src/division.c',
    4546        '../../genarch/src/multiplication.c',
    46         '../../generic/src/memstr.c',
    4747        '../../generic/src/printf_core.c',
    4848        '../../generic/src/vprintf.c',
  • boot/arch/mips32/src/main.c

    rc89ae25 rb169619  
    3333#include <halt.h>
    3434#include <printf.h>
    35 #include <memstr.h>
     35#include <mem.h>
    3636#include <version.h>
    3737#include <macros.h>
  • boot/arch/ppc32/meson.build

    rc89ae25 rb169619  
    3737        'src/ofw.c',
    3838
     39        '../../../common/stdc/mem.c',
    3940        '../../genarch/src/ofw.c',
    4041        '../../genarch/src/ofw_tree.c',
     
    4243        '../../genarch/src/multiplication.c',
    4344        '../../generic/src/balloc.c',
    44         '../../generic/src/memstr.c',
    4545        '../../generic/src/printf_core.c',
    4646        '../../generic/src/vprintf.c',
  • boot/arch/ppc32/src/main.c

    rc89ae25 rb169619  
    3535#include <halt.h>
    3636#include <printf.h>
    37 #include <memstr.h>
     37#include <mem.h>
    3838#include <version.h>
    3939#include <macros.h>
  • boot/arch/riscv64/meson.build

    rc89ae25 rb169619  
    3737        'src/ucb.c',
    3838        'src/putchar.c',
    39         '../../generic/src/memstr.c',
     39
     40        '../../../common/stdc/mem.c',
    4041        '../../generic/src/printf_core.c',
    4142        '../../generic/src/vprintf.c',
  • boot/arch/sparc64/meson.build

    rc89ae25 rb169619  
    3737        'src/ofw.c',
    3838
     39        '../../../common/stdc/mem.c',
    3940        '../../genarch/src/ofw.c',
    4041        '../../genarch/src/ofw_tree.c',
    4142        '../../generic/src/balloc.c',
    42         '../../generic/src/memstr.c',
    4343        '../../generic/src/printf_core.c',
    4444        '../../generic/src/vprintf.c',
  • boot/arch/sparc64/src/main.c

    rc89ae25 rb169619  
    3636#include <halt.h>
    3737#include <printf.h>
    38 #include <memstr.h>
     38#include <mem.h>
    3939#include <version.h>
    4040#include <macros.h>
  • boot/genarch/src/ofw_tree.c

    rc89ae25 rb169619  
    3333#include <str.h>
    3434#include <balloc.h>
    35 #include <memstr.h>
     35#include <mem.h>
    3636
    3737static char path[OFW_TREE_PATH_MAX_LEN + 1];
  • boot/generic/src/gzip.c

    rc89ae25 rb169619  
    3232#include <stddef.h>
    3333#include <errno.h>
    34 #include <memstr.h>
     34#include <mem.h>
    3535#include <byteorder.h>
    3636#include <gzip.h>
  • boot/generic/src/inflate.c

    rc89ae25 rb169619  
    6969#include <stdint.h>
    7070#include <errno.h>
    71 #include <memstr.h>
     71#include <mem.h>
    7272#include <inflate.h>
    7373
  • boot/generic/src/payload.c

    rc89ae25 rb169619  
    3636#include <gzip.h>
    3737#include <stdbool.h>
    38 #include <memstr.h>
     38#include <mem.h>
    3939#include <errno.h>
    4040#include <str.h>
  • boot/meson.build

    rc89ae25 rb169619  
    7878                '../abi/arch'/BARCH/'include',
    7979                '../abi/include',
     80                '../common/include',
    8081        )
    8182
Note: See TracChangeset for help on using the changeset viewer.