* Added overlay register definitions.

* The overlay register update buffer is now created and exported, ready
  to be used.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17244 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-04-26 17:50:30 +00:00
parent eea30ef36c
commit 22d4db9280
2 changed files with 148 additions and 1 deletions
@@ -76,7 +76,7 @@ intel_extreme_init(intel_info &info)
{
info.shared_area = create_area("intel extreme shared info",
(void **)&info.shared_info, B_ANY_KERNEL_ADDRESS,
ROUND_TO_PAGE_SIZE(sizeof(intel_shared_info)),
ROUND_TO_PAGE_SIZE(sizeof(intel_shared_info)) + B_PAGE_SIZE,
B_FULL_LOCK, 0);
if (info.shared_area < B_OK)
return info.shared_area;
@@ -155,6 +155,13 @@ intel_extreme_init(intel_info &info)
strcpy(info.shared_info->device_identifier, info.device_identifier);
#endif
// setup overlay registers
info.overlay_registers = (overlay_registers *)((addr_t)info.shared_info + B_PAGE_SIZE);
physical_entry physicalEntry;
get_memory_map(info.overlay_registers, sizeof(overlay_registers), &physicalEntry, 1);
info.shared_info->physical_overlay_registers = (uint8 *)physicalEntry.address;
info.cookie_magic = INTEL_COOKIE_MAGIC;
// this makes the cookie valid to be used