diff --git a/OLVASSEL.md b/OLVASSEL.md index 357387f..cb11d5b 100644 --- a/OLVASSEL.md +++ b/OLVASSEL.md @@ -16,7 +16,9 @@ Előre lefordított binárisok mellékelve, egyből használhatók. 4. *mykernel* egy példa BOOTBOOT [kompatíbilis kernel](https://gitlab.com/bztsrc/bootboot/tree/master/mykernel) C-ben írva, ami vonalakat húz meg színes dobozokat rajzol -5. *mkbootimg* minden az egyben, multiplatform [bootolható lemezkép készítő](https://gitlab.com/bztsrc/bootboot/tree/master/mkbootimg) (Windows, MacOSX, Linux). +5. *mykernel-rust* egy példa BOOTBOOT [kompatíbilis kernel](https://gitlab.com/bztsrc/bootboot/tree/master/mykernel) Rust-ban + +6. *mkbootimg* minden az egyben, multiplatform [bootolható lemezkép készítő](https://gitlab.com/bztsrc/bootboot/tree/master/mkbootimg) (Windows, MacOSX, Linux). Vedd figyelembe, hogy nem minden referencia implementáció támogatja a teljes 2-es protokollt, az x86_64-bios csak statikus memórialeképezéseket kezel, ami az 1-es protokoll szintnek felel meg. @@ -267,9 +269,9 @@ hogy bemutassa, miként lehet elérni a betöltő által nyújtott információk #include /* importált virtuális címek, lásd linker szkript */ -extern BOOTBOOT bootboot; // lásd bootboot.h -extern unsigned char *environment; // konfiguráció, UTF-8 szöveg kulcs=érték párokkal -extern uint8_t fb; // lineáris framebuffer leképezés +extern BOOTBOOT bootboot; // lásd bootboot.h +extern unsigned char environment[4096]; // konfiguráció, UTF-8 szöveg kulcs=érték párokkal +extern uint8_t fb; // lineáris framebuffer leképezés void _start() { @@ -458,5 +460,6 @@ Hozzájárulások Szeretnék külön köszönetet mondani [Valentin Anger](https://gitlab.com/SyrupThinker)nek, amiért alaposan letesztelte a kódot számtalan igazi vason is. Továbbá [Vinay Chandrá](https://gitlab.com/vinaychandra)nak, amiért addig nem hagyott békén, míg a 2. szintű protokoll be nem került a refenrencia implementációkba, és amiért tesztelte és kiegészítette -Rust minta kernellel a projektet. +Rust minta kernellel a projektet. További köszönet [Stephen Sherratt](https://gitlab.com/stevebob)nak a kitartó hibajavításáért. + diff --git a/README.md b/README.md index 07cb06b..c92e3fa 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,9 @@ I provide pre-compiled images ready for use. 4. *mykernel* an example BOOTBOOT [compatible kernel](https://gitlab.com/bztsrc/bootboot/tree/master/mykernel) in C which draws lines and boxes -5. *mkbootimg* an all-in-one multiplatform [bootable disk image creator](https://gitlab.com/bztsrc/bootboot/tree/master/mkbootimg) (Windows, MacOSX, Linux). +5. *mykernel-rust* an example BOOTBOOT [compatible kernel](https://gitlab.com/bztsrc/bootboot/tree/master/mykernel-rust) in Rust + +6. *mkbootimg* an all-in-one multiplatform [bootable disk image creator](https://gitlab.com/bztsrc/bootboot/tree/master/mkbootimg) (Windows, MacOSX, Linux). Please note that not all the reference implementations do support the full protocol at level 2, x86_64-bios only handles static mappings which makes it a level 1 loader. @@ -267,9 +269,9 @@ to demostrate how to access the environment: #include /* imported virtual addresses, see linker script below */ -extern BOOTBOOT bootboot; // see bootboot.h -extern unsigned char *environment; // configuration, UTF-8 text key=value pairs -extern uint8_t fb; // linear framebuffer mapped +extern BOOTBOOT bootboot; // see bootboot.h +extern unsigned char environment[4096]; // configuration, UTF-8 text key=value pairs +extern uint8_t fb; // linear framebuffer mapped void _start() { @@ -459,3 +461,4 @@ Contributors I'd like to say special thanks to [Valentin Anger](https://gitlab.com/SyrupThinker) for throughfully testing this code on many different real hardware. Also to [Vinay Chandra](https://gitlab.com/vinaychandra) for pushing me to add level 2 protocol to the reference implementations and for testing and providing a Rust kernel example for the project. +Further thanks to [Stephen Sherratt](https://gitlab.com/stevebob) for being presistent at fixing issues. diff --git a/bootboot_spec_1_kiad.pdf b/bootboot_spec_1_kiad.pdf index af07783..77a3eeb 100644 Binary files a/bootboot_spec_1_kiad.pdf and b/bootboot_spec_1_kiad.pdf differ diff --git a/bootboot_spec_1st_ed.pdf b/bootboot_spec_1st_ed.pdf index d6d2248..958c3cf 100644 Binary files a/bootboot_spec_1st_ed.pdf and b/bootboot_spec_1st_ed.pdf differ diff --git a/mykernel/kernel.c b/mykernel/kernel.c index 1afce9f..2c28da7 100644 --- a/mykernel/kernel.c +++ b/mykernel/kernel.c @@ -41,9 +41,9 @@ typedef unsigned long int uint64_t; #include /* imported virtual addresses, see linker script */ -extern BOOTBOOT bootboot; // see bootboot.h -extern unsigned char *environment; // configuration, UTF-8 text key=value pairs -extern uint8_t fb; // linear framebuffer mapped +extern BOOTBOOT bootboot; // see bootboot.h +extern unsigned char environment[4096]; // configuration, UTF-8 text key=value pairs +extern uint8_t fb; // linear framebuffer mapped /****************************************** * Entry point, called by BOOTBOOT Loader *