[PATCH rtems-libbsd 1/2] microblaze: Add AXI Ethernet support

Chris Johns chrisj at rtems.org
Thu Jan 20 06:30:00 UTC 2022


On 20/1/22 2:54 pm, Alex White wrote:
> From: Jennifer Averett <jennifer.averett at oarcorp.com>
>  rtemsbsd/rtems/rtems-kernel-vmem.c            |   17 +
> diff --git a/rtemsbsd/rtems/rtems-kernel-vmem.c b/rtemsbsd/rtems/rtems-kernel-vmem.c
> index f64fbd17..70708902 100644
> --- a/rtemsbsd/rtems/rtems-kernel-vmem.c
> +++ b/rtemsbsd/rtems/rtems-kernel-vmem.c
> @@ -41,6 +41,11 @@
>  
>  static MALLOC_DEFINE(M_VMEM, "vmem", "VMEM buffers");
>  
> +int vmem_add(vmem_t *vm, vmem_addr_t addr, vmem_size_t size, int flags)
> +{
> +	return 0;
> +}
> +
>  int
>  vmem_alloc(vmem_t *vm, vmem_size_t size, int flags, vmem_addr_t *addrp)
>  {
> @@ -48,6 +53,18 @@ vmem_alloc(vmem_t *vm, vmem_size_t size, int flags, vmem_addr_t *addrp)
>  	return 0;
>  }
>  
> +static int dummy_vmem;
> +
> +vmem_t *vmem_create(const char *name, vmem_addr_t base,
> +    vmem_size_t size, vmem_size_t quantum, vmem_size_t qcache_max, int flags)
> +{
> +	return &dummy_vmem;
> +}
> +
> +void vmem_destroy(vmem_t *vm)
> +{
> +}
> +
>  void
>  vmem_free(vmem_t *vm, vmem_addr_t addr, vmem_size_t size)
>  {

What is pulling this interface in?

Why have they been stubbed out?

Chris


More information about the devel mailing list