--- - branch: MAIN date: Mon Jun 12 09:23:39 UTC 2017 files: - new: '1.31' old: '1.30' path: src/sys/dev/hpc/hpckbd.c pathrev: src/sys/dev/hpc/hpckbd.c@1.31 type: modified id: 20170612T092339Z.4a6152dede74a06d77a444942aebcc309d13d996 log: | Restore wscons keymaps feature on hpcarm hpc ports need to alter keydesc data at runtime in order to load alternate keymaps. But since keydesc is const initialized data, it is mapped read only and the operation should fail. It seems older compiler failed to enforce the read-only mapping and this is why it used to work, but on recent NetBSD releases, the feature is broken. We fix it by duplicating the keydesc data once into a malloc'ed area that can be modified. module: src subject: 'CVS commit: src/sys/dev/hpc' unixtime: '1497259419' user: manu