summaryrefslogtreecommitdiff
path: root/arch/unix/unix.c
Commit message (Collapse)AuthorAgeFilesLines
* arch/unix/unix.c: fix build on x86 architecture with modern gcc compilersMark Cave-Ayland2022-02-081-0/+2
| | | | | | | | | | | Modern gcc compilers will fail to build x86 OpenBIOS failing with the error message "libc/misc.c:20: multiple definition of `errno_int'" during link. Since the accompanying comment mentions that the reason for adding the definition is to allow compilation to succeed on OS X, surround it with suitable #if defined(__APPLE__) ... #endif guards. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
* libopenbios: move console selection from compile-time to runtimeMark Cave-Ayland2013-10-251-1/+22
| | | | | | | | | | | | | Some architectures require different console configurations depending upon the machine type. This commit moves the console handlers into a struct _console_ops structure held within libopenbios and switches all our supported architectures over to use it. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> CC: Andreas Färber <afaerber@suse.de> CC: Hervé Poussineau <hpoussin@reactos.org> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1230 f158a5a8-5612-0410-a976-696ce0be7e32
* Unix build: Add is_machine helpersAlexander Graf2013-06-221-0/+20
| | | | | | | | | | | | | | When building the unix target on PPC, our #ifdef'ery thinks we can properly use the is_machine helpers and act accordingly to implement hacks. Expose these helpers in the unix target as well, just always define them as false. That way we safe compilation without adding too much logic to deal with unimportant corner cases. Signed-off-by: Alexander Graf <agraf@suse.de> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1157 f158a5a8-5612-0410-a976-696ce0be7e32
* ppc: Adjust isa_io_base for ppc64Andreas Färber2010-11-211-3/+1
| | | | | | | | | | | | | | | | | | | | To avoid cast warnings, use a 64-bit ISA I/O base on ppc64. v3: * Adjust unix target, pointed out by Blue. Unify ppc and sparc64, using unsigned long instead of uintptr_t. It is initialized from pci_arch_t, which uses unsigned long. * Update other ppc targets, pointed out by Blue. v2: Initial. Cc: Blue Swirl <blauwirbel@gmail.com> Cc: Alexander Graf <agraf@suse.de> Signed-off-by: Andreas Färber <andreas.faerber@web.de> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@964 f158a5a8-5612-0410-a976-696ce0be7e32
* Introduce forth_init() for trampoline initializationAndreas Färber2010-11-131-0/+1
| | | | | | | | | | | | | | | | | | | | Use init_trampoline() for trampoline variable initialization. Add calls to a new forth_init() function for each architecture to invoke it. Idea courtesy of Blue. This fixes ppc64 compilation by avoiding a casted self-reference. v2: * Share init_trampoline() with kernel/bootstrap.c, suggested by Mark. * Adopt QEMU coding style for new functions. Cc: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk> Signed-off-by: Andreas Färber <andreas.faerber@web.de> Acked-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@954 f158a5a8-5612-0410-a976-696ce0be7e32
* Commit revised version of Igor Kovalenko's patch for detecting whether ↵Igor V. Kovalenko2010-04-121-0/+1
| | | | | | | | | | | | dictionary allocations have overrun the memory buffer allocated for them. Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@741 f158a5a8-5612-0410-a976-696ce0be7e32
* Create an initialisation function called openbios_init(), similar to ↵Mark Cave-Ayland2010-04-021-0/+2
| | | | | | | | | | | | modules_init(), for use by libopenbios and make sure all architectures are updated to use it. This is required to allow binding of C functions into Forth by libopenbios (i.e. cross architecture) rather than having to update everything in every arch/*/ initialisation file. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@725 f158a5a8-5612-0410-a976-696ce0be7e32
* Move the *_init_program() functions into the main loader source files so ↵Mark Cave-Ayland2010-03-281-0/+2
| | | | | | | | | | | | that everything is in one place. Part of this involves taking the existing parts of the XCOFF loader and putting them into a new loader file xcoff_load.c. Also fix a dependency order change these changes introduce when building openbios-unix. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@720 f158a5a8-5612-0410-a976-696ce0be7e32
* Move the basic OpenBIOS configuration header files from include/openbios to ↵Mark Cave-Ayland2010-03-141-2/+2
| | | | | | | | | include/. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@695 f158a5a8-5612-0410-a976-696ce0be7e32
* Move the libopenbios header files into include/libopenbios to synchronise ↵Mark Cave-Ayland2010-03-141-2/+2
| | | | | | | | | with the code directory structure. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@691 f158a5a8-5612-0410-a976-696ce0be7e32
* Move the kernel header files into include/kernel to synchronise with the ↵Mark Cave-Ayland2010-03-141-2/+2
| | | | | | | | | code directory structure. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@689 f158a5a8-5612-0410-a976-696ce0be7e32
* Finish move of architecture-specific header files, with modifications to the ↵Mark Cave-Ayland2010-03-141-1/+1
| | | | | | | | | header paths as required. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@688 f158a5a8-5612-0410-a976-696ce0be7e32
* Fix Unix target build on PPC hostBlue Swirl2010-03-071-0/+7
| | | | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@684 f158a5a8-5612-0410-a976-696ce0be7e32
* Sparc64: fix native Unix version buildBlue Swirl2010-01-231-0/+7
| | | | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@668 f158a5a8-5612-0410-a976-696ce0be7e32
* Fix Unix target warnings from SparseBlue Swirl2009-08-041-6/+5
| | | | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@535 f158a5a8-5612-0410-a976-696ce0be7e32
* Improve version number handlingBlue Swirl2009-08-021-2/+4
| | | | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@533 f158a5a8-5612-0410-a976-696ce0be7e32
* Fix Sparc64 native unix buildBlue Swirl2009-01-131-0/+2
| | | | git-svn-id: svn://coreboot.org/openbios/openbios-devel@402 f158a5a8-5612-0410-a976-696ce0be7e32
* Fix Unix host build on PPCBlue Swirl2009-01-011-0/+4
| | | | git-svn-id: svn://coreboot.org/openbios/openbios-devel@339 f158a5a8-5612-0410-a976-696ce0be7e32
* Delete extra whitespace at the end of line, which annoys quiltBlue Swirl2008-12-111-11/+11
| | | | git-svn-id: svn://coreboot.org/openbios/openbios-devel@284 f158a5a8-5612-0410-a976-696ce0be7e32
* blueswirl's latest console patches.Stefan Reinauer2006-07-281-5/+33
| | | | git-svn-id: svn://coreboot.org/openbios/openbios-devel@72 f158a5a8-5612-0410-a976-696ce0be7e32
* - Cleanup compiler warnings etc.Stefan Reinauer2006-07-181-1/+1
| | | | | | | - add crosscflags from previous patch ;) git-svn-id: svn://coreboot.org/openbios/openbios-devel@67 f158a5a8-5612-0410-a976-696ce0be7e32
* - update datesStefan Reinauer2006-05-261-1/+1
| | | | | | | - fix address output of ls git-svn-id: svn://coreboot.org/openbios/openbios-devel@34 f158a5a8-5612-0410-a976-696ce0be7e32
* initial import of openbios--main--1.0--patch-26Stefan Reinauer2006-04-261-0/+517
git-svn-id: svn://coreboot.org/openbios/openbios-devel@1 f158a5a8-5612-0410-a976-696ce0be7e32