Philipp Oppermann
d4e1f47e62
Update post-04 to use compiler_builtins mem feature instead of rlibc ( #868 )
...
* Remove rlibc and use compiler-builtins-mem feature (#865 )
* Update post-04 to use compiler_builtins `mem` feature instead of `rlibc`
Co-authored-by: Rob Gries <robert.w.gries@gmail.com >
2020-10-02 23:28:03 +02:00
Philipp Oppermann
acf3717551
Move extern crate rlibc to lib.rs
2020-07-17 11:22:42 +02:00
Philipp Oppermann
6292789393
Merge branch 'post-03' into post-04
2020-07-17 11:19:25 +02:00
Philipp Oppermann
651adbc8bd
Merge branch 'post-02' into post-03
2020-07-17 11:16:18 +02:00
Philipp Oppermann
16ffe80fd5
Add dependency on rlibc
2020-07-16 15:39:07 +02:00
Philipp Oppermann
3ee6badb33
Keep trivial_assertion test
2020-06-08 11:39:09 +02:00
Philipp Oppermann
9f9ff59489
Create a testable trait for printing test messages automatically
2020-06-08 11:04:03 +02:00
Philipp Oppermann
7003268b9f
Merge branch 'post-03' into post-04
2019-06-17 17:28:32 +02:00
Philipp Oppermann
fcd849f471
Fix deprecated range syntax
2019-06-17 17:28:27 +02:00
Philipp Oppermann
2e5f192f35
Make exit_qemu safe
2019-04-26 13:42:20 +02:00
Philipp Oppermann
48e1f72d23
Split off a library
2019-04-26 13:41:19 +02:00
Philipp Oppermann
d0629ba5a2
Import serial_println only in test mode
2019-04-26 13:41:19 +02:00
Philipp Oppermann
46bb44b95d
Run cargo fmt
2019-04-26 13:41:19 +02:00
Philipp Oppermann
4cbac20b40
Add tests for the VGA buffer
2019-04-26 13:41:19 +02:00
Philipp Oppermann
3ecf9a9b56
Exit qemu on panic
2019-04-26 13:41:19 +02:00
Philipp Oppermann
1559493802
Print test results over serial port
2019-04-26 13:41:19 +02:00
Philipp Oppermann
dbdd46da9a
Exit qemu after running tests
2019-04-26 13:41:17 +02:00
Philipp Oppermann
3aa6151729
Add a trivial_assertion test
2019-04-26 13:41:07 +02:00
Philipp Oppermann
0beb0d80f8
Add a custom test runner
2019-04-26 13:41:07 +02:00
Philipp Oppermann
23cbafab1c
Reset code to post-03 branch
2019-04-26 12:44:33 +02:00
Philipp Oppermann
2db616bd7d
Merge branch 'post-03' into post-04
2019-02-05 10:45:11 +01:00
Philipp Oppermann
af0b258279
Make vga_buffer::{ScreenChar, Buffer} repr(transparent)
2019-02-05 10:44:52 +01:00
Philipp Oppermann
be46130322
Merge branch 'z_post_03' into z_post_04
2019-01-25 14:45:46 +01:00
Philipp Oppermann
b5c05193e1
Document vga buffer methods
2019-01-25 14:39:47 +01:00
Philipp Oppermann
76110c1dd8
Add a write_formatted test
2019-01-25 13:32:00 +01:00
Philipp Oppermann
92c4206e86
Add a write_byte test
2019-01-25 13:31:34 +01:00
Philipp Oppermann
a15e01f2eb
Construct a vga buffer for testing
2019-01-25 13:31:06 +01:00
Philipp Oppermann
76a65ca3ee
Include the standard library for unit tests
2019-01-25 13:29:02 +01:00
Philipp Oppermann
8e74084d52
Silence unused import warnings for cargo test
2019-01-25 13:25:24 +01:00
Philipp Oppermann
5366fe2ff8
Make cargo test work
2019-01-25 13:24:54 +01:00
Philipp Oppermann
6c427e7cee
Print the PanicInfo on panic
2019-01-25 13:23:04 +01:00
Philipp Oppermann
c43d6191c5
Implement print!/println! macros
2019-01-25 13:22:33 +01:00
Philipp Oppermann
c1e3fa57c6
Add a global interface
2019-01-25 13:21:39 +01:00
Philipp Oppermann
3574958d5f
Implement new_line method
2019-01-25 13:18:58 +01:00
Philipp Oppermann
cbfe6221bd
Implement support for Rust's formatting macros
2019-01-25 13:18:13 +01:00
Philipp Oppermann
d1897af515
Use volatile writes for accessing the VGA buffer
2019-01-25 13:16:44 +01:00
Philipp Oppermann
f9ffee92c7
Print Hello World! to screen
2019-01-25 12:42:21 +01:00
Philipp Oppermann
a80b09b1ae
Add #![no_main] attribute and Linux entry point
2019-01-25 12:37:02 +01:00
Philipp Oppermann
3feee7761e
Add panic handler
2019-01-25 12:34:39 +01:00
Philipp Oppermann
926940beb0
Add #![no_std] attribute
2019-01-25 12:34:28 +01:00
Philipp Oppermann
0fbb5f99cf
Create new blog_os project
2019-01-25 12:32:07 +01:00
Philipp Oppermann
d71e6a7cb6
Test the vga buffer module through a print_something function
2019-01-25 12:26:05 +01:00
Philipp Oppermann
27f2c4c2ff
Add methods to write bytes and strings
2019-01-25 12:25:46 +01:00
Philipp Oppermann
19de9e560d
Add a VGA buffer module
2019-01-25 12:21:51 +01:00