Subversion Repositories HelenOS

Compare Revisions

No changes between revisions

Ignore whitespace Rev 3364 → Rev 3365

/branches/sparc/boot/boot.config
82,3 → 82,8
@ "tmpfs" TMPFS image
@ "fat" FAT16 image
! RDFMT (choice)
 
# OpenFirmware implementation
@ "open_boot" OpenBoot (Sun Microsystems)
@ "smart_firmware" SmartFirmware (CodeGen)
! [ARCH=sparc64] OFW_IMPLEMENTATION (choice)
/branches/sparc/boot/genarch/balloc.h
31,7 → 31,20
 
#include <types.h>
 
#define BALLOC_MAX_SIZE (1024 * 1024)
/*
* SmartFirmware unfortunatelly fails to claim physical memory
* for the boot allocator if the requested memory is too big
* (roughly 512 kB and more). SmartFirmware runs on machines
* containing newer versions of UltraSPARC processors. It
* has been observed that the OFW tree is small enough for these
* machines so that it can fit into 256 kB. This is a workaround how
* to get rid of the memory claiming failure.
*/
#if defined (SMART_FIRMWARE)
#define BALLOC_MAX_SIZE (256 * 1024)
#else
#define BALLOC_MAX_SIZE (1024 * 1024)
#endif
 
typedef struct {
uintptr_t base;
/branches/sparc/boot/arch/sparc64/Makefile.inc
28,12 → 28,22
 
TMP=distroot
 
ifeq ($(OFW_IMPLEMENTATION),smart_firmware)
DEFS += -DSMART_FIRMWARE
SILO_PACKAGE=silo.patched.tar.gz
endif
 
ifeq ($(OFW_IMPLEMENTATION),open_boot)
DEFS += -DOPEN_BOOT
SILO_PACKAGE=silo.tar.gz
endif
 
build: $(BASE)/image.iso
 
$(BASE)/image.iso: depend arch/$(ARCH)/loader/image.boot
mkdir -p $(TMP)/boot
mkdir -p $(TMP)/HelenOS
cat arch/$(ARCH)/silo/silo.tar.gz | (cd $(TMP)/boot; tar xvfz -)
cat arch/$(ARCH)/silo/$(SILO_PACKAGE) | (cd $(TMP)/boot; tar xvfz -)
cp arch/$(ARCH)/silo/README arch/$(ARCH)/silo/COPYING arch/$(ARCH)/silo/silo.conf $(TMP)/boot
cp arch/$(ARCH)/loader/image.boot $(TMP)/HelenOS/image.boot
gzip -f $(TMP)/HelenOS/image.boot
/branches/sparc/boot/arch/sparc64/loader/asm.S
105,8 → 105,17
* 1. Make sure that the code we have moved has drained to main memory.
* 2. Invalidate I-cache.
* 3. Flush instruction pipeline.
*/
*/
 
/*
* US-III processors have a write-invalidate cache, so flushing it is
* not required. We only use the FLUSH instruction to flush the
* pipeline.
*/
#ifdef US2
call icache_flush
#endif
membar #StoreStore
flush %i7
 
/branches/sparc/boot/arch/sparc64/silo/silo.patched.tar.gz
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property