~vdupras/duskos-discuss

Add a reboot word to the 8042 driver. v1 SUPERSEDED

Arcade Wise: 1
 Add a reboot word to the 8042 driver.

 2 files changed, 6 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~vdupras/duskos-discuss/patches/37659/mbox | git am -3
Learn more about email & git

[PATCH] Add a reboot word to the 8042 driver. Export this patch

Signed-off-by: Arcade Wise <l3gacy.b3ta@disroot.org>
---
 fs/drv/pc/ps28042.fs  | 3 +++
 fs/drv/pc/ps28042p.fs | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/fs/drv/pc/ps28042.fs b/fs/drv/pc/ps28042.fs
index e1c6f79..db9b0c8 100644
--- a/fs/drv/pc/ps28042.fs
+++ b/fs/drv/pc/ps28042.fs
@@ -28,3 +28,6 @@ code isrIRQ1

\ You need to remap the PIC before calling this
: 8042ps2$ ['] isrIRQ1 $21 setISR 0 _ridx ! 0 _widx ! ;

\ Reboot using the 8042 interface to the reset pin
: reboot $FE $64 pc! ;
diff --git a/fs/drv/pc/ps28042p.fs b/fs/drv/pc/ps28042p.fs
index af8bcc9..8d59323 100644
--- a/fs/drv/pc/ps28042p.fs
+++ b/fs/drv/pc/ps28042p.fs
@@ -6,3 +6,6 @@ $64 const PS2CMD

: 8042ps2@? ( -- keycode? f )
  PS2CMD pc@ 1 and dup if PS2DATA pc@ swap then ;

\ Reboot using the 8042 interface to the reset pin
: reboot $FE $64 pc! ;
-- 
2.38.1