Kernel+Userland: Replace the beep syscall with the new /dev/beep device

There's no need to have separate syscall for this kind of functionality,
as we can just have a device node in /dev, called "beep", that allows
writing tone generation packets to emulate the same behavior.

In addition to that, we remove LibC sysbeep function, as this function
was never being used by any C program nor it was standardized in any
way.
Instead, we move the userspace implementation to LibCore.
This commit is contained in:
Liav A 2023-08-25 19:48:46 +03:00 committed by Tim Schumacher
commit 1b00618fd9
Notes: sideshowbarker 2024-07-17 09:56:35 +09:00
16 changed files with 128 additions and 58 deletions

View file

@ -25,6 +25,7 @@
#include <Kernel/Devices/Generic/FullDevice.h>
#include <Kernel/Devices/Generic/MemoryDevice.h>
#include <Kernel/Devices/Generic/NullDevice.h>
#include <Kernel/Devices/Generic/PCSpeakerDevice.h>
#include <Kernel/Devices/Generic/RandomDevice.h>
#include <Kernel/Devices/Generic/SelfTTYDevice.h>
#include <Kernel/Devices/Generic/ZeroDevice.h>
@ -380,6 +381,8 @@ void init_stage2(void*)
(void)MUST(RPi::MiniUART::create()).leak_ref();
#endif
(void)PCSpeakerDevice::must_create().leak_ref();
#if ARCH(X86_64)
VMWareBackdoor::the(); // don't wait until first mouse packet
#endif