mirror of
https://github.com/drasko/codezero.git
synced 2026-01-13 11:23:16 +01:00
16 lines
307 B
C
16 lines
307 B
C
/*
|
|
* This is just to allocate some memory as a block device.
|
|
*/
|
|
#include <l4/macros.h>
|
|
#include <memfs/memfs.h>
|
|
|
|
extern char _start_bdev[];
|
|
extern char _end_bdev[];
|
|
|
|
__attribute__((section(".data.memfs"))) char blockdevice[MEMFS_TOTAL_SIZE];
|
|
|
|
void *vfs_rootdev_open(void)
|
|
{
|
|
return (void *)_start_bdev;
|
|
}
|