mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 19:35:09 +00:00
ByteBuffer: Remove pointer() in favor of data()
We had two ways to get the data inside a ByteBuffer. That was silly.
This commit is contained in:
parent
dd696e7c75
commit
8f45a259fc
30 changed files with 89 additions and 92 deletions
|
@ -207,9 +207,9 @@ void PATAChannel::detect_disks()
|
|||
|
||||
ByteBuffer wbuf = ByteBuffer::create_uninitialized(512);
|
||||
ByteBuffer bbuf = ByteBuffer::create_uninitialized(512);
|
||||
u8* b = bbuf.pointer();
|
||||
u16* w = (u16*)wbuf.pointer();
|
||||
const u16* wbufbase = (u16*)wbuf.pointer();
|
||||
u8* b = bbuf.data();
|
||||
u16* w = (u16*)wbuf.data();
|
||||
const u16* wbufbase = (u16*)wbuf.data();
|
||||
|
||||
for (u32 i = 0; i < 256; ++i) {
|
||||
u16 data = IO::in16(m_io_base + ATA_REG_DATA);
|
||||
|
@ -228,7 +228,7 @@ void PATAChannel::detect_disks()
|
|||
|
||||
kprintf(
|
||||
"PATAChannel: Name=\"%s\", C/H/Spt=%u/%u/%u\n",
|
||||
bbuf.pointer() + 54,
|
||||
bbuf.data() + 54,
|
||||
cyls,
|
||||
heads,
|
||||
spt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue