summaryrefslogtreecommitdiff
path: root/util/newconfig
diff options
context:
space:
mode:
authorEric Biederman <ebiederm@xmission.com>2004-10-16 08:38:58 +0000
committerEric Biederman <ebiederm@xmission.com>2004-10-16 08:38:58 +0000
commitf3ed1cfad748bf5610d315afba7ec04d6338bd9b (patch)
tree53c56bca5bc651c1e4f129c49d6083033f8273bf /util/newconfig
parent7003ba4a88a847707c55d593e517eaa70fc8c63d (diff)
downloadcoreboot-f3ed1cfad748bf5610d315afba7ec04d6338bd9b.tar.xz
- HDAMA boots!
- Set the bootstrap processor flag in the mptable. - Implement 64bit support in our print statements - Fix the reporting of how many cpus we are waiting to stop. It is the 1 less than the actual number of cpus running. - Actually enable cpu_initialization. - Fix firstsiblingdevice in config.g - Add IORESOURCE_FIXED to all of the resources set by config.g - Fix the apic_cluster rule to add an apic_cluster path not an apic path. - Add a div64.h to assist in the 64bit printf. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1682 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/newconfig')
-rw-r--r--util/newconfig/config.g14
1 files changed, 8 insertions, 6 deletions
diff --git a/util/newconfig/config.g b/util/newconfig/config.g
index 3f9b5a379e..d01f336a24 100644
--- a/util/newconfig/config.g
+++ b/util/newconfig/config.g
@@ -724,6 +724,8 @@ class partobj:
def firstsiblingdevice(self):
"""Find the first device in the sibling link."""
sibling = self.siblings
+ if ((not sibling) and (self.parent.chip_or_device == 'chip')):
+ sibling = self.parent.siblings
while(sibling):
if (sibling.chip_or_device == 'device'):
return sibling
@@ -921,7 +923,7 @@ class partobj:
fatal("Invalid pci_domain: 0x%x is out of the range 0 to 0xffff" % pci_domain)
self.path = ".type=DEVICE_PATH_PCI_DOMAIN,.u={.pci_domain={ .domain = 0x%x }}" % (pci_domain)
- def addapic_cluster(self, cluster):
+ def addapic_clusterpath(self, cluster):
""" Add a pci_domain number to a chip """
if ((cluster < 0) or (cluster > 15)):
fatal("Invalid apic cluster: %d is out of the range 0 to ff" % cluster)
@@ -1689,10 +1691,10 @@ parser Config:
) {{ if(C): partstack.tos().set_enabled(val) }}
rule resource<<C>>: {{ type = "" }}
- ( IO {{ type = "IORESOURCE_IO" }}
- | MEM {{ type = "IORESOURCE_MEM" }}
- | IRQ {{ type = "IORESOURCE_IRQ" }}
- | DRQ {{ type = "IORESOURCE_DRQ" }}
+ ( IO {{ type = "IORESOURCE_FIXED | IORESOURCE_IO" }}
+ | MEM {{ type = "IORESOURCE_FIXED | IORESOURCE_MEM" }}
+ | IRQ {{ type = "IORESOURCE_FIXED | IORESOURCE_IRQ" }}
+ | DRQ {{ type = "IORESOURCE_FIXED | IORESOURCE_DRQ" }}
)
term '=' {{ index = term }}
term {{ value = term }}
@@ -1729,7 +1731,7 @@ parser Config:
rule apic_cluster<<C>>: APIC_CLUSTER {{ if (C): devicepart('apic_cluster') }}
HEX_NUM {{ cluster = int(HEX_NUM, 16) }}
- {{ if (C): partstack.tos().addapicpath(cluster) }}
+ {{ if (C): partstack.tos().addapic_clusterpath(cluster) }}
rule dev_path<<C>>:
pci<<C>> {{ return pci }}