
Сообщение от
xakep_tm1
Там требовалось основательно перелопатить код ядра чтобы адаптировать именно под БК.
Основательно перелопаченный вариант здесь: bkunix-0.2-beta.zip
Кстати, там уже исправлен глюк терминального буфера:
Код:
#define CROUND 7
/*
* The character lists-- space for 6*NCLIST characters if lucky,
* or 6 less otherwise: getc/putc needs the structs to be 8-aligned;
* cinit() takes care of that.
*/
struct cblock cfree[NCLIST];
/* List head for unused character blocks. */
struct cblock *cfreelist;
/*
* Initialize clist by freeing all character blocks, then count
* number of character devices. (Once-only routine)
*/
void
cinit()
{
register struct cblock *cp;
cp = (struct cblock*) (((int)cfree + CROUND) & ~CROUND);
for (; cp <= &cfree[NCLIST-1]; cp++) {
cp->c_next = cfreelist;
cfreelist = cp;
}
}
---------- Post added at 19:58 ---------- Previous post was at 19:34 ----------
Запустив там run0011.bat - можно загрузить bkunix в эмуляторе БК-0011М.
...