Changeset 34120f10 in mainline for boot/generic


Ignore:
Timestamp:
2023-10-27T19:38:31Z (2 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, topic/msim-upgrade, topic/simplify-dev-export
Children:
63ed840
Parents:
c89ae25 (diff), 694ca3d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge code deduplication work

TL;DR: Added directory /common, which now contains the sole existing
copy of ADT, printf_core, and a few other pieces. Should make changes
to any of those less of a headache.

Location:
boot/generic
Files:
3 deleted
4 edited
1 moved

Legend:

Unmodified
Added
Removed
  • boot/generic/include/assert.h

    rc89ae25 r34120f10  
    11/*
    2  * Copyright (c) 2006 Ondrej Palkovsky
     2 * Copyright (c) 2023 Jiří Zárevúcky
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup kernel_generic_mm
    30  * @{
    31  */
    32 /** @file
    33  */
     29#ifndef BOOT_ASSERT_H_
     30#define BOOT_ASSERT_H_
    3431
    35 #ifndef KERN_STDLIB_H_
    36 #define KERN_STDLIB_H_
     32#define assert(expr) ((void) (expr))
    3733
    38 #include <stddef.h>
    39 
    40 extern void *malloc(size_t)
    41     __attribute__((malloc));
    42 extern void *realloc(void *, size_t)
    43     __attribute__((warn_unused_result));
    44 extern void free(void *);
    45 
    46 #endif
    47 
    48 /** @}
    49  */
     34#endif /* BOOT_ASSERT_H_ */
  • boot/generic/include/errno.h

    rc89ae25 r34120f10  
    3939#define EINVAL     -14  /* Invalid value. */
    4040#define EOVERFLOW  -16  /* The result does not fit its size. */
     41#define EIO        -17
    4142
    4243typedef int errno_t;
  • boot/generic/src/gzip.c

    rc89ae25 r34120f10  
    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 r34120f10  
    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 r34120f10  
    3636#include <gzip.h>
    3737#include <stdbool.h>
    38 #include <memstr.h>
     38#include <mem.h>
    3939#include <errno.h>
    4040#include <str.h>
Note: See TracChangeset for help on using the changeset viewer.