mirror of https://github.com/zrafa/xinu-avr.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
492 B
19 lines
492 B
/* raminit.c - raminit */ |
|
|
|
#include <xinu.h> |
|
#include <ramdisk.h> |
|
|
|
struct ramdisk Ram; |
|
|
|
/*------------------------------------------------------------------------ |
|
* raminit - Initialize the remote disk system device |
|
*------------------------------------------------------------------------ |
|
*/ |
|
devcall raminit ( |
|
struct dentry *devptr /* Entry in device switch table */ |
|
) |
|
{ |
|
memcpy(Ram.disk, "hopeless", 8); |
|
memcpy( &Ram.disk[8], Ram.disk, RM_BLKSIZ * RM_BLKS - 8); |
|
return OK; |
|
}
|
|
|