Remove some redundant code from Makefile.
Improve a couple of comments.
@echo " Linking $@"
$(Q)ld -melf_i386 -e post16 -Ttext 0 $< -o $@
@echo " Linking $@"
$(Q)ld -melf_i386 -e post16 -Ttext 0 $< -o $@
-$(OUT)rom16.bin: $(OUT)rom16.o
- @echo " Extracting binary $@"
- $(Q)objcopy -O binary $< $@
-
$(OUT)romlayout32.o: $(OUT)rom16.offset.auto.h ; $(call whole-compile, $(CFLAGS), $(addprefix src/, $(SRC32)),$@)
$(OUT)rom32.o: $(OUT)romlayout32.o $(OUT)rombios32.lds
$(OUT)romlayout32.o: $(OUT)rom16.offset.auto.h ; $(call whole-compile, $(CFLAGS), $(addprefix src/, $(SRC32)),$@)
$(OUT)rom32.o: $(OUT)romlayout32.o $(OUT)rombios32.lds
void VISIBLE16
handle_1553(struct bregs *regs)
{
void VISIBLE16
handle_1553(struct bregs *regs)
{
switch (regs->al) {
case 0x00: handle_155300(regs); break;
case 0x01: handle_155301(regs); break;
switch (regs->al) {
case 0x00: handle_155300(regs); break;
case 0x01: handle_155301(regs); break;
#define __ATA_H
#include "types.h" // u16
#define __ATA_H
#include "types.h" // u16
+#include "atabits.h" // ATA_CB_DH_DEV1
struct ata_pio_command {
void *far_buffer;
struct ata_pio_command {
void *far_buffer;
+// XXX - move PORT_DEBUG to standard place?
#define PORT_DEBUG 0x403
// Write a charcter to the framebuffer.
#define PORT_DEBUG 0x403
// Write a charcter to the framebuffer.