Commit Graph
100 Commits
Author SHA1 Message Date
shockrah 0ded150732 fixed check for bochs-x eumlator 2020-04-22 20:47:00 -07:00
shockrah 0e903f912c i mean, its not triple faulting anymore 2019-12-05 03:21:22 -08:00
shockrah f4cfc6f64b adding base shell implementation(but its busted atm) 2019-12-05 02:45:19 -08:00
shockrah adfb460a5e calling main shell from kernel 2019-12-05 02:16:56 -08:00
shockrah e3b14232ea strcmp() added 2019-12-05 02:13:58 -08:00
shockrah 16041ec1d5 adding shell to the mix 2019-12-05 02:13:35 -08:00
shockrah bfce52a11a renamed a __kbd_state to __char_set and added note about gcc bs'ery 2019-12-05 01:38:57 -08:00
shockrah c3238b1dde adding NULL to types 2019-12-05 01:31:46 -08:00
shockrah 8296abd54b read() now reads the proper amount of data into our buffer as it should 2019-12-05 01:31:33 -08:00
shockrah 1af2fd3c52 added proper timing and key assignment in key press/release handler 2019-12-05 01:31:05 -08:00
shockrah b2d4a5ec1b updated read test to printout some debug things 2019-12-05 01:30:02 -08:00
shockrah 771536c427 more insight gained on how quick the pit timer moves for checking recent keypresses 2019-12-01 02:38:38 -08:00
shockrah 43a653ec8a include guardsd 2019-12-01 02:33:24 -08:00
shockrah cfce9256c2 updated tests to print out some debug info 2019-12-01 02:31:37 -08:00
shockrah 58da5af56c improvement: kbd_key_read now populates a bit mask containing information about state 2019-12-01 02:31:08 -08:00
shockrah 9be7091faa exposing timer ticks for use as time stamp later on 2019-12-01 02:28:02 -08:00
shockrahwow 92c24db1e6 fluff: moved some includes around and using test_read in kmain 2019-11-30 02:08:13 -08:00
shockrahwow 9937660702 read func definition 2019-11-30 02:07:38 -08:00
shockrahwow 4c96ace1ca testing read func call behavior 2019-11-30 02:06:04 -08:00
shockrahwow 0f2f814f9f true/false macros added 2019-11-29 16:53:57 -08:00
shockrahwow bc9c3b9dcc include guards 2019-11-29 16:53:39 -08:00
shockrahwow abcef63c21 newline support in putch 2019-11-29 16:50:33 -08:00
shockrahwow df5058ad4c extremely basicc but working keyboard interrupt handler 2019-11-29 13:37:20 -08:00
shockrahwow 9e97ca3d28 port added as well as kbd module to makefile 2019-11-29 13:29:48 -08:00
shockrahwow 0a8ea342c6 updated roadmap 2019-11-29 13:12:31 -08:00
shockrahwow b74cc93f8d committing intention with new keyboard module
functions to be implemented still*
2019-11-29 13:09:41 -08:00
shockrahwow a9d947c51f further refactor of pit functions
now they are all prepended with pit_
2019-11-29 13:08:59 -08:00
shockrahwow 3c8062ef17 renamed timer call 2019-11-29 13:08:26 -08:00
shockrahwow 292a8ba568 removing manual setup of keyboard interrupt as its not written in this patch yet 2019-11-29 13:08:01 -08:00
shockrahwow 66901857cd renamed serial_read_buffer to serial_read_byte to make its intention clear 2019-11-29 13:07:24 -08:00
shockrahwow 58dd3e9ceb include guards for types :) 2019-11-29 02:06:54 -08:00
shockrahwow 160389d470 removed fluff from kernel.c 2019-11-29 01:55:37 -08:00
shockrahwow 734806dfd4 removed bug from todos about broken timer interrupt 2019-11-29 01:54:24 -08:00
shockrahwow 8e5b59c7fd working timer interrupt 2019-11-29 01:53:46 -08:00
shockrahwow d5baae3734 printhex now a thing in stlio 2019-11-29 01:45:30 -08:00
shockrahwow a11c3c84bf new bug yay :( 2019-11-29 00:47:55 -08:00
shockrahwow 1fb8c16514 timer wait behavior is really fucked and debugging this is an awful pain so juust check todos 2019-11-29 00:46:42 -08:00
shockrahwow e3317e5d64 include guards for interrupt structures 2019-11-28 23:35:54 -08:00
shockrahwow 8c84915b71 removed int_keyboard
warning gets in the way and its not yet implemented anyway
2019-11-14 17:36:32 -08:00
shockrahwow d4108d8b24 pit_install_timer def and cleaner interface 2019-11-14 17:35:54 -08:00
shockrahwow 98eb93bc71 removing for now because of circular dep chain 2019-11-14 17:34:41 -08:00
shockrahwow fa048152c9 commiting for now as i've drawn a blank 2019-11-14 16:41:10 -08:00
shockrahwow 159ad1c789 goal is to get this to work when its ran/called 2019-11-14 16:40:52 -08:00
shockrahwow 124daeaa07 vscode things 2019-11-13 18:05:12 -08:00
shockrah af1d0d9c78 updated bugs list 2019-11-09 19:02:52 -08:00
shockrah c36651c5c7 base for pit initialization(not 2019-11-09 19:02:47 -08:00
shockrah d56780dc0b kmain no longer hangs on return
loader now has some instruction cookies to make debuggin easier
2019-11-09 18:19:22 -08:00
shockrah 0dfd0e9fe2 added irq dispatch handler
rn it just makes sure that execution continues
2019-11-09 17:37:20 -08:00
shockrah d1866c5e93 added kprintf and kprintp as random useful things to have
also changed bochsrc master path to jos.iso
2019-11-09 17:24:41 -08:00
shockrah c5c518cbdf download link added 2019-11-09 16:53:01 -08:00
shockrah f755cc2d3e fixed sytanx in pipeline yml 2019-11-09 14:58:34 -08:00
shockrah 66a5750166 Basic pipeline for now 2019-11-09 14:56:11 -08:00
shockrah 4bea237989 commit count added to stats script 2019-11-09 14:37:54 -08:00
shockrah c4cb07be82 pipeline for occasional releases 2019-11-09 14:25:05 -08:00
shockrah 5fd53fec1e changed iso target to jos.iso in prep for ci/d 2019-11-09 14:18:38 -08:00
shockrah b9193b6ab9 defs for irq methods 2019-11-09 00:31:31 -08:00
shockrah 6d1204f957 irq's functions registered 2019-11-09 00:31:19 -08:00
shockrah 9f5fdeafcf goals 2019-11-08 18:59:00 -08:00
shockrah 0eacca1d0e Merge branch 'master' of gitlab.com:shockrah/jankos 2019-11-07 10:58:43 -08:00
shockrah 566e65cfea skeleton for irq's 2019-11-07 10:58:25 -08:00
shockrahwow 012f2fb853 Merge branch 'master' of gitlab.com:shockrah/jankos 2019-11-07 10:13:59 -08:00
shockrah b111e7815f newly registered irq's 2019-11-07 03:41:20 -08:00
shockrah 41473c3832 ignoring gui debugger files 2019-11-07 03:05:39 -08:00
shockrah e34be4b1e7 Merge branch 'master' of gitlab.com:shockrah/jankos 2019-11-07 03:04:22 -08:00
shockrahwow 7f26a46ff8 gui debugger config keeps auto changing so its ignored 2019-11-06 19:52:39 -08:00
shockrahwow 511a6eb52a renamed interrupts to line up with indexes in table 2019-11-06 19:31:23 -08:00
shockrahwow b399556da1 gui debugger init file 2019-11-06 19:17:20 -08:00
shockrah afb5ea45d7 Merging updated interrupt debug code 2019-11-06 11:27:51 -08:00
shockrahwow c9e8873b8b protected mode breaks interrupt handling for some reason 2019-11-05 19:29:58 -08:00
shockrahwow 52cd597b2a enabled magic breakkpoints in bochs 2019-11-05 17:44:16 -08:00
shockrahwow 8660744a4f moved breakpoint to kmain to track interrupt problems 2019-11-05 17:44:03 -08:00
shockrah 588a3b6e89 visual debugger added to bochsrs 2019-11-05 15:39:10 -08:00
shockrah b4782bd919 proper div by zero in test case 2019-11-05 14:42:53 -08:00
shockrah 847a4090b8 Merge branch 'master' of gitlab.com:shockrah/jankos 2019-11-03 23:54:59 -08:00
shockrah c1cbfb3472 readme better reflects current project state 2019-10-30 23:21:48 -07:00
shockrahwow 80a4e7069a changing main interrupt_handler to take a pointer
also moving some logic around to help reson what's happening in recent errors
2019-10-30 23:18:49 -07:00
shockrahwow 35985d9199 removed fluff prints 2019-10-30 18:40:07 -07:00
shockrahwow d706c5c3f4 fixes broken segment reconstruction(i hope) 2019-10-30 18:39:54 -07:00
shockrahwow e5c2553bf5 * setting ID[i].zero to 0
* also adding louder prints to interrupt handler for now
2019-10-30 18:39:26 -07:00
shockrahwow 7eb8da29fc more concise tests 2019-10-30 18:37:37 -07:00
shockrahwow 48b7662dee removing Werror _for now_ while I debug isr's 2019-10-30 18:37:08 -07:00
shockrahwow c4bae42dd9 putch + broken interrupt handlers
int handlers only break when ran
2019-10-27 22:08:21 -07:00
shockrahwow 677c53165d Interrupt handlers are busted but only break when ran
oh yea and putch was added to stlio
2019-10-27 22:07:31 -07:00
shockrahwow fb1b7c868b srlen now respects const qualifiers 2019-10-27 21:21:59 -07:00
shockrahwow 5bc285b7ca Adding keyboard interrupt handler
as of right now its busted(doesn't printanythng)
2019-10-27 20:27:46 -07:00
shockrah a0752cba62 Moved load_idt to .s file 2019-10-24 03:03:08 -07:00
shockrahwow 3f95c1ec8b updated dones 2019-10-23 18:36:30 -07:00
shockrah 63fcc09cea removed annoying comments 2019-10-19 22:53:09 -07:00
shockrah 8b178f0992 interrupt service routines registered under init_idt, but not yet impl 2019-10-19 22:48:33 -07:00
shockrah 377622d87c prep for interrupt service handlers 2019-10-14 15:32:07 -07:00
shockrah fc33c711b3 interrupt descriptor table setup, but has no handlers yet 2019-10-14 14:06:22 -07:00
shockrah e8fc06943c moving strictly memory based utils to their own module for clarity sake 2019-10-14 14:02:21 -07:00
shockrah 18e4aba57f intel syntax support for inlined assembly and O2 for more memaccess efficient code 2019-10-14 03:10:38 -07:00
shockrah 7385ba7d7f adding structures to be used later in construction idt 2019-10-14 03:09:57 -07:00
shockrah a97affbe72 removed fluff files 2019-10-14 03:09:41 -07:00
shockrah b879ad943d memcpy & memset implementations in stlio 2019-10-14 02:27:31 -07:00
shockrah a417a74731 base working kernel with a gdt that doesn't restart emulator(no idea why this works yet) 2019-10-14 02:06:50 -07:00
shockrah 535f88a908 stats sript output slightly more meaningful now 2019-10-14 01:10:44 -07:00
shockrah 8a7d4e8994 removed unused stl files which are largely outdated now 2019-10-14 00:47:43 -07:00
shockrah 1b9ed26506 removing fluff that is not yet needed 2019-10-14 00:47:04 -07:00