Use macro wrappers for device op prototypes
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m35s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m35s
This commit is contained in:
@@ -6,19 +6,14 @@
|
||||
#include <status.h>
|
||||
#include <sys/debug.h>
|
||||
|
||||
bool debugconsole_init (struct device* device, void* arg, struct proc* proc,
|
||||
struct reschedule_ctx* rctx) {
|
||||
DEFINE_DEVICE_INIT (debugconsole_init) {
|
||||
(void)device, (void)arg, (void)proc, (void)rctx;
|
||||
return true;
|
||||
}
|
||||
|
||||
void debugconsole_fini (struct device* device, struct proc* proc, struct reschedule_ctx* rctx) {
|
||||
(void)device, (void)proc, (void)rctx;
|
||||
}
|
||||
DEFINE_DEVICE_FINI (debugconsole_fini) {}
|
||||
|
||||
int debugconsole_putstr (struct device* device, struct proc* proc, struct reschedule_ctx* rctx,
|
||||
uint64_t* lockflags, void* a1, void* a2, void* a3, void* a4) {
|
||||
(void)a2, (void)a3, (void)a4, (void)device, (void)rctx;
|
||||
DEFINE_DEVICE_OP (debugconsole_putstr) {
|
||||
uint64_t fp;
|
||||
|
||||
char* string = (char*)a1;
|
||||
|
||||
Reference in New Issue
Block a user