Changeset 34120f10 in mainline for kernel/generic/include


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:
kernel/generic/include
Files:
7 deleted
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/cc.h

    rc89ae25 r34120f10  
    3838
    3939#ifndef __clang__
    40 #define ATTRIBUTE_OPTIMIZE(opt) \
    41         __attribute__ ((optimize(opt)))
    4240#define ATTRIBUTE_USED \
    4341        __attribute__ ((used))
    4442#else
    45 #define ATTRIBUTE_OPTIMIZE(opt)
    4643#define ATTRIBUTE_USED
    4744#endif
  • kernel/generic/include/cpu/cpu_mask.h

    rc89ae25 r34120f10  
    3737#include <cpu.h>
    3838#include <config.h>
    39 #include <lib/memfnc.h>
     39#include <memw.h>
    4040
    4141/** Iterates over all cpu id's whose bit is included in the cpu mask.
  • kernel/generic/include/memw.h

    rc89ae25 r34120f10  
    11/*
    2  * Copyright (c) 2005 Sergey Bondari
     2 * Copyright (c) 2001-2004 Jakub Jermar
    33 * All rights reserved.
    44 *
     
    3333 */
    3434
    35 #ifndef KERN_GSORT_H_
    36 #define KERN_GSORT_H_
     35#ifndef KERN_MEM_H_
     36#define KERN_MEM_H_
    3737
    38 #include <stdbool.h>
    3938#include <stddef.h>
     39#include <stdint.h>
    4040
    41 typedef int (*sort_cmp_t)(void *, void *, void *);
     41#include <mem.h>
    4242
    43 extern bool gsort(void *, size_t, size_t, sort_cmp_t, void *);
     43extern void memsetb(void *, size_t, uint8_t)
     44    __attribute__((nonnull(1)));
     45extern void memsetw(void *, size_t, uint16_t)
     46    __attribute__((nonnull(1)));
    4447
    4548#endif
Note: See TracChangeset for help on using the changeset viewer.