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

Cleanup among PCI/Memory constants #2733

Merged
merged 2 commits into from Aug 6, 2023
Merged

Cleanup among PCI/Memory constants #2733

merged 2 commits into from Aug 6, 2023

Conversation

FeralChild64
Copy link
Collaborator

When experimenting with PCI code I have found that start/end addresses of various memory areas are scattered across various files. This is dangerous - one can easily put a new PCI card in an already occupied space. It is better to have all these constants in one place.

Additionally, I have removed one empty header file.

@FeralChild64 FeralChild64 added the cleanup Non-functional changes that simplify, improve maintainability, or squash warnings label Aug 5, 2023
@FeralChild64 FeralChild64 self-assigned this Aug 5, 2023
@FeralChild64 FeralChild64 marked this pull request as ready for review August 5, 2023 21:22
include/pci_bus.h Outdated Show resolved Hide resolved
src/hardware/vga_s3.cpp Outdated Show resolved Hide resolved
src/ints/int10_modes.cpp Outdated Show resolved Hide resolved
Copy link
Member

@johnnovak johnnovak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good @FeralChild64 , just some minor comments.

@FeralChild64 FeralChild64 added the refactoring Code refactoring without any functional changes label Aug 6, 2023
@johnnovak johnnovak merged commit e3c6a32 into main Aug 6, 2023
50 checks passed
@FeralChild64 FeralChild64 deleted the fc/pci-memory-cleanup-1 branch August 12, 2023 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Non-functional changes that simplify, improve maintainability, or squash warnings refactoring Code refactoring without any functional changes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants