Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For Darwin, the default addressing mode is memory banks. #205

Merged
merged 1 commit into from
Jul 2, 2020

Conversation

rickyzhang82
Copy link
Contributor

When the host OS is Mac OS X, direct addressing in BII doesn't guarantee
that the allocated memory for frame buffer base address in the host
(FrameBaseHost) satisfies the following conditions:

  • FrameBaseHost > RamBaseHost
  • (FrameBaseHost - RamBaseHost) + Frame_Size < 4GiB
    where RamBaseHost refers to the emulated RAM base address in the host.

This may cause the random hang problem where the allocated frame address
failed to meet the conditions above.

Because the direct addressing mapping is a simple math:

RamAddrMac = RamAddrHost - RamBaseHost.

See details: #203

Signed-off-by: Ricky Zhang rickyzhang@gmail.com

When the host OS is Mac OS X, direct addressing in BII doesn't guarantee
that the allocated memory for frame buffer base address in the host
(FrameBaseHost) satisfies the following conditions:

- FrameBaseHost > RamBaseHost
- (FrameBaseHost - RamBaseHost) + Frame_Size < 4GiB
where RamBaseHost refers to the emulated RAM base address in the host.

This may cause the random hang problem where the allocated frame address
failed to meet the conditions above.

Because the direct addressing mapping is a simple math:

RamAddrMac = RamAddrHost - RamBaseHost.

See details: cebix#203

Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
@asvitkine asvitkine merged commit b49d9b7 into cebix:master Jul 2, 2020
@rickyzhang82 rickyzhang82 deleted the pr-fix-mac-hang branch July 2, 2020 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants