OpenBSD uses the addr word to retrieve the address of several framebuffer variables during initialisation. Provide an implementation of addr which allows OpenBSD to initialise the framebuffer correctly on SPARC32 and SPARC64.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk --- forth/util/util.fs | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
diff --git a/forth/util/util.fs b/forth/util/util.fs index 8247c7d..54dbf91 100644 --- a/forth/util/util.fs +++ b/forth/util/util.fs @@ -102,3 +102,18 @@ 2dup " tell" is-relay 2drop ; + +\ ------------------------------------------------------------------------- +\ Miscellaneous +\ ------------------------------------------------------------------------- + +[IFDEF] CONFIG_SPARC32 1 [ELSE] [IFDEF] CONFIG_SPARC64 1 [ELSE] 0 [THEN] [THEN] [IF] + +\ Return the address of a named constant or value +: addr ( <word> -- addr ) + parse-word $find if + cell + + then +; + +[THEN]
please i need documentation, link or many other things because i'm newbie on this project to contribute on it as developer in C and Assembly ....
On 06/07/2020 22:28, NJONGSSI KOUAM Esaïe Ledoux wrote:
please i need documentation, link or many other things because i'm newbie on this project to contribute on it as developer in C and Assembly ....
I don't believe that the project has an official TODO list (other than what people's time/interest allows), but the first thing to do is to have a read of the basics on https://www.openfirmware.org/ and decide which architecture you would like to study. Normally this is influenced by people who want to boot a particular OS under QEMU which is currently the main user for OpenBIOS for SPARC and PPC32.
The next step is to find or build yourself a suitable cross-compiler if working on x86 for which there are plenty of guides on the internet such as https://wiki.osdev.org/GCC_Cross-Compiler and then see if you can checkout the OpenBIOS code from github and build it successfully.
ATB,
Mark.
On Jul 6, 2020, at 5:28 PM, NJONGSSI KOUAM Esaïe Ledoux wrote:
please i need documentation, link or many other things because i'm newbie on this project to contribute on it as developer in C and Assembly .... _______________________________________________ OpenBIOS mailing list -- openbios@openbios.org To unsubscribe send an email to openbios-leave@openbios.org
Forth tutorial https://www.forth.com/starting-forth/
OpenBIOS site https://www.openfirmware.info/Welcome_to_OpenBIOS
Open Firmware specification https://www.openfirmware.info/data/docs/of1275.pdf
Welcome
thank you very much ... :) :) :)
On 02/07/2020 20:42, Mark Cave-Ayland wrote:
OpenBSD uses the addr word to retrieve the address of several framebuffer variables during initialisation. Provide an implementation of addr which allows OpenBSD to initialise the framebuffer correctly on SPARC32 and SPARC64.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk
forth/util/util.fs | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
diff --git a/forth/util/util.fs b/forth/util/util.fs index 8247c7d..54dbf91 100644 --- a/forth/util/util.fs +++ b/forth/util/util.fs @@ -102,3 +102,18 @@ 2dup " tell" is-relay 2drop ;
+\ ------------------------------------------------------------------------- +\ Miscellaneous +\ -------------------------------------------------------------------------
+[IFDEF] CONFIG_SPARC32 1 [ELSE] [IFDEF] CONFIG_SPARC64 1 [ELSE] 0 [THEN] [THEN] [IF]
+\ Return the address of a named constant or value +: addr ( <word> -- addr )
- parse-word $find if
- cell +
- then
+;
+[THEN]
Applied to master.
ATB,
Mark.