Board.KolibriOS.org
https://board.kolibrios.org/

APIC
https://board.kolibrios.org/viewtopic.php?f=1&t=1195
Page 12 of 12

Author:  Serge [ Mon Jun 10, 2013 2:14 pm ]
Post subject:  Re: APIC

CleverMouse
Спасибо, я проверю код apic немного позже. За два года уже всё забыл.

Author:  pascualle [ Sun Dec 21, 2014 5:59 pm ]
Post subject:  Re: APIC

Serge,

запустил /rd/1/drivers/acpi
убедился, evices.dat есть
сохранил образ на флешку

пошла перезагрузка

Создание процесса ядра
Инициализация IRQ
Инициализация PIC
Инициализация системной v86 машины
Инициализация системного таймера
Попытка инициализации APIC
Включить прерывания 2, 13
Поиск floppy дисководов
Запрещение прерывания в контроллере IDE
Поиск жестких дисков и ATAPI приводов
Запрещение прерывания в контроллере IDE
Поиск жестких дисков и ATAPI приводов
Получение памяти для кэша
Поиск разделов на дисковых устройствах
Инициализация системного каталога /sys
Инициализация рамдиска
Разрешение прерывания в контроллере IDE
Установка обработчиков прерываний IDE
Разрешение прерывания в контроллере IDE
Установка обработчиков прерываний IDE
APIC не найден
Количество оперативной памяти 3500
Установка настроек окон по умолчанию
Установка фона
Резервирование IRQ и портов
Частота процессора 3200
Установка мыши

черный экран и курсор мышки посредине, система ни на что не реагирует.

Attachments:
ACPI.LOG [13.35 KiB]
Downloaded 239 times

Author:  dunkaist [ Mon Mar 02, 2020 7:33 am ]
Post subject:  Re: APIC

I had a great time enabling kolibri on my relatively new laptop.

First I tried kolibri.efi from the latest autobuild. It booted but no devices worked except mouse and keyboard.

Then I prepared DEVICES.DAT file using devman by Serge and put the file to /DRIVERS/ directory. It booted but even mouse and keyboard didn't work.

It turned out that my laptop has two I/O APICs, what kolibri didn't expect. While parsing MADT table kolibri put the base address of the first I/O APIC to a variable, and then overwrote the variable with the base address of the second I/O APIC. Thus the first one was never set up properly.

Another issue was that kolibri didn't expect more than 24 interrupts. My laptop has two I/O APICs: one for 24 interrupts and another for 32, i.e. 56 total. It was not enough to just replace 24 with 56 in the corresponding macro because the active interrupt was indicated using a bitmask set/reset via bts/btr instructions, and 56 bits don't fit a single dword. I replaced bts/btr with functions.

It is interesting that our int 0x40 has the same vector as IRQ0x20 at the moment. In theory, I/O APIC can be programmed to map IRQs 0-0x1f to vectors IRQ+0x20, and IRQs 0x20+ to vectors IRQ+0x21. I didn't implement this, good luck.

I committed support for more than one I/O APIC and more than 24 interrupts in r7733. For PIC mode nothing should change.

PCIDEV program has been updated accordingly.

Unfortunately, neither ethernet nor sound cards work for me. However sata disks do work in native mode using ahci driver.

Author:  Leency [ Thu Apr 16, 2020 4:59 pm ]
Post subject:  Re: APIC

Reboot still doesn't work in Qemu. Is it hard to debug it and fix? Probably if we could fix QEMU then reboot will work on some real devices.

Attachments:
QEMU.zip [1.26 MiB]
Downloaded 57 times

Author:  dunkaist [ Fri Apr 17, 2020 9:54 am ]
Post subject:  Re: APIC

Quote:
QEMU PC emulator version 0.10.6, Copyright (c) 2003-2008 Fabrice Bellard


What about a more recent version (4.2.0 at the moment)?

Author:  Leency [ Sat Apr 18, 2020 3:06 pm ]
Post subject:  Re: APIC

dunkaist wrote:
Quote:
QEMU PC emulator version 0.10.6, Copyright (c) 2003-2008 Fabrice Bellard


What about a more recent version (4.2.0 at the moment)?

In the new QEMU reboot works well.

Author:  Ghost [ Wed May 13, 2020 8:00 am ]
Post subject:  Re: APIC

dunkaist wrote:
I committed support for more than one I/O APIC and more than 24 interrupts

Отличная работа!

Author:  Uri [ Sun May 17, 2020 9:35 pm ]
Post subject:  Eee PC 901 shutdown troubles

Hello Dunkaist!

Notebook Eee PC 901.
When I choose shutdown, os stop working, but notebook keep working until I press and hold power button.
When I choose core restart, system restart, but don,t start again.
Reset work correctly.

Author:  dunkaist [ Sun May 17, 2020 10:02 pm ]
Post subject:  Re: APIC

Uri,

Are you sure you report to 'APIC' topic an issue when APIC is enabled?
If yes, does shutdown work when APIC is disabled?

Author:  Kopa [ Tue Jun 23, 2020 5:43 pm ]
Post subject:  Re: APIC

А, можно добавить APIC в сборку KolibriOS для ручной загрузки в Drivers т.к. у меня без него не видны диски в системе.

Page 12 of 12 All times are UTC+03:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/