mirror of
https://github.com/RGBCube/serenity
synced 2025-05-24 00:55:06 +00:00
Kernel: Rename instances of IO port 0xe9 to BOCHS_DEBUG_PORT
This commit is contained in:
parent
971523621c
commit
10ba6f254c
5 changed files with 17 additions and 10 deletions
|
@ -19,7 +19,7 @@ KResultOr<int> Process::sys$dump_backtrace()
|
|||
|
||||
KResultOr<int> Process::sys$dbgputch(u8 ch)
|
||||
{
|
||||
IO::out8(0xe9, ch);
|
||||
IO::out8(IO::BOCHS_DEBUG_PORT, ch);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,7 @@ KResultOr<size_t> Process::sys$dbgputstr(Userspace<const u8*> characters, int le
|
|||
return EFAULT;
|
||||
return buffer.value().read_buffered<1024>(length, [&](u8 const* buffer, size_t buffer_size) {
|
||||
for (size_t i = 0; i < buffer_size; ++i)
|
||||
IO::out8(0xe9, buffer[i]);
|
||||
IO::out8(IO::BOCHS_DEBUG_PORT, buffer[i]);
|
||||
return buffer_size;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue