Mark the last memory page on an Aeris Epic as unreadable.
This commit is contained in:
parent
911513c578
commit
79dfa4becb
@ -65,6 +65,7 @@ static const device_backend_t oceanic_atom2_device_backend = {
|
||||
|
||||
static const unsigned char oceanic_wisdom2_version[] = "WISDOM R\0\0 512K";
|
||||
static const unsigned char oceanic_atom2_version[] = "2M ATOM r\0\0 512K";
|
||||
static const unsigned char oceanic_epic_version[] = "2M EPIC r\0\0 512K";
|
||||
static const unsigned char oceanic_oc1_version[] = "OCWATCH R\0\0 1024";
|
||||
|
||||
static const oceanic_common_layout_t oceanic_default_layout = {
|
||||
@ -322,6 +323,7 @@ oceanic_atom2_device_open (device_t **out, const char* name)
|
||||
if (oceanic_common_match (oceanic_oc1_version, device->version, sizeof (device->version)))
|
||||
device->base.layout = &oceanic_oc1_layout;
|
||||
else if (oceanic_common_match (oceanic_atom2_version, device->version, sizeof (device->version)) ||
|
||||
oceanic_common_match (oceanic_epic_version, device->version, sizeof (device->version)) ||
|
||||
oceanic_common_match (oceanic_wisdom2_version, device->version, sizeof (device->version)))
|
||||
device->base.layout = &oceanic_atom2_layout;
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user