dingusppc/devices
joevt 439509b408 Fix New World NVRAM limits calculations.
It was possible to corrupt New World nvram using dingusppc setenv command.

- setenv must call get_config_vars to set data_length so that it can calculate free space.
- data_length represents the number of bytes taken by nvram variables including the terminating null for the value (name, '=', value, '\0'). Previously, it did not include the terminating null.
- The list of variables and values ends at a '\0' or at pos == 4096 bytes. Previously, data_length wouldn't get set if pos >= 4096.
- Allow setenv to create new nvram variables.
- Since data_length now represents the total number of used bytes, free_space now represents the actual free space, so use > free_space (instead of >= free_space) to determine insufficient space.
- While parsing nvram variable name, do not read beyond 4096 bytes.
- Use a different error message for each problem that can occur while parsing nvram variable name.
2023-08-04 20:11:59 -07:00
..
common Fix New World NVRAM limits calculations. 2023-08-04 20:11:59 -07:00
ethernet bigmac: implement software reset registers. 2023-07-08 23:30:44 +02:00
floppy Fix compiler warnings: unused variables. 2023-01-11 01:17:12 -08:00
ioctrl AMIC: rework and improve interrupts. 2023-08-01 17:42:52 +02:00
memctrl Grackle: implement some register reads to avoid warnings. 2023-02-15 02:36:40 +01:00
serial Fix compiler warnings: never executed. 2023-01-11 01:17:12 -08:00
sound soundserver: silence some logging messages. 2023-04-23 21:40:21 +02:00
storage Add base class for CD-ROM drives. 2023-06-18 23:28:41 +02:00
video pdmonboard: switch to new video controller API. 2023-08-01 17:41:02 +02:00
CMakeLists.txt Add BlockStorageDevice class. 2023-06-18 23:27:10 +02:00
deviceregistry.cpp deviceregistry: add device_registered method. 2022-08-19 18:53:05 +02:00
deviceregistry.h deviceregistry: add device_registered method. 2022-08-19 18:53:05 +02:00