Search found 3 matches
- Thu Feb 10, 2011 8:14 pm
- Forum: Beginning OS Development
- Topic: Bitwise Operations in Physical Memory Manager
- Replies: 5
- Views: 25632
Re: Bitwise Operations in Physical Memory Manager
Ahh I had not even considered the endianness of the unsigned int. Ok, so say if I set the 10th bit in the second array index (map[1]). It will still be the 42nd bit. Am I right in saying that array indexes/values are still linear in memory it is just the values that are read right to left? map[0] ma...
- Thu Feb 10, 2011 1:17 pm
- Forum: Beginning OS Development
- Topic: Bitwise Operations in Physical Memory Manager
- Replies: 5
- Views: 25632
Re: Bitwise Operations in Physical Memory Manager
Yes but memory is linear from left to right.
Surely Bit 0 - Bit 1 - Bit 2 - Bit 3 should represent Block 1 - Block 2 - Block 3 - Block 4.
So therefore to "reserve" the 23rd block you would set the 23rd bit left to right?
Surely Bit 0 - Bit 1 - Bit 2 - Bit 3 should represent Block 1 - Block 2 - Block 3 - Block 4.
So therefore to "reserve" the 23rd block you would set the 23rd bit left to right?
- Thu Feb 10, 2011 11:55 am
- Forum: Beginning OS Development
- Topic: Bitwise Operations in Physical Memory Manager
- Replies: 5
- Views: 25632
Bitwise Operations in Physical Memory Manager
Hi, So I have been reading the articles over the last couple of weeks along with the osdev.org wiki and several other osdev resources. My main interest is to expand my knowledge in how lower level systems work. While I am familiar with bitwise operations, its been about a year since ive done any wor...