tpg/acess2.git
14 years agoCleanups & Implementations to allow IPStack to compile
John Hodge [Tue, 17 Nov 2009 16:31:45 +0000 (00:31 +0800)]
Cleanups & Implementations to allow IPStack to compile
- IPStack module now compiles (still unusable)
- Added Network Device spec file (tpl_drv_network.h)
- Shuffled definitions between vfs.h and vfs_ext.h
- Added thorough sanity checking to System calls (except IOCtl as
  the driver is the only code that knows what it means)
- Cleaned up makefiles to delete Dumps and Disassemblies
- Added USB core file to tree
- Implemented DRV_IOCTL_LOOKUP and NET_IOCTL_GETMAC in NE2000 driver
  in prepararion for IPStack.

14 years agoFixed implementation of ChRoot
John Hodge [Mon, 16 Nov 2009 03:14:17 +0000 (11:14 +0800)]
Fixed implementation of ChRoot
(it could be bypassed by using ..)

14 years agoForgot to build test :S Added defintion of CFG_VFS_CHROOT
John Hodge [Sun, 15 Nov 2009 15:27:28 +0000 (23:27 +0800)]
Forgot to build test :S Added defintion of CFG_VFS_CHROOT

14 years agoAdded ChRoot Support (untested)
John Hodge [Sun, 15 Nov 2009 13:03:08 +0000 (21:03 +0800)]
Added ChRoot Support (untested)

14 years agoFixes and Cleanup
John Hodge [Fri, 13 Nov 2009 07:09:46 +0000 (15:09 +0800)]
Fixes and Cleanup
- Fixed text mode in BochsGA driver and hence set it to the VTerm default
- Moved Ext2 Filesystem driver to Modules tree (As FS_Ext2)
- Included root Makefile in git tree
- Slight changes to the in-process USB code
- Updated the README
- Inconcequential changes to other files

14 years agoAdding several modules to the Tree, plus some files that escaped earlier
John Hodge [Tue, 10 Nov 2009 05:21:38 +0000 (13:21 +0800)]
Adding several modules to the Tree, plus some files that escaped earlier
- Added the in-progress IP Stack
- Added the in-progress USB Stack
- Added module's linker script
- Added tpl_drv_terminal.h (Terminal Emulator defintions)
- Added libreadline (my own version)
- Added Usermode/stddef.h

14 years agoGeneral Cleanup, Implemented DMA Allocation
John Hodge [Tue, 10 Nov 2009 05:14:31 +0000 (13:14 +0800)]
General Cleanup, Implemented DMA Allocation
- Cleaned up debugging and added notice of loading a module
- Added doxygen comments to common.h
- Fixed the dynamic modules not loading due to a buggy linker script
- Added MM_AllocDMA to allow memory of a specific bit depth to be allocated
- Various bugfixes and export adds

14 years agoAdded Doxygen files
John Hodge [Fri, 6 Nov 2009 10:35:29 +0000 (18:35 +0800)]
Added Doxygen files

14 years agoAdded IO Cache Library, Moved FDD Driver to Modules Tree, Fixed Doxygen commenting
John Hodge [Fri, 6 Nov 2009 10:29:56 +0000 (18:29 +0800)]
Added IO Cache Library, Moved FDD Driver to Modules Tree, Fixed Doxygen commenting

14 years agoImplemented Dependency resolving for compile-time modules and Updated the README
John Hodge [Tue, 27 Oct 2009 05:00:05 +0000 (13:00 +0800)]
Implemented Dependency resolving for compile-time modules and Updated the README
- Added more early debug code (See arch/.../errors.c)
- Added dependencies to drivers
- Implemented dependcy resolving in modules.c
- Disabled FAT chaching and fixed bugs that showed
- Updated README to show how to configure and build

14 years agoImproved VTerm support
John Hodge [Mon, 26 Oct 2009 14:16:41 +0000 (22:16 +0800)]
Improved VTerm support
- Fixed VTerm changing (Ctrl-Alt-F[1-12] sets the Vterm to 0-11)
- Made the kernel output to VTerm 7 after loading drivers
- Added 'calloc' to clean up VTerm code

14 years agoFixes to Libc, Doxygen Comments and VTerm layout
John Hodge [Mon, 26 Oct 2009 04:54:31 +0000 (12:54 +0800)]
Fixes to Libc, Doxygen Comments and VTerm layout
- Fixed Libc so that zlib could compile against it (still some bugs to get rid of)
- Fixed doxygen commenting
- Fixed a bug in the Makefile (used %* instead of $*)
- Changed the structure of the VTerm driver to facilitate kernel modesetting properly

14 years agoAdding module tree to git, added SYS_LOADMOD to allow usermode module loading
John Hodge [Sun, 18 Oct 2009 12:25:46 +0000 (20:25 +0800)]
Adding module tree to git, added SYS_LOADMOD to allow usermode module loading

14 years agoMultiple changes (Module Interopability, Timers, FDD Driver, VFS Bugs)
John Hodge [Sun, 18 Oct 2009 11:19:57 +0000 (19:19 +0800)]
Multiple changes (Module Interopability, Timers, FDD Driver, VFS Bugs)

- Changed kernel to be compiled withough -fleading-underscore to allow
  modules to be statically linked with the kernel successfully.
- Moved the BochsVBE driver to the Modules tree
- Cleaned up and disabled debug in the FDD driver
- Fixed bugs in VFS_MkNod that caused an infinite loop
- Cleanup in FAT and EXT2 Drivers

14 years agoAdded the gitignore file to stop object and dependency files showing up
John Hodge [Thu, 15 Oct 2009 13:33:58 +0000 (21:33 +0800)]
Added the gitignore file to stop object and dependency files showing up

14 years agoVarious Changes
John Hodge [Thu, 15 Oct 2009 13:30:48 +0000 (21:30 +0800)]
Various Changes

- Double fault protection
- Optomised Memory Functions (also added memcmp)
- Added worker threads
- Fixes to the timer code (stop the RTC firing at 1024 Hz)
- Re-included the FDD driver
- Moved the NE2000 driver to /Modules
- Inconcequential changes to system.c
- Added block allocation to fs/ext2
- Changed the makefiles to support static linking of modules

14 years agoFixed network triple fault, packets now send successfully.
John Hodge [Sun, 11 Oct 2009 07:55:04 +0000 (15:55 +0800)]
Fixed network triple fault, packets now send successfully.
Changed RTC to fire at 4 Hz, instead of 1024Hz
Slight changes to EXT2, library functions and IRQ handling

14 years agoImplemented basic disk write support in EXT2.
John Hodge [Sun, 11 Oct 2009 01:54:05 +0000 (09:54 +0800)]
Implemented basic disk write support in EXT2.
Fixed Debug_HexDump bug.
Made changes to NE2000 driver (now triplefaults on write, instead of doing nothing

14 years agoFixed the RTC only firing once.
John Hodge [Sat, 10 Oct 2009 04:42:44 +0000 (12:42 +0800)]
Fixed the RTC only firing once.
Also added the <acess/devices.h> usermode header that will be used by the GUI

14 years agoAdded Driver Utils to git tree
John Hodge [Sat, 10 Oct 2009 04:10:40 +0000 (12:10 +0800)]
Added Driver Utils to git tree

14 years agoCleaned up ATA driver (not only 3 functions in the Read chain, instead of 4)
John Hodge [Sat, 10 Oct 2009 04:09:37 +0000 (12:09 +0800)]
Cleaned up ATA driver (not only 3 functions in the Read chain, instead of 4)

14 years agoFixed Infinite reading in ext2 driver, removed debug from DrvUitl
John Hodge [Sat, 10 Oct 2009 01:53:33 +0000 (09:53 +0800)]
Fixed Infinite reading in ext2 driver, removed debug from DrvUitl

14 years agoFixed Triple Fault in EXT2 driver/hdd driver
John Hodge [Sat, 10 Oct 2009 01:06:00 +0000 (09:06 +0800)]
Fixed Triple Fault in EXT2 driver/hdd driver

14 years agoVarious Changes
John Hodge [Sat, 10 Oct 2009 00:33:55 +0000 (08:33 +0800)]
Various Changes
- Fixes to network driver (still doesn't work)
- Added EXT2 Driver (required changes to HDD driver and VFS Driver interface)
 > Seems to cause a Triple Fault
- Features and bugfixes for libc
- Implemented alternative directories for libraries in ld-acess
- Implemented usermode mount support (no unmount yet)

14 years agoEnabled WP flag in CR0 to allow COW to work if the kernel writes to the page
John Hodge [Sat, 3 Oct 2009 04:22:11 +0000 (12:22 +0800)]
Enabled WP flag in CR0 to allow COW to work if the kernel writes to the page
Fixed handling of . and ..

14 years agoFixed correctness in stdio, minor changes in ls to handle dirs with negative sizes
John Hodge [Sat, 3 Oct 2009 03:37:01 +0000 (11:37 +0800)]
Fixed correctness in stdio, minor changes in ls to handle dirs with negative sizes

14 years agoFixed bug where system would lock if a user task segfaulted (forgot to sti)
John Hodge [Fri, 2 Oct 2009 15:45:43 +0000 (23:45 +0800)]
Fixed bug where system would lock if a user task segfaulted (forgot to sti)
Cosmetic fix to login shell
Ignored tabs in CLI Shell

14 years agoFixed bug with handling of . and .. that was trashing the heap. Fixed soname of libgc...
John Hodge [Fri, 2 Oct 2009 15:22:01 +0000 (23:22 +0800)]
Fixed bug with handling of . and .. that was trashing the heap. Fixed soname of libgcc to libgcc.so instead of libgcc.acess.so

14 years agoCleanup
John Hodge [Fri, 2 Oct 2009 13:00:47 +0000 (21:00 +0800)]
Cleanup
- Unified the build systems for user and kernel space code
- Fixed bug in VFS when VFS_Open is called by user when the current working directory is NULL
- Added testing EXT2 and NE2000 drivers
- Added files forgotten in the FDD commit

14 years agoAdded sanity checking to VFS_OPEN
John Hodge [Fri, 2 Oct 2009 04:17:29 +0000 (12:17 +0800)]
Added sanity checking to VFS_OPEN

14 years agoRemoved Page directory dump, added a mention of the fault details before the table...
John Hodge [Fri, 2 Oct 2009 03:22:43 +0000 (11:22 +0800)]
Removed Page directory dump, added a mention of the fault details before the table dump. Added qsort function to libc

14 years agoDisabled the FDD driver
John Hodge [Thu, 1 Oct 2009 08:07:46 +0000 (16:07 +0800)]
Disabled the FDD driver

14 years agoActually initialised the DMA
John Hodge [Thu, 1 Oct 2009 08:06:53 +0000 (16:06 +0800)]
Actually initialised the DMA

14 years agoAdded DMA and FDD drivers to the tree
John Hodge [Thu, 1 Oct 2009 07:56:45 +0000 (15:56 +0800)]
Added DMA and FDD drivers to the tree

14 years agoAdded Timer functions, DMA Driver and FDD driver
John Hodge [Thu, 1 Oct 2009 07:55:50 +0000 (15:55 +0800)]
Added Timer functions, DMA Driver and FDD driver

14 years agoFixed CLIShell's `dir` command, added a logout/exit command. Added a newline after...
John Hodge [Thu, 1 Oct 2009 00:36:54 +0000 (08:36 +0800)]
Fixed CLIShell's `dir` command, added a logout/exit command. Added a newline after a failed login prompt

14 years agoUpdated the CLI Shell to use the new path, adding login to git
John Hodge [Wed, 30 Sep 2009 14:31:56 +0000 (22:31 +0800)]
Updated the CLI Shell to use the new path, adding login to git

14 years agoFixed Segfault if execve fails, fixed errors in LibC pertaining to stdin,... not...
John Hodge [Wed, 30 Sep 2009 14:29:48 +0000 (22:29 +0800)]
Fixed Segfault if execve fails, fixed errors in LibC pertaining to stdin,... not being set

14 years agoImplemented debug SYS_SETUID and SYS_SETGID (need to actually make them)
John Hodge [Wed, 30 Sep 2009 13:57:57 +0000 (21:57 +0800)]
Implemented debug SYS_SETUID and SYS_SETGID (need to actually make them)

14 years agoVerbosity in MM_PageFault for user Pagefaults
John Hodge [Wed, 30 Sep 2009 12:44:46 +0000 (20:44 +0800)]
Verbosity in MM_PageFault for user Pagefaults

14 years agoImmense cleanup of libc, implemening login program. Slight changes to ACL handling...
John Hodge [Wed, 30 Sep 2009 12:39:55 +0000 (20:39 +0800)]
Immense cleanup of libc, implemening login program. Slight changes to ACL handling and FAT driver

14 years agoPorting FIFO driver
John Hodge [Mon, 28 Sep 2009 13:37:53 +0000 (21:37 +0800)]
Porting FIFO driver

14 years agoStarted work on VTerm Fonts, slight changes to BochsVBE driver
John Hodge [Mon, 28 Sep 2009 13:37:01 +0000 (21:37 +0800)]
Started work on VTerm Fonts, slight changes to BochsVBE driver

14 years agoDebug
John Hodge [Mon, 28 Sep 2009 01:14:29 +0000 (09:14 +0800)]
Debug

14 years agoFixed invalid parameters passed to Threads_Exit by SYS_EXIT
John Hodge [Mon, 28 Sep 2009 01:12:18 +0000 (09:12 +0800)]
Fixed invalid parameters passed to Threads_Exit by SYS_EXIT

14 years agoDebug
John Hodge [Mon, 28 Sep 2009 01:09:04 +0000 (09:09 +0800)]
Debug

14 years agoCut down on debug, fixed tabs, made process tree be killed when root is killed
John Hodge [Mon, 28 Sep 2009 01:07:08 +0000 (09:07 +0800)]
Cut down on debug, fixed tabs, made process tree be killed when root is killed

14 years agoRemoved debug (VFS_GetAbsPath seems to be stable)
John Hodge [Sun, 27 Sep 2009 10:48:32 +0000 (18:48 +0800)]
Removed debug (VFS_GetAbsPath seems to be stable)

14 years agofixed EOS calculation
John Hodge [Sun, 27 Sep 2009 10:47:10 +0000 (18:47 +0800)]
fixed EOS calculation

14 years agotesting
John Hodge [Sun, 27 Sep 2009 10:42:24 +0000 (18:42 +0800)]
testing

14 years agotesting
John Hodge [Sun, 27 Sep 2009 10:41:01 +0000 (18:41 +0800)]
testing

14 years agoTesting
John Hodge [Sun, 27 Sep 2009 10:34:32 +0000 (18:34 +0800)]
Testing

14 years agoTesting
John Hodge [Sun, 27 Sep 2009 10:33:55 +0000 (18:33 +0800)]
Testing

14 years agoBugfixes, bugfixes, bugfixes
John Hodge [Sun, 27 Sep 2009 10:32:14 +0000 (18:32 +0800)]
Bugfixes, bugfixes, bugfixes

14 years agoFixed string being copied offset
John Hodge [Sun, 27 Sep 2009 10:30:20 +0000 (18:30 +0800)]
Fixed string being copied offset

14 years agoMade it _look_ like the leading / is included
John Hodge [Sun, 27 Sep 2009 10:25:30 +0000 (18:25 +0800)]
Made it _look_ like the leading / is included

14 years agoIncluded leading / in path parsing
John Hodge [Sun, 27 Sep 2009 10:24:30 +0000 (18:24 +0800)]
Included leading / in path parsing

14 years agoFixed offset issue with slashNum
John Hodge [Sun, 27 Sep 2009 10:23:20 +0000 (18:23 +0800)]
Fixed offset issue with slashNum

14 years agoCorrectness Fix: Stuff speed, now parses CWD with the rest of the path to fix issues...
John Hodge [Sun, 27 Sep 2009 10:21:30 +0000 (18:21 +0800)]
Correctness Fix: Stuff speed, now parses CWD with the rest of the path to fix issues with relative paths

14 years agoFixed: Used pos-increment instead of pre-increment
John Hodge [Sun, 27 Sep 2009 10:19:16 +0000 (18:19 +0800)]
Fixed: Used pos-increment instead of pre-increment

14 years agoDebug
John Hodge [Sun, 27 Sep 2009 10:17:07 +0000 (18:17 +0800)]
Debug

14 years agoFixed use of `pos` instead of `read` in first slash positions
John Hodge [Sun, 27 Sep 2009 10:14:35 +0000 (18:14 +0800)]
Fixed use of `pos` instead of `read` in first slash positions

14 years agoFixed strncmp
John Hodge [Sun, 27 Sep 2009 10:12:46 +0000 (18:12 +0800)]
Fixed strncmp

14 years agoDebug
John Hodge [Sun, 27 Sep 2009 10:10:02 +0000 (18:10 +0800)]
Debug

14 years agoDebug
John Hodge [Sun, 27 Sep 2009 10:08:24 +0000 (18:08 +0800)]
Debug

14 years agoDebug
John Hodge [Sun, 27 Sep 2009 10:06:40 +0000 (18:06 +0800)]
Debug

14 years agoFixed incorrect use of strpos
John Hodge [Sun, 27 Sep 2009 09:53:54 +0000 (17:53 +0800)]
Fixed incorrect use of strpos

14 years agoFixed: Not adding a trailing slash to CWD in VFS_GetAbsPath
John Hodge [Sun, 27 Sep 2009 09:42:47 +0000 (17:42 +0800)]
Fixed: Not adding a trailing slash to CWD in VFS_GetAbsPath

14 years agoRemove debug & add Debug
John Hodge [Sun, 27 Sep 2009 09:41:34 +0000 (17:41 +0800)]
Remove debug & add Debug

14 years agoFixed: Moved back to using symbolic keys for states
John Hodge [Sun, 27 Sep 2009 09:39:06 +0000 (17:39 +0800)]
Fixed: Moved back to using symbolic keys for states

14 years agoFixed: Increased key states array to accomidate full range
John Hodge [Sun, 27 Sep 2009 09:37:49 +0000 (17:37 +0800)]
Fixed: Increased key states array to accomidate full range

14 years agoDebug
John Hodge [Sun, 27 Sep 2009 09:36:30 +0000 (17:36 +0800)]
Debug

14 years agoDebug
John Hodge [Sun, 27 Sep 2009 09:33:59 +0000 (17:33 +0800)]
Debug

14 years agoDebug
John Hodge [Sun, 27 Sep 2009 09:33:14 +0000 (17:33 +0800)]
Debug

14 years agoFixed duplicate reference of heap locatons, and stopped CWD from being freed if it...
John Hodge [Sun, 27 Sep 2009 09:13:05 +0000 (17:13 +0800)]
Fixed duplicate reference of heap locatons, and stopped CWD from being freed if it is currently NULL

14 years agoFixed VFS_ChDir to handle symlinks by using VFS_Open
John Hodge [Sun, 27 Sep 2009 09:03:02 +0000 (17:03 +0800)]
Fixed VFS_ChDir to handle symlinks by using VFS_Open

14 years agoDebug
John Hodge [Sun, 27 Sep 2009 08:57:19 +0000 (16:57 +0800)]
Debug

14 years agoRemoved debug
John Hodge [Sun, 27 Sep 2009 08:54:38 +0000 (16:54 +0800)]
Removed debug

14 years agoDebug
John Hodge [Sun, 27 Sep 2009 08:52:49 +0000 (16:52 +0800)]
Debug

14 years agoRemoved debug
John Hodge [Sun, 27 Sep 2009 08:48:42 +0000 (16:48 +0800)]
Removed debug

14 years agoDebug
John Hodge [Sun, 27 Sep 2009 08:47:39 +0000 (16:47 +0800)]
Debug

14 years agoDebug
John Hodge [Sun, 27 Sep 2009 08:46:05 +0000 (16:46 +0800)]
Debug

14 years agoFixed FAT_Read to return number of bytes read. Created a simple `cat` command
John Hodge [Sun, 27 Sep 2009 08:43:12 +0000 (16:43 +0800)]
Fixed FAT_Read to return number of bytes read. Created a simple `cat` command

14 years agoFixed SYS_READ and SYS_WRITE to return correct values
John Hodge [Sun, 27 Sep 2009 08:35:57 +0000 (16:35 +0800)]
Fixed SYS_READ and SYS_WRITE to return correct values

14 years agoDisabled Debug
John Hodge [Sun, 27 Sep 2009 07:44:59 +0000 (15:44 +0800)]
Disabled Debug

14 years agoFixed MM_ClearUser not zeroing cleared entries
John Hodge [Sun, 27 Sep 2009 07:43:41 +0000 (15:43 +0800)]
Fixed MM_ClearUser not zeroing cleared entries

14 years agoDebug
John Hodge [Sun, 27 Sep 2009 07:41:09 +0000 (15:41 +0800)]
Debug

14 years agoDebug
John Hodge [Sun, 27 Sep 2009 07:39:34 +0000 (15:39 +0800)]
Debug

14 years agoDebug
John Hodge [Sun, 27 Sep 2009 07:37:49 +0000 (15:37 +0800)]
Debug

14 years agoFixed bit arithmatic
John Hodge [Sun, 27 Sep 2009 06:12:12 +0000 (14:12 +0800)]
Fixed bit arithmatic

14 years agoExtended MM_Dump to dump table addresses
John Hodge [Sun, 27 Sep 2009 06:10:50 +0000 (14:10 +0800)]
Extended MM_Dump to dump table addresses

14 years agoChanged user stack to be at 8M
John Hodge [Sun, 27 Sep 2009 06:06:02 +0000 (14:06 +0800)]
Changed user stack to be at 8M

14 years agoAdded catch for when rand() sticks
John Hodge [Sun, 27 Sep 2009 06:03:02 +0000 (14:03 +0800)]
Added catch for when rand() sticks

14 years agoChanged random values again
John Hodge [Sun, 27 Sep 2009 06:00:55 +0000 (14:00 +0800)]
Changed random values again

14 years agoChanged the random values A and C
John Hodge [Sun, 27 Sep 2009 05:59:26 +0000 (13:59 +0800)]
Changed the random values A and C

14 years agoDebug statement in rand()
John Hodge [Sun, 27 Sep 2009 05:58:26 +0000 (13:58 +0800)]
Debug statement in rand()

14 years agoAdded tracing of ticket draws
John Hodge [Sun, 27 Sep 2009 05:46:51 +0000 (13:46 +0800)]
Added tracing of ticket draws

14 years agoMoved adding a task to the active list to threads.c
John Hodge [Sun, 27 Sep 2009 05:44:57 +0000 (13:44 +0800)]
Moved adding a task to the active list to threads.c

14 years agoAdded debug to Threads_GetNext
John Hodge [Sun, 27 Sep 2009 05:40:56 +0000 (13:40 +0800)]
Added debug to Threads_GetNext

14 years agoAdded tracing of task switches
John Hodge [Sun, 27 Sep 2009 05:37:56 +0000 (13:37 +0800)]
Added tracing of task switches

UCC git Repository :: git.ucc.asn.au